@ngxs/store 3.7.6 → 3.8.0-dev.master-c341c15

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.
Files changed (267) hide show
  1. package/bundles/ngxs-store-internals-testing.umd.js +409 -420
  2. package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
  3. package/bundles/ngxs-store-internals.umd.js +48 -117
  4. package/bundles/ngxs-store-internals.umd.js.map +1 -1
  5. package/bundles/ngxs-store-operators.umd.js +62 -402
  6. package/bundles/ngxs-store-operators.umd.js.map +1 -1
  7. package/bundles/ngxs-store.umd.js +1296 -3219
  8. package/bundles/ngxs-store.umd.js.map +1 -1
  9. package/esm2015/index.js +7 -7
  10. package/esm2015/internals/angular.js +1 -8
  11. package/esm2015/internals/index.js +2 -6
  12. package/esm2015/internals/initial-state.js +1 -21
  13. package/esm2015/internals/internal-tokens.js +4 -15
  14. package/esm2015/internals/memoize.js +8 -33
  15. package/esm2015/internals/ngxs-bootstrapper.js +7 -20
  16. package/esm2015/internals/ngxs-store-internals.js +2 -6
  17. package/esm2015/internals/src/symbols.js +2 -14
  18. package/esm2015/internals/symbols.js +2 -14
  19. package/esm2015/internals/testing/fresh-platform.js +13 -53
  20. package/esm2015/internals/testing/helpers/ngxs-test.component.js +11 -17
  21. package/esm2015/internals/testing/helpers/ngxs-test.module.js +13 -16
  22. package/esm2015/internals/testing/index.js +1 -5
  23. package/esm2015/internals/testing/ngxs-store-internals-testing.js +2 -6
  24. package/esm2015/internals/testing/ngxs.setup.js +1 -31
  25. package/esm2015/internals/testing/skip-console-logging.js +7 -42
  26. package/esm2015/internals/testing/symbol.js +2 -29
  27. package/esm2015/ngxs-store.js +2 -22
  28. package/esm2015/operators/append.js +7 -18
  29. package/esm2015/operators/compose.js +4 -22
  30. package/esm2015/operators/iif.js +12 -30
  31. package/esm2015/operators/index.js +2 -6
  32. package/esm2015/operators/insert-item.js +10 -22
  33. package/esm2015/operators/ngxs-store-operators.js +2 -6
  34. package/esm2015/operators/patch.js +5 -23
  35. package/esm2015/operators/remove-item.js +5 -17
  36. package/esm2015/operators/types.js +2 -0
  37. package/esm2015/operators/update-item.js +13 -25
  38. package/esm2015/operators/utils.js +1 -32
  39. package/esm2015/src/actions/actions.js +1 -18
  40. package/esm2015/src/actions/symbols.js +2 -39
  41. package/esm2015/src/actions-stream.js +20 -122
  42. package/esm2015/src/configs/messages.config.js +1 -44
  43. package/esm2015/src/decorators/action.js +3 -18
  44. package/esm2015/src/decorators/select/select-factory.js +10 -27
  45. package/esm2015/src/decorators/select/select.js +3 -22
  46. package/esm2015/src/decorators/select/symbols.js +4 -25
  47. package/esm2015/src/decorators/selector/selector.js +11 -38
  48. package/esm2015/src/decorators/selector/symbols.js +2 -5
  49. package/esm2015/src/decorators/selector-options.js +6 -19
  50. package/esm2015/src/decorators/state.js +5 -44
  51. package/esm2015/src/dev-features/ngxs-development.module.js +22 -0
  52. package/esm2015/src/dev-features/ngxs-unhandled-actions-logger.js +46 -0
  53. package/esm2015/src/dev-features/symbols.js +6 -0
  54. package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +10 -56
  55. package/esm2015/src/execution/internal-ngxs-execution-strategy.js +10 -32
  56. package/esm2015/src/execution/noop-ngxs-execution-strategy.js +7 -19
  57. package/esm2015/src/execution/symbols.js +3 -32
  58. package/esm2015/src/internal/custom-rxjs-subjects.js +81 -0
  59. package/esm2015/src/internal/dispatcher.js +26 -121
  60. package/esm2015/src/internal/error-handler.js +18 -72
  61. package/esm2015/src/internal/internals.js +24 -244
  62. package/esm2015/src/internal/lifecycle-state-manager.js +19 -117
  63. package/esm2015/src/internal/state-context-factory.js +8 -66
  64. package/esm2015/src/internal/state-factory.js +60 -227
  65. package/esm2015/src/internal/state-operations.js +19 -80
  66. package/esm2015/src/internal/state-operators.js +15 -28
  67. package/esm2015/src/internal/state-stream.js +9 -15
  68. package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +7 -17
  69. package/esm2015/src/module.js +12 -47
  70. package/esm2015/src/modules/ngxs-feature.module.js +18 -36
  71. package/esm2015/src/modules/ngxs-root.module.js +18 -26
  72. package/esm2015/src/operators/leave-ngxs.js +8 -43
  73. package/esm2015/src/operators/of-action.js +16 -105
  74. package/esm2015/src/plugin-manager.js +17 -50
  75. package/esm2015/src/plugin_api.js +1 -5
  76. package/esm2015/src/private_api.js +3 -0
  77. package/esm2015/src/public_api.js +7 -9
  78. package/esm2015/src/public_to_deprecate.js +1 -51
  79. package/esm2015/src/selectors/create-model-selector.js +28 -0
  80. package/esm2015/src/selectors/create-pick-selector.js +14 -0
  81. package/esm2015/src/selectors/create-property-selectors.js +18 -0
  82. package/esm2015/src/selectors/create-selector.js +9 -0
  83. package/esm2015/src/selectors/index.js +6 -0
  84. package/esm2015/src/selectors/selector-checks.util.js +18 -0
  85. package/esm2015/src/selectors/selector-metadata.js +30 -0
  86. package/esm2015/src/selectors/selector-models.js +2 -0
  87. package/esm2015/src/selectors/selector-types.util.js +2 -0
  88. package/esm2015/src/selectors/selector-utils.js +74 -0
  89. package/esm2015/src/state-token/state-token.js +4 -32
  90. package/esm2015/src/state-token/symbols.js +2 -5
  91. package/esm2015/src/store.js +24 -108
  92. package/esm2015/src/symbols.js +7 -177
  93. package/esm2015/src/utils/compose.js +5 -23
  94. package/esm2015/src/utils/freeze.js +5 -20
  95. package/esm2015/src/utils/store-validators.js +3 -36
  96. package/esm2015/src/utils/utils.js +13 -64
  97. package/fesm2015/ngxs-store-internals-testing.js +38 -159
  98. package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
  99. package/fesm2015/ngxs-store-internals.js +18 -100
  100. package/fesm2015/ngxs-store-internals.js.map +1 -1
  101. package/fesm2015/ngxs-store-operators.js +54 -186
  102. package/fesm2015/ngxs-store-operators.js.map +1 -1
  103. package/fesm2015/ngxs-store.js +662 -2488
  104. package/fesm2015/ngxs-store.js.map +1 -1
  105. package/index.d.ts +4 -0
  106. package/internals/index.d.ts +1 -1
  107. package/internals/internal-tokens.d.ts +2 -8
  108. package/internals/ngxs-bootstrapper.d.ts +4 -1
  109. package/internals/ngxs-store-internals.d.ts +1 -0
  110. package/internals/package.json +2 -5
  111. package/internals/testing/helpers/ngxs-test.component.d.ts +3 -0
  112. package/internals/testing/helpers/ngxs-test.module.d.ts +6 -0
  113. package/internals/testing/ngxs-store-internals-testing.d.ts +1 -0
  114. package/internals/testing/package.json +2 -5
  115. package/ngxs-store.d.ts +1 -17
  116. package/operators/append.d.ts +2 -3
  117. package/operators/compose.d.ts +2 -2
  118. package/operators/iif.d.ts +3 -4
  119. package/operators/index.d.ts +3 -2
  120. package/operators/insert-item.d.ts +2 -3
  121. package/operators/ngxs-store-operators.d.ts +1 -0
  122. package/operators/package.json +2 -5
  123. package/operators/patch.d.ts +5 -8
  124. package/operators/remove-item.d.ts +3 -4
  125. package/operators/types.d.ts +56 -0
  126. package/operators/update-item.d.ts +3 -4
  127. package/operators/utils.d.ts +2 -3
  128. package/package.json +4 -7
  129. package/src/actions/actions.d.ts +2 -2
  130. package/src/actions-stream.d.ts +8 -22
  131. package/src/decorators/select/select-factory.d.ts +3 -0
  132. package/src/decorators/selector/selector.d.ts +7 -2
  133. package/src/decorators/state.d.ts +1 -1
  134. package/src/dev-features/ngxs-development.module.d.ts +9 -0
  135. package/src/dev-features/ngxs-unhandled-actions-logger.d.ts +17 -0
  136. package/src/dev-features/symbols.d.ts +8 -0
  137. package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +3 -0
  138. package/src/execution/internal-ngxs-execution-strategy.d.ts +3 -0
  139. package/src/execution/noop-ngxs-execution-strategy.d.ts +3 -0
  140. package/src/internal/custom-rxjs-subjects.d.ts +37 -0
  141. package/src/internal/dispatcher.d.ts +5 -0
  142. package/src/internal/error-handler.d.ts +4 -1
  143. package/src/internal/lifecycle-state-manager.d.ts +3 -0
  144. package/src/internal/state-context-factory.d.ts +3 -0
  145. package/src/internal/state-factory.d.ts +7 -4
  146. package/src/internal/state-operations.d.ts +3 -0
  147. package/src/internal/state-operators.d.ts +2 -2
  148. package/src/internal/state-stream.d.ts +5 -2
  149. package/src/module.d.ts +4 -0
  150. package/src/modules/ngxs-feature.module.d.ts +4 -0
  151. package/src/modules/ngxs-root.module.d.ts +4 -0
  152. package/src/operators/of-action.d.ts +20 -7
  153. package/src/plugin-manager.d.ts +4 -1
  154. package/src/private_api.d.ts +2 -0
  155. package/src/public_api.d.ts +8 -5
  156. package/src/selectors/create-model-selector.d.ts +10 -0
  157. package/src/selectors/create-pick-selector.d.ts +6 -0
  158. package/src/selectors/create-property-selectors.d.ts +5 -0
  159. package/src/selectors/create-selector.d.ts +19 -0
  160. package/src/selectors/index.d.ts +5 -0
  161. package/src/selectors/selector-checks.util.d.ts +9 -0
  162. package/src/selectors/selector-metadata.d.ts +7 -0
  163. package/src/selectors/selector-models.d.ts +10 -0
  164. package/src/selectors/selector-types.util.d.ts +7 -0
  165. package/src/selectors/selector-utils.d.ts +9 -0
  166. package/src/store.d.ts +3 -0
  167. package/src/symbols.d.ts +7 -3
  168. package/src/utils/utils.d.ts +1 -1
  169. package/bundles/ngxs-store-internals-testing.umd.min.js +0 -16
  170. package/bundles/ngxs-store-internals-testing.umd.min.js.map +0 -1
  171. package/bundles/ngxs-store-internals.umd.min.js +0 -2
  172. package/bundles/ngxs-store-internals.umd.min.js.map +0 -1
  173. package/bundles/ngxs-store-operators.umd.min.js +0 -16
  174. package/bundles/ngxs-store-operators.umd.min.js.map +0 -1
  175. package/bundles/ngxs-store.umd.min.js +0 -16
  176. package/bundles/ngxs-store.umd.min.js.map +0 -1
  177. package/esm2015/operators/internals.js +0 -5
  178. package/esm2015/src/utils/selector-utils.js +0 -221
  179. package/esm5/index.js +0 -13
  180. package/esm5/internals/angular.js +0 -20
  181. package/esm5/internals/index.js +0 -10
  182. package/esm5/internals/initial-state.js +0 -45
  183. package/esm5/internals/internal-tokens.js +0 -16
  184. package/esm5/internals/memoize.js +0 -71
  185. package/esm5/internals/ngxs-bootstrapper.js +0 -56
  186. package/esm5/internals/ngxs-store-internals.js +0 -9
  187. package/esm5/internals/src/symbols.js +0 -14
  188. package/esm5/internals/symbols.js +0 -14
  189. package/esm5/internals/testing/fresh-platform.js +0 -121
  190. package/esm5/internals/testing/helpers/ngxs-test.component.js +0 -32
  191. package/esm5/internals/testing/helpers/ngxs-test.module.js +0 -32
  192. package/esm5/internals/testing/index.js +0 -8
  193. package/esm5/internals/testing/ngxs-store-internals-testing.js +0 -9
  194. package/esm5/internals/testing/ngxs.setup.js +0 -98
  195. package/esm5/internals/testing/skip-console-logging.js +0 -62
  196. package/esm5/internals/testing/symbol.js +0 -29
  197. package/esm5/ngxs-store.js +0 -25
  198. package/esm5/operators/append.js +0 -31
  199. package/esm5/operators/compose.js +0 -28
  200. package/esm5/operators/iif.js +0 -56
  201. package/esm5/operators/index.js +0 -18
  202. package/esm5/operators/insert-item.js +0 -41
  203. package/esm5/operators/internals.js +0 -5
  204. package/esm5/operators/ngxs-store-operators.js +0 -9
  205. package/esm5/operators/patch.js +0 -40
  206. package/esm5/operators/remove-item.js +0 -34
  207. package/esm5/operators/update-item.js +0 -52
  208. package/esm5/operators/utils.js +0 -50
  209. package/esm5/src/actions/actions.js +0 -62
  210. package/esm5/src/actions/symbols.js +0 -39
  211. package/esm5/src/actions-stream.js +0 -203
  212. package/esm5/src/configs/messages.config.js +0 -79
  213. package/esm5/src/decorators/action.js +0 -60
  214. package/esm5/src/decorators/select/select-factory.js +0 -46
  215. package/esm5/src/decorators/select/select.js +0 -50
  216. package/esm5/src/decorators/select/symbols.js +0 -51
  217. package/esm5/src/decorators/selector/selector.js +0 -59
  218. package/esm5/src/decorators/selector/symbols.js +0 -5
  219. package/esm5/src/decorators/selector-options.js +0 -34
  220. package/esm5/src/decorators/state.js +0 -78
  221. package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +0 -123
  222. package/esm5/src/execution/internal-ngxs-execution-strategy.js +0 -54
  223. package/esm5/src/execution/noop-ngxs-execution-strategy.js +0 -43
  224. package/esm5/src/execution/symbols.js +0 -52
  225. package/esm5/src/internal/dispatcher.js +0 -231
  226. package/esm5/src/internal/error-handler.js +0 -125
  227. package/esm5/src/internal/internals.js +0 -470
  228. package/esm5/src/internal/lifecycle-state-manager.js +0 -224
  229. package/esm5/src/internal/state-context-factory.js +0 -135
  230. package/esm5/src/internal/state-factory.js +0 -583
  231. package/esm5/src/internal/state-operations.js +0 -134
  232. package/esm5/src/internal/state-operators.js +0 -34
  233. package/esm5/src/internal/state-stream.js +0 -37
  234. package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +0 -28
  235. package/esm5/src/module.js +0 -202
  236. package/esm5/src/modules/ngxs-feature.module.js +0 -65
  237. package/esm5/src/modules/ngxs-root.module.js +0 -44
  238. package/esm5/src/operators/leave-ngxs.js +0 -58
  239. package/esm5/src/operators/of-action.js +0 -217
  240. package/esm5/src/plugin-manager.js +0 -82
  241. package/esm5/src/plugin_api.js +0 -10
  242. package/esm5/src/public_api.js +0 -29
  243. package/esm5/src/public_to_deprecate.js +0 -64
  244. package/esm5/src/state-token/state-token.js +0 -57
  245. package/esm5/src/state-token/symbols.js +0 -5
  246. package/esm5/src/store.js +0 -241
  247. package/esm5/src/symbols.js +0 -230
  248. package/esm5/src/utils/compose.js +0 -55
  249. package/esm5/src/utils/freeze.js +0 -35
  250. package/esm5/src/utils/selector-utils.js +0 -230
  251. package/esm5/src/utils/store-validators.js +0 -78
  252. package/esm5/src/utils/utils.js +0 -151
  253. package/fesm5/ngxs-store-internals-testing.js +0 -345
  254. package/fesm5/ngxs-store-internals-testing.js.map +0 -1
  255. package/fesm5/ngxs-store-internals.js +0 -217
  256. package/fesm5/ngxs-store-internals.js.map +0 -1
  257. package/fesm5/ngxs-store-operators.js +0 -340
  258. package/fesm5/ngxs-store-operators.js.map +0 -1
  259. package/fesm5/ngxs-store.js +0 -4619
  260. package/fesm5/ngxs-store.js.map +0 -1
  261. package/internals/ngxs-store-internals.metadata.json +0 -1
  262. package/internals/testing/ngxs-store-internals-testing.metadata.json +0 -1
  263. package/ngxs-store.metadata.json +0 -1
  264. package/operators/internals.d.ts +0 -2
  265. package/operators/ngxs-store-operators.metadata.json +0 -1
  266. package/src/utils/selector-utils.d.ts +0 -23
  267. 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, core, testing, common, platformBrowser, testing$1, store) { 'use strict';
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
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- 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; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- 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);
190
- 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); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
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
- * @return {?}
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.decorators = [
275
- { type: core.NgModule, args: [{
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: __spread([
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(core.ApplicationRef));
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
- /** @type {?} */
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
- /** @type {?} */
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
- /** @type {?} */
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
- core.destroyPlatform();
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
- core.destroyPlatform();
414
- /** @type {?} */
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
- core.createPlatform(testing.TestBed);
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 (_a) {
451
- switch (_a.label) {
474
+ return __generator(this, function (_b) {
475
+ switch (_b.label) {
452
476
  case 0:
453
- _a.trys.push([0, , 6, 7]);
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
- (/** @type {?} */ (reject))(error);
482
+ reject(error);
463
483
  }
464
484
  else {
465
- (/** @type {?} */ (resolve))();
485
+ resolve();
466
486
  }
467
- }))];
487
+ })];
468
488
  case 1:
469
- _a.sent();
470
- return [4 /*yield*/, (/** @type {?} */ (whenDoneIsCalledPromise))];
489
+ _b.sent();
490
+ return [4 /*yield*/, whenDoneIsCalledPromise];
471
491
  case 2:
472
- _a.sent();
492
+ _b.sent();
473
493
  return [3 /*break*/, 5];
474
494
  case 3: return [4 /*yield*/, fn()];
475
495
  case 4:
476
- _a.sent();
477
- _a.label = 5;
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
- * @return {?}
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 (/** @type {?} */ (returnValue.finally((/**
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;