@ngxs/store 3.7.1 → 3.7.2-dev.master-bc69722
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/bundles/ngxs-store-internals-testing.umd.js +475 -0
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -0
- package/bundles/ngxs-store-internals-testing.umd.min.js +16 -0
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +1 -0
- package/bundles/ngxs-store-internals.umd.js +380 -211
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.min.js +1 -1
- package/bundles/ngxs-store-internals.umd.min.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +310 -310
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.min.js.map +1 -1
- package/bundles/ngxs-store.umd.js +4402 -4511
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/index.js +13 -13
- package/esm2015/internals/angular.js +46 -40
- package/esm2015/internals/decorator-injector-adapter.js +162 -0
- package/esm2015/internals/index.js +11 -10
- package/esm2015/internals/initial-state.js +34 -34
- package/esm2015/internals/internal-tokens.js +16 -16
- package/esm2015/internals/memoize.js +70 -70
- package/esm2015/internals/ngxs-bootstrapper.js +41 -41
- package/esm2015/internals/ngxs-store-internals.js +9 -9
- package/esm2015/internals/src/symbols.js +14 -14
- package/esm2015/internals/symbols.js +14 -14
- package/esm2015/internals/testing/fresh-platform.js +90 -0
- package/esm2015/internals/testing/helpers/ngxs-test.component.js +22 -0
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +24 -0
- package/esm2015/internals/testing/index.js +7 -0
- package/esm2015/internals/testing/ngxs-store-internals-testing.js +9 -0
- package/esm2015/internals/testing/ngxs.setup.js +76 -0
- package/esm2015/internals/testing/symbol.js +29 -0
- package/esm2015/ngxs-store.js +24 -27
- package/esm2015/operators/append.js +31 -31
- package/esm2015/operators/compose.js +24 -24
- package/esm2015/operators/iif.js +56 -56
- package/esm2015/operators/index.js +18 -18
- package/esm2015/operators/insert-item.js +41 -41
- package/esm2015/operators/internals.js +5 -5
- package/esm2015/operators/ngxs-store-operators.js +8 -8
- package/esm2015/operators/patch.js +39 -39
- package/esm2015/operators/remove-item.js +34 -34
- package/esm2015/operators/update-item.js +52 -52
- package/esm2015/operators/utils.js +50 -50
- package/esm2015/src/actions/actions.js +39 -39
- package/esm2015/src/actions/symbols.js +39 -39
- package/esm2015/src/actions-stream.js +138 -140
- package/esm2015/src/configs/messages.config.js +79 -87
- package/esm2015/src/decorators/action.js +48 -44
- package/esm2015/src/decorators/select/select-factory.js +49 -46
- package/esm2015/src/decorators/select/select.js +60 -45
- package/esm2015/src/decorators/select/symbols.js +94 -50
- package/esm2015/src/decorators/selector/selector.js +59 -55
- package/esm2015/src/decorators/selector/symbols.js +5 -5
- package/esm2015/src/decorators/selector-options.js +34 -34
- package/esm2015/src/decorators/state.js +83 -75
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +101 -96
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +45 -45
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +27 -27
- package/esm2015/src/execution/symbols.js +29 -29
- package/esm2015/src/internal/dispatcher.js +217 -210
- package/esm2015/src/internal/internals.js +493 -489
- package/esm2015/src/internal/lifecycle-state-manager.js +129 -129
- package/esm2015/src/internal/state-context-factory.js +138 -138
- package/esm2015/src/internal/state-factory.js +449 -429
- package/esm2015/src/internal/state-operations.js +120 -125
- package/esm2015/src/internal/state-operators.js +33 -33
- package/esm2015/src/internal/state-stream.js +21 -21
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +28 -40
- package/esm2015/src/module.js +158 -172
- package/esm2015/src/modules/ngxs-feature.module.js +63 -63
- package/esm2015/src/modules/ngxs-root.module.js +52 -52
- package/esm2015/src/operators/leave-ngxs.js +58 -58
- package/esm2015/src/operators/of-action.js +191 -191
- package/esm2015/src/plugin-manager.js +70 -70
- package/esm2015/src/plugin_api.js +10 -10
- package/esm2015/src/public_api.js +29 -29
- package/esm2015/src/public_to_deprecate.js +64 -64
- package/esm2015/src/state-token/state-token.js +45 -45
- package/esm2015/src/state-token/symbols.js +5 -5
- package/esm2015/src/store.js +174 -174
- package/esm2015/src/symbols.js +217 -221
- package/esm2015/src/utils/compose.js +44 -44
- package/esm2015/src/utils/freeze.js +35 -35
- package/esm2015/src/utils/selector-utils.js +221 -221
- package/esm2015/src/utils/store-validators.js +60 -65
- package/esm2015/src/utils/utils.js +143 -143
- package/esm5/index.js +13 -13
- package/esm5/internals/angular.js +46 -40
- package/esm5/internals/decorator-injector-adapter.js +162 -0
- package/esm5/internals/index.js +11 -10
- package/esm5/internals/initial-state.js +45 -45
- package/esm5/internals/internal-tokens.js +16 -16
- package/esm5/internals/memoize.js +71 -71
- package/esm5/internals/ngxs-bootstrapper.js +56 -56
- package/esm5/internals/ngxs-store-internals.js +9 -9
- package/esm5/internals/src/symbols.js +14 -14
- package/esm5/internals/symbols.js +14 -14
- package/esm5/internals/testing/fresh-platform.js +101 -0
- package/esm5/internals/testing/helpers/ngxs-test.component.js +32 -0
- package/esm5/internals/testing/helpers/ngxs-test.module.js +32 -0
- package/esm5/internals/testing/index.js +7 -0
- package/esm5/internals/testing/ngxs-store-internals-testing.js +9 -0
- package/esm5/internals/testing/ngxs.setup.js +98 -0
- package/esm5/internals/testing/symbol.js +29 -0
- package/esm5/ngxs-store.js +24 -27
- package/esm5/operators/append.js +31 -31
- package/esm5/operators/compose.js +28 -28
- package/esm5/operators/iif.js +56 -56
- package/esm5/operators/index.js +18 -18
- package/esm5/operators/insert-item.js +41 -41
- package/esm5/operators/internals.js +5 -5
- package/esm5/operators/ngxs-store-operators.js +8 -8
- package/esm5/operators/patch.js +40 -40
- package/esm5/operators/remove-item.js +34 -34
- package/esm5/operators/update-item.js +52 -52
- package/esm5/operators/utils.js +50 -50
- package/esm5/src/actions/actions.js +62 -62
- package/esm5/src/actions/symbols.js +39 -39
- package/esm5/src/actions-stream.js +184 -186
- package/esm5/src/configs/messages.config.js +79 -104
- package/esm5/src/decorators/action.js +60 -56
- package/esm5/src/decorators/select/select-factory.js +50 -47
- package/esm5/src/decorators/select/select.js +65 -50
- package/esm5/src/decorators/select/symbols.js +95 -51
- package/esm5/src/decorators/selector/selector.js +59 -55
- package/esm5/src/decorators/selector/symbols.js +5 -5
- package/esm5/src/decorators/selector-options.js +34 -34
- package/esm5/src/decorators/state.js +84 -76
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +121 -121
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +54 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +41 -41
- package/esm5/src/execution/symbols.js +29 -29
- package/esm5/src/internal/dispatcher.js +253 -246
- package/esm5/src/internal/internals.js +495 -491
- package/esm5/src/internal/lifecycle-state-manager.js +177 -177
- package/esm5/src/internal/state-context-factory.js +146 -146
- package/esm5/src/internal/state-factory.js +575 -563
- package/esm5/src/internal/state-operations.js +130 -139
- package/esm5/src/internal/state-operators.js +34 -34
- package/esm5/src/internal/state-stream.js +25 -25
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +28 -40
- package/esm5/src/module.js +201 -215
- package/esm5/src/modules/ngxs-feature.module.js +65 -65
- package/esm5/src/modules/ngxs-root.module.js +47 -47
- package/esm5/src/operators/leave-ngxs.js +58 -58
- package/esm5/src/operators/of-action.js +217 -217
- package/esm5/src/plugin-manager.js +82 -82
- package/esm5/src/plugin_api.js +10 -10
- package/esm5/src/public_api.js +29 -29
- package/esm5/src/public_to_deprecate.js +64 -64
- package/esm5/src/state-token/state-token.js +57 -57
- package/esm5/src/state-token/symbols.js +5 -5
- package/esm5/src/store.js +225 -225
- package/esm5/src/symbols.js +226 -230
- package/esm5/src/utils/compose.js +55 -55
- package/esm5/src/utils/freeze.js +35 -35
- package/esm5/src/utils/selector-utils.js +230 -230
- package/esm5/src/utils/store-validators.js +78 -86
- package/esm5/src/utils/utils.js +151 -151
- package/fesm2015/ngxs-store-internals-testing.js +216 -0
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -0
- package/fesm2015/ngxs-store-internals.js +361 -194
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store-operators.js +312 -312
- package/fesm2015/ngxs-store-operators.js.map +1 -1
- package/fesm2015/ngxs-store.js +3907 -3969
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store-internals-testing.js +263 -0
- package/fesm5/ngxs-store-internals-testing.js.map +1 -0
- package/fesm5/ngxs-store-internals.js +386 -219
- package/fesm5/ngxs-store-internals.js.map +1 -1
- package/fesm5/ngxs-store-operators.js +316 -316
- package/fesm5/ngxs-store-operators.js.map +1 -1
- package/fesm5/ngxs-store.js +4399 -4503
- package/fesm5/ngxs-store.js.map +1 -1
- package/index.d.ts +8 -8
- package/internals/angular.d.ts +3 -3
- package/internals/decorator-injector-adapter.d.ts +8 -0
- package/internals/index.d.ts +7 -6
- package/internals/initial-state.d.ts +8 -8
- package/internals/internal-tokens.d.ts +9 -9
- package/internals/memoize.d.ts +9 -9
- package/internals/ngxs-bootstrapper.d.ts +13 -13
- package/internals/ngxs-store-internals.d.ts +4 -4
- package/internals/ngxs-store-internals.metadata.json +1 -1
- package/internals/src/symbols.d.ts +7 -7
- package/internals/symbols.d.ts +7 -7
- package/internals/testing/fresh-platform.d.ts +1 -0
- package/internals/testing/helpers/ngxs-test.component.d.ts +5 -0
- package/internals/testing/helpers/ngxs-test.module.d.ts +4 -0
- package/internals/testing/index.d.ts +3 -0
- package/internals/testing/ngxs-store-internals-testing.d.ts +4 -0
- package/internals/testing/ngxs-store-internals-testing.metadata.json +1 -0
- package/internals/testing/ngxs.setup.d.ts +7 -0
- package/internals/testing/package.json +13 -0
- package/internals/testing/symbol.d.ts +14 -0
- package/ngxs-store.d.ts +20 -23
- package/ngxs-store.metadata.json +1 -1
- package/operators/append.d.ts +6 -6
- package/operators/compose.d.ts +2 -2
- package/operators/iif.d.ts +11 -11
- package/operators/index.d.ts +13 -13
- package/operators/insert-item.d.ts +7 -7
- package/operators/internals.d.ts +2 -2
- package/operators/ngxs-store-operators.d.ts +4 -4
- package/operators/patch.d.ts +10 -10
- package/operators/remove-item.d.ts +7 -7
- package/operators/update-item.d.ts +10 -10
- package/operators/utils.d.ts +9 -9
- package/package.json +3 -3
- package/src/actions/actions.d.ts +15 -15
- package/src/actions/symbols.d.ts +21 -21
- package/src/actions-stream.d.ts +49 -49
- package/src/configs/messages.config.d.ts +11 -30
- package/src/decorators/action.d.ts +5 -5
- package/src/decorators/select/select-factory.d.ts +13 -14
- package/src/decorators/select/select.d.ts +4 -4
- package/src/decorators/select/symbols.d.ts +14 -10
- package/src/decorators/selector/selector.d.ts +5 -5
- package/src/decorators/selector/symbols.d.ts +4 -4
- package/src/decorators/selector-options.d.ts +5 -5
- package/src/decorators/state.d.ts +6 -6
- package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +11 -12
- package/src/execution/internal-ngxs-execution-strategy.d.ts +7 -7
- package/src/execution/noop-ngxs-execution-strategy.d.ts +5 -5
- package/src/execution/symbols.d.ts +6 -6
- package/src/internal/dispatcher.d.ts +32 -31
- package/src/internal/internals.d.ts +166 -167
- package/src/internal/lifecycle-state-manager.d.ts +20 -20
- package/src/internal/state-context-factory.d.ts +15 -15
- package/src/internal/state-factory.d.ts +57 -58
- package/src/internal/state-operations.d.ts +19 -21
- package/src/internal/state-operators.d.ts +2 -2
- package/src/internal/state-stream.d.ts +9 -9
- package/src/ivy/ivy-enabled-in-dev-mode.d.ts +6 -14
- package/src/module.d.ts +23 -23
- package/src/modules/ngxs-feature.module.d.ts +13 -13
- package/src/modules/ngxs-root.module.d.ts +13 -13
- package/src/operators/leave-ngxs.d.ts +7 -7
- package/src/operators/of-action.d.ts +43 -43
- package/src/plugin-manager.d.ts +10 -10
- package/src/plugin_api.d.ts +5 -5
- package/src/public_api.d.ts +17 -17
- package/src/public_to_deprecate.d.ts +21 -21
- package/src/state-token/state-token.d.ts +7 -7
- package/src/state-token/symbols.d.ts +5 -5
- package/src/store.d.ts +53 -53
- package/src/symbols.d.ts +135 -137
- package/src/utils/compose.d.ts +23 -23
- package/src/utils/freeze.d.ts +5 -5
- package/src/utils/selector-utils.d.ts +23 -23
- package/src/utils/store-validators.d.ts +7 -8
- package/src/utils/utils.d.ts +46 -46
- package/types/index.d.ts +2 -2
- package/esm2015/src/host-environment/host-environment.js +0 -31
- package/esm2015/src/internal/config-validator.js +0 -67
- package/esm2015/src/ivy/ensure-state-class-is-injectable.js +0 -34
- package/esm5/src/host-environment/host-environment.js +0 -29
- package/esm5/src/internal/config-validator.js +0 -76
- package/esm5/src/ivy/ensure-state-class-is-injectable.js +0 -34
- package/src/host-environment/host-environment.d.ts +0 -6
- package/src/internal/config-validator.d.ts +0 -10
- package/src/ivy/ensure-state-class-is-injectable.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@ngxs/store/internals/testing/helpers/ngxs-test.component.ts","ng://@ngxs/store/internals/testing/helpers/ngxs-test.module.ts","ng://@ngxs/store/internals/testing/ngxs.setup.ts","ng://@ngxs/store/internals/testing/fresh-platform.ts"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","this","n","v","op","TypeError","call","pop","length","push","__read","o","m","r","i","ar","error","__spread","arguments","concat","NgxsTestComponent","prototype","ngOnInit","ngAfterViewInit","Component","args","selector","template","NgxsTestModule","ngDoBootstrap","app","bootstrap","NgModule","imports","BrowserModule","declarations","entryComponents","NgxsTestBed","configureTestingStates","options","resetTestBed","before","TestBed","configureTestingModule","NgxsModule","forRoot","states","ngxsOptions","compileComponents","ngxsBootstrap","store","inject","Store","getTestBed","createRootNode","ApplicationRef","resetTestEnvironment","initTestEnvironment","BrowserDynamicTestingModule","platformBrowserDynamicTesting","document","DOCUMENT","root","BrowserDomAdapter","createElement","appendChild","destroyPlatformBeforeBootstrappingTheNewOne","destroyPlatform","getDOM","createRootElement","resetPlatformAfterBootstrapping","getElementsByTagName","item","removeChild","_a","removeRootElement","createPlatform","fn","whenDoneIsCalledPromise"],"mappings":"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","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { AfterViewInit, Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n template: ''\n})\nexport class NgxsTestComponent implements OnInit, AfterViewInit {\n public ngOnInit(): void {}\n public ngAfterViewInit(): void {}\n}\n","import { ApplicationRef, NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\n\nimport { NgxsTestComponent } from './ngxs-test.component';\n\n@NgModule({\n imports: [BrowserModule],\n declarations: [NgxsTestComponent],\n entryComponents: [NgxsTestComponent]\n})\nexport class NgxsTestModule {\n public static ngDoBootstrap(app: ApplicationRef): void {\n app.bootstrap(NgxsTestComponent);\n }\n}\n","import { ApplicationRef } from '@angular/core';\nimport { TestBed, TestBedStatic } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵBrowserDomAdapter as BrowserDomAdapter } from '@angular/platform-browser';\nimport {\n BrowserDynamicTestingModule,\n platformBrowserDynamicTesting\n} from '@angular/platform-browser-dynamic/testing';\nimport { NgxsModule, Store } from '@ngxs/store';\n\nimport { NgxsTestModule } from './helpers/ngxs-test.module';\nimport { NgxsOptionsTesting, NgxsTesting } from './symbol';\n\nexport class NgxsTestBed {\n public static configureTestingStates(options: NgxsOptionsTesting): NgxsTesting {\n this.resetTestBed();\n\n if (options.before) {\n options.before();\n }\n\n TestBed.configureTestingModule({\n imports: [\n NgxsTestModule,\n NgxsModule.forRoot(options.states || [], options.ngxsOptions || {}),\n ...(options.imports || [])\n ]\n }).compileComponents();\n\n NgxsTestBed.ngxsBootstrap();\n\n return {\n get store(): Store {\n return TestBed.inject(Store);\n },\n get getTestBed(): TestBedStatic {\n return TestBed;\n }\n };\n }\n\n private static ngxsBootstrap(): void {\n NgxsTestBed.createRootNode();\n NgxsTestModule.ngDoBootstrap(TestBed.inject(ApplicationRef));\n }\n\n private static resetTestBed(): void {\n TestBed.resetTestEnvironment();\n TestBed.initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());\n }\n\n private static createRootNode(selector = 'app-root'): void {\n const document = TestBed.inject(DOCUMENT);\n const adapter = new BrowserDomAdapter();\n const root = adapter.createElement(selector);\n document.body.appendChild(root);\n }\n}\n","import { TestBed } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵgetDOM as getDOM } from '@angular/platform-browser';\nimport { destroyPlatform, createPlatform } from '@angular/core';\n\nfunction createRootElement() {\n const document = TestBed.inject(DOCUMENT);\n const root = getDOM().createElement('app-root', document);\n document.body.appendChild(root);\n}\n\nfunction removeRootElement() {\n const root: Element = document.getElementsByTagName('app-root').item(0)!;\n try {\n document.body.removeChild(root);\n } catch {}\n}\n\nfunction destroyPlatformBeforeBootstrappingTheNewOne() {\n destroyPlatform();\n createRootElement();\n}\n\n// As we create our custom platform via `bootstrapModule`\n// we have to destroy it after assetions and revert\n// the previous one\nfunction resetPlatformAfterBootstrapping() {\n removeRootElement();\n destroyPlatform();\n createPlatform(TestBed);\n}\n\nexport function freshPlatform(fn: (done?: VoidFunction) => Promise<void>) {\n let done: VoidFunction | null = null,\n whenDoneIsCalledPromise: Promise<void> | null = null;\n\n const hasDoneArgument = fn.length === 1;\n\n if (hasDoneArgument) {\n whenDoneIsCalledPromise = new Promise<void>(resolve => {\n done = resolve;\n });\n }\n\n return async function testWithAFreshPlatform() {\n try {\n destroyPlatformBeforeBootstrappingTheNewOne();\n\n if (done !== null) {\n await fn(done);\n await whenDoneIsCalledPromise!;\n } else {\n await fn();\n }\n } finally {\n resetPlatformAfterBootstrapping();\n }\n };\n}\n"]}
|
|
@@ -4,232 +4,401 @@
|
|
|
4
4
|
(global = global || self, factory((global.ngxs = global.ngxs || {}, global.ngxs.store = global.ngxs.store || {}, global.ngxs.store.internals = {}), global.ng.core, global.rxjs));
|
|
5
5
|
}(this, function (exports, core, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @fileoverview added by tsickle
|
|
9
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* @param {?} a
|
|
13
|
-
* @param {?} b
|
|
14
|
-
* @return {?}
|
|
15
|
-
*/
|
|
16
|
-
function defaultEqualityCheck(a, b) {
|
|
17
|
-
return a === b;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @param {?} equalityCheck
|
|
21
|
-
* @param {?} prev
|
|
22
|
-
* @param {?} next
|
|
23
|
-
* @return {?}
|
|
24
|
-
*/
|
|
25
|
-
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
|
26
|
-
if (prev === null || next === null || prev.length !== next.length) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
// Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
|
|
30
|
-
/** @type {?} */
|
|
31
|
-
var length = prev.length;
|
|
32
|
-
for (var i = 0; i < length; i++) {
|
|
33
|
-
if (!equalityCheck(prev[i], next[i])) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Memoize a function on its last inputs only.
|
|
41
|
-
* Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js
|
|
42
|
-
*
|
|
43
|
-
* @ignore
|
|
44
|
-
* @template T
|
|
45
|
-
* @param {?} func
|
|
46
|
-
* @param {?=} equalityCheck
|
|
47
|
-
* @return {?}
|
|
48
|
-
*/
|
|
49
|
-
function memoize(func, equalityCheck) {
|
|
50
|
-
if (equalityCheck === void 0) { equalityCheck = defaultEqualityCheck; }
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
var lastArgs = null;
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
var lastResult = null;
|
|
55
|
-
// we reference arguments instead of spreading them for performance reasons
|
|
56
|
-
/**
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
function memoized() {
|
|
60
|
-
if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
|
|
61
|
-
// apply arguments instead of spreading for performance.
|
|
62
|
-
lastResult = ((/** @type {?} */ (func))).apply(null, arguments);
|
|
63
|
-
}
|
|
64
|
-
lastArgs = arguments;
|
|
65
|
-
return lastResult;
|
|
66
|
-
}
|
|
67
|
-
((/** @type {?} */ (memoized))).reset = (/**
|
|
68
|
-
* @return {?}
|
|
69
|
-
*/
|
|
70
|
-
function () {
|
|
71
|
-
// The hidden (for now) ability to reset the memoization
|
|
72
|
-
lastArgs = null;
|
|
73
|
-
lastResult = null;
|
|
74
|
-
});
|
|
75
|
-
return (/** @type {?} */ (memoized));
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview added by tsickle
|
|
9
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* @param {?} a
|
|
13
|
+
* @param {?} b
|
|
14
|
+
* @return {?}
|
|
15
|
+
*/
|
|
16
|
+
function defaultEqualityCheck(a, b) {
|
|
17
|
+
return a === b;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @param {?} equalityCheck
|
|
21
|
+
* @param {?} prev
|
|
22
|
+
* @param {?} next
|
|
23
|
+
* @return {?}
|
|
24
|
+
*/
|
|
25
|
+
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
|
|
26
|
+
if (prev === null || next === null || prev.length !== next.length) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
// Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
|
|
30
|
+
/** @type {?} */
|
|
31
|
+
var length = prev.length;
|
|
32
|
+
for (var i = 0; i < length; i++) {
|
|
33
|
+
if (!equalityCheck(prev[i], next[i])) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Memoize a function on its last inputs only.
|
|
41
|
+
* Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js
|
|
42
|
+
*
|
|
43
|
+
* @ignore
|
|
44
|
+
* @template T
|
|
45
|
+
* @param {?} func
|
|
46
|
+
* @param {?=} equalityCheck
|
|
47
|
+
* @return {?}
|
|
48
|
+
*/
|
|
49
|
+
function memoize(func, equalityCheck) {
|
|
50
|
+
if (equalityCheck === void 0) { equalityCheck = defaultEqualityCheck; }
|
|
51
|
+
/** @type {?} */
|
|
52
|
+
var lastArgs = null;
|
|
53
|
+
/** @type {?} */
|
|
54
|
+
var lastResult = null;
|
|
55
|
+
// we reference arguments instead of spreading them for performance reasons
|
|
56
|
+
/**
|
|
57
|
+
* @return {?}
|
|
58
|
+
*/
|
|
59
|
+
function memoized() {
|
|
60
|
+
if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
|
|
61
|
+
// apply arguments instead of spreading for performance.
|
|
62
|
+
lastResult = ((/** @type {?} */ (func))).apply(null, arguments);
|
|
63
|
+
}
|
|
64
|
+
lastArgs = arguments;
|
|
65
|
+
return lastResult;
|
|
66
|
+
}
|
|
67
|
+
((/** @type {?} */ (memoized))).reset = (/**
|
|
68
|
+
* @return {?}
|
|
69
|
+
*/
|
|
70
|
+
function () {
|
|
71
|
+
// The hidden (for now) ability to reset the memoization
|
|
72
|
+
lastArgs = null;
|
|
73
|
+
lastResult = null;
|
|
74
|
+
});
|
|
75
|
+
return (/** @type {?} */ (memoized));
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
* @fileoverview added by tsickle
|
|
80
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
81
|
-
*/
|
|
82
|
-
/**
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
function _isAngularInTestMode() {
|
|
86
|
-
/** @type {?} */
|
|
87
|
-
var platformRef = core.getPlatform();
|
|
88
|
-
if (!platformRef)
|
|
89
|
-
return false;
|
|
90
|
-
/** @type {?} */
|
|
91
|
-
var compilerOptions = platformRef.injector.get(core.COMPILER_OPTIONS, null);
|
|
92
|
-
if (!compilerOptions)
|
|
93
|
-
return false;
|
|
94
|
-
/** @type {?} */
|
|
95
|
-
var isInTestMode = compilerOptions.some((/**
|
|
96
|
-
* @param {?} item
|
|
97
|
-
* @return {?}
|
|
98
|
-
*/
|
|
99
|
-
function (item) {
|
|
100
|
-
/** @type {?} */
|
|
101
|
-
var providers = (item && item.providers) || [];
|
|
102
|
-
return providers.some((/**
|
|
103
|
-
* @param {?} provider
|
|
104
|
-
* @return {?}
|
|
105
|
-
*/
|
|
106
|
-
function (provider) {
|
|
107
|
-
return ((provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||
|
|
108
|
-
false);
|
|
109
|
-
}));
|
|
110
|
-
}));
|
|
111
|
-
return isInTestMode;
|
|
112
|
-
}
|
|
113
|
-
/** @type {?} */
|
|
114
|
-
var isAngularInTestMode =
|
|
78
|
+
/**
|
|
79
|
+
* @fileoverview added by tsickle
|
|
80
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* @return {?}
|
|
84
|
+
*/
|
|
85
|
+
function _isAngularInTestMode() {
|
|
86
|
+
/** @type {?} */
|
|
87
|
+
var platformRef = core.getPlatform();
|
|
88
|
+
if (!platformRef)
|
|
89
|
+
return false;
|
|
90
|
+
/** @type {?} */
|
|
91
|
+
var compilerOptions = platformRef.injector.get(core.COMPILER_OPTIONS, null);
|
|
92
|
+
if (!compilerOptions)
|
|
93
|
+
return false;
|
|
94
|
+
/** @type {?} */
|
|
95
|
+
var isInTestMode = compilerOptions.some((/**
|
|
96
|
+
* @param {?} item
|
|
97
|
+
* @return {?}
|
|
98
|
+
*/
|
|
99
|
+
function (item) {
|
|
100
|
+
/** @type {?} */
|
|
101
|
+
var providers = (item && item.providers) || [];
|
|
102
|
+
return providers.some((/**
|
|
103
|
+
* @param {?} provider
|
|
104
|
+
* @return {?}
|
|
105
|
+
*/
|
|
106
|
+
function (provider) {
|
|
107
|
+
return ((provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||
|
|
108
|
+
false);
|
|
109
|
+
}));
|
|
110
|
+
}));
|
|
111
|
+
return isInTestMode;
|
|
112
|
+
}
|
|
113
|
+
/** @type {?} */
|
|
114
|
+
var isAngularInTestMode =
|
|
115
|
+
// Caretaker note: we have still left the `typeof` condition in order to avoid
|
|
116
|
+
// creating a breaking change for projects that still use the View Engine.
|
|
117
|
+
typeof ngDevMode === 'undefined' || ngDevMode ? memoize(_isAngularInTestMode) : (/**
|
|
118
|
+
* @return {?}
|
|
119
|
+
*/
|
|
120
|
+
function () { return false; });
|
|
115
121
|
|
|
116
|
-
/**
|
|
117
|
-
* @fileoverview added by tsickle
|
|
118
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
119
|
-
*/
|
|
120
|
-
var NgxsBootstrapper = /** @class */ (function () {
|
|
121
|
-
function NgxsBootstrapper() {
|
|
122
|
-
/**
|
|
123
|
-
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
124
|
-
*/
|
|
125
|
-
this.bootstrap$ = new rxjs.ReplaySubject(1);
|
|
126
|
-
}
|
|
127
|
-
Object.defineProperty(NgxsBootstrapper.prototype, "appBootstrapped$", {
|
|
128
|
-
get: /**
|
|
129
|
-
* @return {?}
|
|
130
|
-
*/
|
|
131
|
-
function () {
|
|
132
|
-
return this.bootstrap$.asObservable();
|
|
133
|
-
},
|
|
134
|
-
enumerable: true,
|
|
135
|
-
configurable: true
|
|
136
|
-
});
|
|
137
|
-
/**
|
|
138
|
-
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
139
|
-
* to the tree of views, that's a signal that application has been fully rendered
|
|
140
|
-
*/
|
|
141
|
-
/**
|
|
142
|
-
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
143
|
-
* to the tree of views, that's a signal that application has been fully rendered
|
|
144
|
-
* @return {?}
|
|
145
|
-
*/
|
|
146
|
-
NgxsBootstrapper.prototype.bootstrap = /**
|
|
147
|
-
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
148
|
-
* to the tree of views, that's a signal that application has been fully rendered
|
|
149
|
-
* @return {?}
|
|
150
|
-
*/
|
|
151
|
-
function () {
|
|
152
|
-
this.bootstrap$.next(true);
|
|
153
|
-
this.bootstrap$.complete();
|
|
154
|
-
};
|
|
155
|
-
NgxsBootstrapper.decorators = [
|
|
156
|
-
{ type: core.Injectable }
|
|
157
|
-
];
|
|
158
|
-
return NgxsBootstrapper;
|
|
159
|
-
}());
|
|
160
|
-
if (false) {
|
|
161
|
-
/**
|
|
162
|
-
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
163
|
-
* @type {?}
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
NgxsBootstrapper.prototype.bootstrap$;
|
|
122
|
+
/**
|
|
123
|
+
* @fileoverview added by tsickle
|
|
124
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
125
|
+
*/
|
|
126
|
+
var NgxsBootstrapper = /** @class */ (function () {
|
|
127
|
+
function NgxsBootstrapper() {
|
|
128
|
+
/**
|
|
129
|
+
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
130
|
+
*/
|
|
131
|
+
this.bootstrap$ = new rxjs.ReplaySubject(1);
|
|
132
|
+
}
|
|
133
|
+
Object.defineProperty(NgxsBootstrapper.prototype, "appBootstrapped$", {
|
|
134
|
+
get: /**
|
|
135
|
+
* @return {?}
|
|
136
|
+
*/
|
|
137
|
+
function () {
|
|
138
|
+
return this.bootstrap$.asObservable();
|
|
139
|
+
},
|
|
140
|
+
enumerable: true,
|
|
141
|
+
configurable: true
|
|
142
|
+
});
|
|
143
|
+
/**
|
|
144
|
+
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
145
|
+
* to the tree of views, that's a signal that application has been fully rendered
|
|
146
|
+
*/
|
|
147
|
+
/**
|
|
148
|
+
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
149
|
+
* to the tree of views, that's a signal that application has been fully rendered
|
|
150
|
+
* @return {?}
|
|
151
|
+
*/
|
|
152
|
+
NgxsBootstrapper.prototype.bootstrap = /**
|
|
153
|
+
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
154
|
+
* to the tree of views, that's a signal that application has been fully rendered
|
|
155
|
+
* @return {?}
|
|
156
|
+
*/
|
|
157
|
+
function () {
|
|
158
|
+
this.bootstrap$.next(true);
|
|
159
|
+
this.bootstrap$.complete();
|
|
160
|
+
};
|
|
161
|
+
NgxsBootstrapper.decorators = [
|
|
162
|
+
{ type: core.Injectable }
|
|
163
|
+
];
|
|
164
|
+
return NgxsBootstrapper;
|
|
165
|
+
}());
|
|
166
|
+
if (false) {
|
|
167
|
+
/**
|
|
168
|
+
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
169
|
+
* @type {?}
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
NgxsBootstrapper.prototype.bootstrap$;
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
/**
|
|
170
|
-
* @fileoverview added by tsickle
|
|
171
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
172
|
-
*/
|
|
173
|
-
/** @type {?} */
|
|
174
|
-
var INITIAL_STATE_TOKEN = new core.InjectionToken('INITIAL_STATE_TOKEN');
|
|
175
|
-
var InitialState = /** @class */ (function () {
|
|
176
|
-
function InitialState() {
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* @param {?} state
|
|
180
|
-
* @return {?}
|
|
181
|
-
*/
|
|
182
|
-
InitialState.set = /**
|
|
183
|
-
* @param {?} state
|
|
184
|
-
* @return {?}
|
|
185
|
-
*/
|
|
186
|
-
function (state) {
|
|
187
|
-
this.value = state;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* @return {?}
|
|
191
|
-
*/
|
|
192
|
-
InitialState.pop = /**
|
|
193
|
-
* @return {?}
|
|
194
|
-
*/
|
|
195
|
-
function () {
|
|
196
|
-
/** @type {?} */
|
|
197
|
-
var state = this.value;
|
|
198
|
-
this.value = {};
|
|
199
|
-
return state;
|
|
200
|
-
};
|
|
201
|
-
InitialState.value = {};
|
|
202
|
-
return InitialState;
|
|
203
|
-
}());
|
|
204
|
-
if (false) {
|
|
205
|
-
/**
|
|
206
|
-
* @type {?}
|
|
207
|
-
* @private
|
|
208
|
-
*/
|
|
209
|
-
InitialState.value;
|
|
175
|
+
/**
|
|
176
|
+
* @fileoverview added by tsickle
|
|
177
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
178
|
+
*/
|
|
179
|
+
/** @type {?} */
|
|
180
|
+
var INITIAL_STATE_TOKEN = new core.InjectionToken('INITIAL_STATE_TOKEN');
|
|
181
|
+
var InitialState = /** @class */ (function () {
|
|
182
|
+
function InitialState() {
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @param {?} state
|
|
186
|
+
* @return {?}
|
|
187
|
+
*/
|
|
188
|
+
InitialState.set = /**
|
|
189
|
+
* @param {?} state
|
|
190
|
+
* @return {?}
|
|
191
|
+
*/
|
|
192
|
+
function (state) {
|
|
193
|
+
this.value = state;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* @return {?}
|
|
197
|
+
*/
|
|
198
|
+
InitialState.pop = /**
|
|
199
|
+
* @return {?}
|
|
200
|
+
*/
|
|
201
|
+
function () {
|
|
202
|
+
/** @type {?} */
|
|
203
|
+
var state = this.value;
|
|
204
|
+
this.value = {};
|
|
205
|
+
return state;
|
|
206
|
+
};
|
|
207
|
+
InitialState.value = {};
|
|
208
|
+
return InitialState;
|
|
209
|
+
}());
|
|
210
|
+
if (false) {
|
|
211
|
+
/**
|
|
212
|
+
* @type {?}
|
|
213
|
+
* @private
|
|
214
|
+
*/
|
|
215
|
+
InitialState.value;
|
|
210
216
|
}
|
|
211
217
|
|
|
212
|
-
/**
|
|
213
|
-
* @fileoverview added by tsickle
|
|
214
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
215
|
-
*/
|
|
216
|
-
/**
|
|
217
|
-
* @see StateContextFactory as it's referenced by this token to be accessed by plugins internally
|
|
218
|
-
* @type {?}
|
|
219
|
-
*/
|
|
220
|
-
var NGXS_STATE_CONTEXT_FACTORY = new core.InjectionToken('Internals.StateContextFactory');
|
|
221
|
-
/**
|
|
222
|
-
* @see StateFactory as it's referenced by this token to be accessed by plugins internally
|
|
223
|
-
* @type {?}
|
|
224
|
-
*/
|
|
218
|
+
/**
|
|
219
|
+
* @fileoverview added by tsickle
|
|
220
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
221
|
+
*/
|
|
222
|
+
/**
|
|
223
|
+
* @see StateContextFactory as it's referenced by this token to be accessed by plugins internally
|
|
224
|
+
* @type {?}
|
|
225
|
+
*/
|
|
226
|
+
var NGXS_STATE_CONTEXT_FACTORY = new core.InjectionToken('Internals.StateContextFactory');
|
|
227
|
+
/**
|
|
228
|
+
* @see StateFactory as it's referenced by this token to be accessed by plugins internally
|
|
229
|
+
* @type {?}
|
|
230
|
+
*/
|
|
225
231
|
var NGXS_STATE_FACTORY = new core.InjectionToken('Internals.StateFactory');
|
|
226
232
|
|
|
233
|
+
/**
|
|
234
|
+
* @fileoverview added by tsickle
|
|
235
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
236
|
+
*/
|
|
237
|
+
// Angular doesn't export `NG_FACTORY_DEF`.
|
|
238
|
+
/** @type {?} */
|
|
239
|
+
var NG_FACTORY_DEF = 'ɵfac';
|
|
240
|
+
// A `Symbol` which is used to save the `Injector` onto the class instance.
|
|
241
|
+
/** @type {?} */
|
|
242
|
+
var InjectorInstance = Symbol('InjectorInstance');
|
|
243
|
+
// A `Symbol` which is used to determine if factory has been decorated previously or not.
|
|
244
|
+
/** @type {?} */
|
|
245
|
+
var FactoryHasBeenDecorated = Symbol('FactoryHasBeenDecorated');
|
|
246
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
247
|
+
/**
|
|
248
|
+
* @param {?} target
|
|
249
|
+
* @return {?}
|
|
250
|
+
*/
|
|
251
|
+
function ensureLocalInjectorCaptured(target) {
|
|
252
|
+
if (FactoryHasBeenDecorated in target.constructor.prototype) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
/** @type {?} */
|
|
256
|
+
var constructor = target.constructor;
|
|
257
|
+
// Means we're in AOT mode.
|
|
258
|
+
if (typeof constructor[NG_FACTORY_DEF] === 'function') {
|
|
259
|
+
decorateFactory(constructor);
|
|
260
|
+
}
|
|
261
|
+
else if (ngDevMode) {
|
|
262
|
+
// We're running in JIT mode and that means we're not able to get the compiled definition
|
|
263
|
+
// on the class inside the property decorator during the current message loop tick. We have
|
|
264
|
+
// to wait for the next message loop tick. Note that this is safe since this Promise will be
|
|
265
|
+
// resolved even before the `APP_INITIALIZER` is resolved.
|
|
266
|
+
// The below code also will be executed only in development mode, since it's never recommended
|
|
267
|
+
// to use the JIT compiler in production mode (by setting "aot: false").
|
|
268
|
+
decorateFactoryLater(constructor);
|
|
269
|
+
}
|
|
270
|
+
target.constructor.prototype[FactoryHasBeenDecorated] = true;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @template T
|
|
274
|
+
* @param {?} instance
|
|
275
|
+
* @param {?} token
|
|
276
|
+
* @return {?}
|
|
277
|
+
*/
|
|
278
|
+
function localInject(instance, token) {
|
|
279
|
+
/** @type {?} */
|
|
280
|
+
var injector = instance[InjectorInstance];
|
|
281
|
+
return injector ? injector.get(token) : null;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @param {?} constructor
|
|
285
|
+
* @return {?}
|
|
286
|
+
*/
|
|
287
|
+
function decorateFactory(constructor) {
|
|
288
|
+
/** @type {?} */
|
|
289
|
+
var factory = constructor[NG_FACTORY_DEF];
|
|
290
|
+
if (typeof factory !== 'function') {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
// Let's try to get any definition.
|
|
294
|
+
// Caretaker note: this will be compatible only with Angular 9+, since Angular 9 is the first
|
|
295
|
+
// Ivy-stable version. Previously definition properties were named differently (e.g. `ngComponentDef`).
|
|
296
|
+
/** @type {?} */
|
|
297
|
+
var def = constructor.ɵprov || constructor.ɵpipe || constructor.ɵcmp || constructor.ɵdir;
|
|
298
|
+
/** @type {?} */
|
|
299
|
+
var decoratedFactory = (/**
|
|
300
|
+
* @return {?}
|
|
301
|
+
*/
|
|
302
|
+
function () {
|
|
303
|
+
/** @type {?} */
|
|
304
|
+
var instance = factory();
|
|
305
|
+
// Caretaker note: `inject()` won't work here.
|
|
306
|
+
// We can use the `directiveInject` only during the component
|
|
307
|
+
// construction, since Angular captures the currently active injector.
|
|
308
|
+
// We're not able to use this function inside the getter (when the `selectorId` property is
|
|
309
|
+
// requested for the first time), since the currently active injector will be null.
|
|
310
|
+
instance[InjectorInstance] = core.ɵɵdirectiveInject(
|
|
311
|
+
// We're using `INJECTOR` token except of the `Injector` class since the compiler
|
|
312
|
+
// throws: `Cannot assign an abstract constructor type to a non-abstract constructor type.`.
|
|
313
|
+
// Caretaker note: that this is the same way of getting the injector.
|
|
314
|
+
core.INJECTOR);
|
|
315
|
+
return instance;
|
|
316
|
+
});
|
|
317
|
+
// If we've found any definition then it's enough to override the `def.factory` since Angular
|
|
318
|
+
// code uses the `def.factory` and then fallbacks to `ɵfac`.
|
|
319
|
+
if (def) {
|
|
320
|
+
def.factory = decoratedFactory;
|
|
321
|
+
}
|
|
322
|
+
// `@NgModule()` doesn't doesn't have definition factory, also providers have definitions but Angular
|
|
323
|
+
// still uses the `ɵfac`.
|
|
324
|
+
Object.defineProperty(constructor, NG_FACTORY_DEF, {
|
|
325
|
+
get: (/**
|
|
326
|
+
* @return {?}
|
|
327
|
+
*/
|
|
328
|
+
function () { return decoratedFactory; })
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {?} constructor
|
|
333
|
+
* @return {?}
|
|
334
|
+
*/
|
|
335
|
+
function decorateFactoryLater(constructor) {
|
|
336
|
+
// This function actually will be tree-shaken away when building for production since it's guarded with `ngDevMode`.
|
|
337
|
+
// We're having the `try-catch` here because of the `SyncTestZoneSpec`, which throws
|
|
338
|
+
// an error when micro or macrotask is used within a synchronous test. E.g. `Cannot call
|
|
339
|
+
// Promise.then from within a sync test`.
|
|
340
|
+
try {
|
|
341
|
+
Promise.resolve().then((/**
|
|
342
|
+
* @return {?}
|
|
343
|
+
*/
|
|
344
|
+
function () {
|
|
345
|
+
decorateFactory(constructor);
|
|
346
|
+
}));
|
|
347
|
+
}
|
|
348
|
+
catch (_a) {
|
|
349
|
+
// This is kind of a "hack", but we try to be backwards-compatible,
|
|
350
|
+
// tho this `catch` block will only be executed when tests are run with Jasmine or Jest.
|
|
351
|
+
core.ɵglobal.process &&
|
|
352
|
+
core.ɵglobal.process.nextTick &&
|
|
353
|
+
core.ɵglobal.process.nextTick((/**
|
|
354
|
+
* @return {?}
|
|
355
|
+
*/
|
|
356
|
+
function () {
|
|
357
|
+
decorateFactory(constructor);
|
|
358
|
+
}));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @record
|
|
363
|
+
*/
|
|
364
|
+
function Definition() { }
|
|
365
|
+
if (false) {
|
|
366
|
+
/** @type {?} */
|
|
367
|
+
Definition.prototype.factory;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @record
|
|
371
|
+
*/
|
|
372
|
+
function ConstructorWithDefinitionAndFactory() { }
|
|
373
|
+
if (false) {
|
|
374
|
+
/** @type {?|undefined} */
|
|
375
|
+
ConstructorWithDefinitionAndFactory.prototype.ɵprov;
|
|
376
|
+
/** @type {?|undefined} */
|
|
377
|
+
ConstructorWithDefinitionAndFactory.prototype.ɵpipe;
|
|
378
|
+
/** @type {?|undefined} */
|
|
379
|
+
ConstructorWithDefinitionAndFactory.prototype.ɵcmp;
|
|
380
|
+
/** @type {?|undefined} */
|
|
381
|
+
ConstructorWithDefinitionAndFactory.prototype.ɵdir;
|
|
382
|
+
/* Skipping unnamed member:
|
|
383
|
+
[NG_FACTORY_DEF]?: Factory;*/
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* @record
|
|
387
|
+
*/
|
|
388
|
+
function PrivateInstance() { }
|
|
389
|
+
if (false) {
|
|
390
|
+
/* Skipping unnamed member:
|
|
391
|
+
[InjectorInstance]?: Injector;*/
|
|
392
|
+
}
|
|
393
|
+
|
|
227
394
|
exports.INITIAL_STATE_TOKEN = INITIAL_STATE_TOKEN;
|
|
228
395
|
exports.InitialState = InitialState;
|
|
229
396
|
exports.NGXS_STATE_CONTEXT_FACTORY = NGXS_STATE_CONTEXT_FACTORY;
|
|
230
397
|
exports.NGXS_STATE_FACTORY = NGXS_STATE_FACTORY;
|
|
231
398
|
exports.NgxsBootstrapper = NgxsBootstrapper;
|
|
399
|
+
exports.ensureLocalInjectorCaptured = ensureLocalInjectorCaptured;
|
|
232
400
|
exports.isAngularInTestMode = isAngularInTestMode;
|
|
401
|
+
exports.localInject = localInject;
|
|
233
402
|
exports.memoize = memoize;
|
|
234
403
|
|
|
235
404
|
Object.defineProperty(exports, '__esModule', { value: true });
|