@ngxs/store 3.8.2 → 18.0.0-dev.master-f4c2c19
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 +1 -1
- package/{esm2015/index.js → esm2022/index.mjs} +2 -2
- package/esm2022/internals/custom-rxjs-subjects.mjs +92 -0
- package/esm2022/internals/index.mjs +10 -0
- package/esm2022/internals/initial-state.mjs +18 -0
- package/esm2022/internals/internal-tokens.mjs +6 -0
- package/esm2022/internals/memoize.mjs +45 -0
- package/esm2022/internals/metadata.mjs +57 -0
- package/esm2022/internals/ngxs-app-bootstrapped-state.mjs +19 -0
- package/esm2022/internals/state-stream.mjs +32 -0
- package/esm2022/internals/state-token.mjs +17 -0
- package/esm2022/internals/symbols.mjs +11 -0
- package/esm2022/internals/testing/fresh-platform.mjs +72 -0
- package/{esm2015/internals/testing/helpers/ngxs-test.component.js → esm2022/internals/testing/helpers/ngxs-test.component.mjs} +4 -4
- package/esm2022/internals/testing/helpers/ngxs-test.module.mjs +20 -0
- package/{esm2015/internals/testing/index.js → esm2022/internals/testing/index.mjs} +2 -2
- package/esm2022/internals/testing/ngxs.setup.mjs +48 -0
- package/{esm2015/internals/testing/skip-console-logging.js → esm2022/internals/testing/skip-console-logging.mjs} +1 -1
- package/esm2022/internals/testing/symbol.mjs +2 -0
- package/esm2022/operators/append.mjs +20 -0
- package/esm2022/operators/iif.mjs +38 -0
- package/esm2022/operators/insert-item.mjs +29 -0
- package/esm2022/operators/patch.mjs +21 -0
- package/esm2022/operators/remove-item.mjs +22 -0
- package/esm2022/operators/update-item.mjs +40 -0
- package/esm2022/plugins/actions.mjs +16 -0
- package/esm2022/plugins/index.mjs +4 -0
- package/esm2022/plugins/ngxs-store-plugins.mjs +5 -0
- package/esm2022/plugins/symbols.mjs +6 -0
- package/esm2022/plugins/utils.mjs +51 -0
- package/esm2022/src/actions/symbols.mjs +2 -0
- package/esm2022/src/actions-stream.mjs +52 -0
- package/esm2022/src/configs/messages.config.mjs +48 -0
- package/esm2022/src/decorators/action.mjs +31 -0
- package/esm2022/src/decorators/select/select-factory.mjs +29 -0
- package/esm2022/src/decorators/select/select.mjs +29 -0
- package/esm2022/src/decorators/select/symbols.mjs +29 -0
- package/esm2022/src/decorators/selector/selector.mjs +29 -0
- package/esm2022/src/decorators/selector/symbols.mjs +2 -0
- package/esm2022/src/decorators/selector-options.mjs +21 -0
- package/esm2022/src/decorators/state.mjs +35 -0
- package/esm2022/src/dev-features/ngxs-development.module.mjs +28 -0
- package/esm2022/src/dev-features/ngxs-unhandled-actions-logger.mjs +45 -0
- package/esm2022/src/dev-features/symbols.mjs +7 -0
- package/esm2022/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs +55 -0
- package/{esm2015/src/execution/internal-ngxs-execution-strategy.js → esm2022/src/execution/internal-ngxs-execution-strategy.mjs} +6 -6
- package/{esm2015/src/execution/noop-ngxs-execution-strategy.js → esm2022/src/execution/noop-ngxs-execution-strategy.mjs} +4 -4
- package/esm2022/src/execution/symbols.mjs +29 -0
- package/esm2022/src/internal/dispatcher.mjs +106 -0
- package/esm2022/src/internal/fallback-subscriber.mjs +29 -0
- package/esm2022/src/internal/internals.mjs +206 -0
- package/esm2022/src/internal/lifecycle-state-manager.mjs +86 -0
- package/esm2022/src/internal/state-context-factory.mjs +71 -0
- package/esm2022/src/internal/state-factory.mjs +311 -0
- package/esm2022/src/internal/state-operations.mjs +63 -0
- package/esm2022/src/internal/state-operators.mjs +20 -0
- package/esm2022/src/internal/unhandled-rxjs-error-callback.mjs +39 -0
- package/esm2022/src/ivy/ivy-enabled-in-dev-mode.mjs +25 -0
- package/esm2022/src/module.mjs +27 -0
- package/esm2022/src/modules/ngxs-feature.module.mjs +18 -0
- package/esm2022/src/modules/ngxs-root.module.mjs +18 -0
- package/esm2022/src/ngxs-unhandled-error-handler.mjs +29 -0
- package/esm2022/src/operators/of-action.mjs +104 -0
- package/esm2022/src/plugin-manager.mjs +37 -0
- package/esm2022/src/plugin_api.mjs +2 -0
- package/{esm2015/src/private_api.js → esm2022/src/private_api.mjs} +2 -1
- package/esm2022/src/public_api.mjs +20 -0
- package/esm2022/src/selectors/create-model-selector.mjs +30 -0
- package/esm2022/src/selectors/create-pick-selector.mjs +16 -0
- package/esm2022/src/selectors/create-property-selectors.mjs +20 -0
- package/esm2022/src/selectors/create-selector.mjs +9 -0
- package/esm2022/src/selectors/private_api.mjs +2 -0
- package/esm2022/src/selectors/selector-checks.util.mjs +18 -0
- package/esm2022/src/selectors/selector-metadata.mjs +35 -0
- package/esm2022/src/selectors/selector-models.mjs +2 -0
- package/esm2022/src/selectors/selector-types.util.mjs +2 -0
- package/esm2022/src/selectors/selector-utils.mjs +95 -0
- package/esm2022/src/standalone-features/feature-providers.mjs +20 -0
- package/esm2022/src/standalone-features/index.mjs +5 -0
- package/esm2022/src/standalone-features/initializers.mjs +89 -0
- package/esm2022/src/standalone-features/plugin.mjs +20 -0
- package/esm2022/src/standalone-features/preboot.mjs +32 -0
- package/esm2022/src/standalone-features/provide-states.mjs +26 -0
- package/esm2022/src/standalone-features/provide-store.mjs +26 -0
- package/esm2022/src/standalone-features/root-providers.mjs +47 -0
- package/esm2022/src/store.mjs +117 -0
- package/esm2022/src/symbols.mjs +87 -0
- package/esm2022/src/utils/compose.mjs +26 -0
- package/esm2022/src/utils/create-dispatch-map.mjs +11 -0
- package/esm2022/src/utils/create-select-map.mjs +13 -0
- package/esm2022/src/utils/dispatch.mjs +7 -0
- package/{esm2015/src/utils/freeze.js → esm2022/src/utils/freeze.mjs} +1 -1
- package/esm2022/src/utils/public_api.mjs +5 -0
- package/esm2022/src/utils/select.mjs +19 -0
- package/esm2022/src/utils/store-validators.mjs +25 -0
- package/{fesm2015/ngxs-store-internals-testing.js → fesm2022/ngxs-store-internals-testing.mjs} +84 -81
- package/fesm2022/ngxs-store-internals-testing.mjs.map +1 -0
- package/fesm2022/ngxs-store-internals.mjs +296 -0
- package/fesm2022/ngxs-store-internals.mjs.map +1 -0
- package/{fesm2015/ngxs-store-operators.js → fesm2022/ngxs-store-operators.mjs} +3 -3
- package/fesm2022/ngxs-store-operators.mjs.map +1 -0
- package/fesm2022/ngxs-store-plugins.mjs +80 -0
- package/fesm2022/ngxs-store-plugins.mjs.map +1 -0
- package/{fesm2015/ngxs-store.js → fesm2022/ngxs-store.mjs} +1319 -1265
- package/fesm2022/ngxs-store.mjs.map +1 -0
- package/index.d.ts +1 -1
- package/{src/internal → internals}/custom-rxjs-subjects.d.ts +2 -2
- package/internals/index.d.ts +8 -4
- package/internals/initial-state.d.ts +5 -5
- package/internals/memoize.d.ts +1 -1
- package/internals/metadata.d.ts +25 -0
- package/internals/ngxs-app-bootstrapped-state.d.ts +8 -0
- package/internals/state-stream.d.ts +15 -0
- package/internals/state-token.d.ts +7 -0
- package/internals/symbols.d.ts +84 -3
- package/internals/testing/helpers/ngxs-test.component.d.ts +1 -1
- package/internals/testing/index.d.ts +2 -2
- package/internals/testing/symbol.d.ts +2 -2
- package/operators/patch.d.ts +2 -2
- package/operators/types.d.ts +5 -5
- package/operators/utils.d.ts +1 -1
- package/package.json +44 -13
- package/{src/actions → plugins}/actions.d.ts +3 -3
- package/plugins/index.d.ts +3 -0
- package/plugins/symbols.d.ts +13 -0
- package/{src/utils → plugins}/utils.d.ts +0 -17
- package/schematics/collection.json +36 -0
- package/schematics/src/actions/actions.factory.d.ts +3 -0
- package/schematics/src/actions/actions.factory.js +24 -0
- package/schematics/src/actions/actions.factory.js.map +1 -0
- package/schematics/src/actions/files/__name__.actions.ts__template__ +4 -0
- package/schematics/src/actions/schema.json +35 -0
- package/schematics/src/ng-add/add-declaration.d.ts +4 -0
- package/schematics/src/ng-add/add-declaration.js +109 -0
- package/schematics/src/ng-add/add-declaration.js.map +1 -0
- package/schematics/src/ng-add/ng-add.factory.d.ts +9 -0
- package/schematics/src/ng-add/ng-add.factory.js +89 -0
- package/schematics/src/ng-add/ng-add.factory.js.map +1 -0
- package/schematics/src/ng-add/schema.json +72 -0
- package/schematics/src/starter-kit/files/store/auth/auth.actions.ts__template__ +6 -0
- package/schematics/src/starter-kit/files/store/auth/auth.state.spec.ts__template__ +55 -0
- package/schematics/src/starter-kit/files/store/auth/auth.state.ts__template__ +47 -0
- package/schematics/src/starter-kit/files/store/dashboard/index.ts__template__ +4 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.actions.ts__template__ +10 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.state.spec.ts__template__ +92 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.state.ts__template__ +62 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/user/user.actions.ts__template__ +6 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/user/user.state.spec.ts__template__ +61 -0
- package/schematics/src/starter-kit/files/store/dashboard/states/user/user.state.ts__template__ +42 -0
- package/schematics/src/starter-kit/files/store/store.config.ts__template__ +39 -0
- package/schematics/src/starter-kit/files/store/store.module.ts__template__ +22 -0
- package/schematics/src/starter-kit/schema.json +22 -0
- package/schematics/src/starter-kit/starter-kit.factory.d.ts +3 -0
- package/schematics/src/starter-kit/starter-kit.factory.js +21 -0
- package/schematics/src/starter-kit/starter-kit.factory.js.map +1 -0
- package/schematics/src/state/files/__name__.state.spec.ts__template__ +25 -0
- package/schematics/src/state/files/__name__.state.ts__template__ +22 -0
- package/schematics/src/state/schema.json +44 -0
- package/schematics/src/state/state.factory.d.ts +3 -0
- package/schematics/src/state/state.factory.js +29 -0
- package/schematics/src/state/state.factory.js.map +1 -0
- package/schematics/src/store/files/__name__.actions.ts__template__ +4 -0
- package/schematics/src/store/files/__name__.state.spec.ts__template__ +26 -0
- package/schematics/src/store/files/__name__.state.ts__template__ +29 -0
- package/schematics/src/store/schema.json +44 -0
- package/schematics/src/store/store.factory.d.ts +3 -0
- package/schematics/src/store/store.factory.js +29 -0
- package/schematics/src/store/store.factory.js.map +1 -0
- package/schematics/src/utils/common/lib.config.d.ts +10 -0
- package/schematics/src/utils/common/lib.config.js +15 -0
- package/schematics/src/utils/common/lib.config.js.map +1 -0
- package/schematics/src/utils/common/project-files.config.d.ts +3 -0
- package/schematics/src/utils/common/project-files.config.js +7 -0
- package/schematics/src/utils/common/project-files.config.js.map +1 -0
- package/schematics/src/utils/common/properties.d.ts +1 -0
- package/schematics/src/utils/common/properties.js +8 -0
- package/schematics/src/utils/common/properties.js.map +1 -0
- package/schematics/src/utils/config.d.ts +119 -0
- package/schematics/src/utils/config.js +21 -0
- package/schematics/src/utils/config.js.map +1 -0
- package/schematics/src/utils/generate-utils.d.ts +4 -0
- package/schematics/src/utils/generate-utils.js +14 -0
- package/schematics/src/utils/generate-utils.js.map +1 -0
- package/schematics/src/utils/interfaces/package.interface.d.ts +7 -0
- package/schematics/src/utils/interfaces/package.interface.js +3 -0
- package/schematics/src/utils/interfaces/package.interface.js.map +1 -0
- package/schematics/src/utils/ng-utils/README.md +1 -0
- package/schematics/src/utils/ng-utils/ast-utils.d.ts +99 -0
- package/schematics/src/utils/ng-utils/ast-utils.js +517 -0
- package/schematics/src/utils/ng-utils/ast-utils.js.map +1 -0
- package/schematics/src/utils/ng-utils/ng-ast-utils.d.ts +5 -0
- package/schematics/src/utils/ng-utils/ng-ast-utils.js +67 -0
- package/schematics/src/utils/ng-utils/ng-ast-utils.js.map +1 -0
- package/schematics/src/utils/ng-utils/project.d.ts +2 -0
- package/schematics/src/utils/ng-utils/project.js +27 -0
- package/schematics/src/utils/ng-utils/project.js.map +1 -0
- package/schematics/src/utils/ng-utils/standalone/app_config.d.ts +16 -0
- package/schematics/src/utils/ng-utils/standalone/app_config.js +84 -0
- package/schematics/src/utils/ng-utils/standalone/app_config.js.map +1 -0
- package/schematics/src/utils/ng-utils/standalone/code_block.d.ts +46 -0
- package/schematics/src/utils/ng-utils/standalone/code_block.js +73 -0
- package/schematics/src/utils/ng-utils/standalone/code_block.js.map +1 -0
- package/schematics/src/utils/ng-utils/standalone/index.d.ts +1 -0
- package/schematics/src/utils/ng-utils/standalone/index.js +7 -0
- package/schematics/src/utils/ng-utils/standalone/index.js.map +1 -0
- package/schematics/src/utils/ng-utils/standalone/rules.d.ts +38 -0
- package/schematics/src/utils/ng-utils/standalone/rules.js +195 -0
- package/schematics/src/utils/ng-utils/standalone/rules.js.map +1 -0
- package/schematics/src/utils/ng-utils/standalone/util.d.ts +28 -0
- package/schematics/src/utils/ng-utils/standalone/util.js +138 -0
- package/schematics/src/utils/ng-utils/standalone/util.js.map +1 -0
- package/schematics/src/utils/normalize-options.d.ts +11 -0
- package/schematics/src/utils/normalize-options.js +27 -0
- package/schematics/src/utils/normalize-options.js.map +1 -0
- package/schematics/src/utils/project.d.ts +19 -0
- package/schematics/src/utils/project.js +46 -0
- package/schematics/src/utils/project.js.map +1 -0
- package/schematics/src/utils/versions.json +3 -0
- package/src/actions/symbols.d.ts +3 -17
- package/src/actions-stream.d.ts +2 -2
- package/src/configs/messages.config.d.ts +3 -1
- package/src/decorators/action.d.ts +28 -3
- package/src/decorators/select/select.d.ts +3 -0
- package/src/decorators/select/symbols.d.ts +2 -3
- package/src/decorators/selector/selector.d.ts +2 -3
- package/src/decorators/selector/symbols.d.ts +73 -4
- package/src/decorators/selector-options.d.ts +2 -2
- package/src/decorators/state.d.ts +2 -3
- package/src/dev-features/ngxs-development.module.d.ts +1 -0
- package/src/execution/symbols.d.ts +8 -2
- package/src/internal/dispatcher.d.ts +5 -5
- package/src/internal/fallback-subscriber.d.ts +3 -0
- package/src/internal/internals.d.ts +13 -69
- package/src/internal/lifecycle-state-manager.d.ts +6 -6
- package/src/internal/state-factory.d.ts +8 -6
- package/src/internal/state-operations.d.ts +2 -2
- package/src/internal/unhandled-rxjs-error-callback.d.ts +2 -0
- package/src/module.d.ts +3 -14
- package/src/modules/ngxs-feature.module.d.ts +2 -9
- package/src/modules/ngxs-root.module.d.ts +2 -9
- package/src/ngxs-unhandled-error-handler.d.ts +16 -0
- package/src/operators/of-action.d.ts +3 -3
- package/src/plugin-manager.d.ts +1 -1
- package/src/plugin_api.d.ts +1 -5
- package/src/private_api.d.ts +1 -0
- package/src/public_api.d.ts +11 -8
- package/src/selectors/create-model-selector.d.ts +2 -2
- package/src/selectors/create-pick-selector.d.ts +1 -1
- package/src/selectors/create-property-selectors.d.ts +3 -3
- package/src/selectors/create-selector.d.ts +10 -10
- package/src/selectors/private_api.d.ts +7 -0
- package/src/selectors/selector-checks.util.d.ts +2 -2
- package/src/selectors/selector-metadata.d.ts +4 -4
- package/src/selectors/selector-models.d.ts +4 -4
- package/src/selectors/selector-types.util.d.ts +6 -7
- package/src/selectors/selector-utils.d.ts +3 -3
- package/src/standalone-features/feature-providers.d.ts +7 -0
- package/src/standalone-features/index.d.ts +4 -0
- package/src/standalone-features/initializers.d.ts +29 -0
- package/src/standalone-features/plugin.d.ts +17 -0
- package/src/standalone-features/preboot.d.ts +26 -0
- package/src/standalone-features/provide-states.d.ts +18 -0
- package/src/standalone-features/provide-store.d.ts +22 -0
- package/src/standalone-features/root-providers.d.ts +8 -0
- package/src/store.d.ts +13 -15
- package/src/symbols.d.ts +12 -54
- package/src/utils/compose.d.ts +1 -1
- package/src/utils/create-dispatch-map.d.ts +4 -0
- package/src/utils/create-select-map.d.ts +4 -0
- package/src/utils/dispatch.d.ts +2 -0
- package/src/utils/public_api.d.ts +4 -0
- package/src/utils/select.d.ts +16 -0
- package/src/utils/store-validators.d.ts +4 -3
- package/bundles/ngxs-store-internals-testing.umd.js +0 -684
- package/bundles/ngxs-store-internals-testing.umd.js.map +0 -1
- package/bundles/ngxs-store-internals.umd.js +0 -141
- package/bundles/ngxs-store-internals.umd.js.map +0 -1
- package/bundles/ngxs-store-operators.umd.js +0 -224
- package/bundles/ngxs-store-operators.umd.js.map +0 -1
- package/bundles/ngxs-store.umd.js +0 -3076
- package/bundles/ngxs-store.umd.js.map +0 -1
- package/esm2015/internals/index.js +0 -5
- package/esm2015/internals/initial-state.js +0 -17
- package/esm2015/internals/internal-tokens.js +0 -5
- package/esm2015/internals/memoize.js +0 -45
- package/esm2015/internals/ngxs-bootstrapper.js +0 -29
- package/esm2015/internals/src/symbols.js +0 -2
- package/esm2015/internals/symbols.js +0 -2
- package/esm2015/internals/testing/fresh-platform.js +0 -70
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +0 -21
- package/esm2015/internals/testing/ngxs.setup.js +0 -46
- package/esm2015/internals/testing/symbol.js +0 -2
- package/esm2015/operators/append.js +0 -20
- package/esm2015/operators/iif.js +0 -38
- package/esm2015/operators/insert-item.js +0 -29
- package/esm2015/operators/patch.js +0 -21
- package/esm2015/operators/remove-item.js +0 -22
- package/esm2015/operators/update-item.js +0 -40
- package/esm2015/src/actions/actions.js +0 -16
- package/esm2015/src/actions/symbols.js +0 -2
- package/esm2015/src/actions-stream.js +0 -52
- package/esm2015/src/configs/messages.config.js +0 -36
- package/esm2015/src/decorators/action.js +0 -33
- package/esm2015/src/decorators/select/select-factory.js +0 -29
- package/esm2015/src/decorators/select/select.js +0 -26
- package/esm2015/src/decorators/select/symbols.js +0 -29
- package/esm2015/src/decorators/selector/selector.js +0 -32
- package/esm2015/src/decorators/selector/symbols.js +0 -2
- package/esm2015/src/decorators/selector-options.js +0 -21
- package/esm2015/src/decorators/state.js +0 -36
- package/esm2015/src/dev-features/ngxs-development.module.js +0 -22
- package/esm2015/src/dev-features/ngxs-unhandled-actions-logger.js +0 -46
- package/esm2015/src/dev-features/symbols.js +0 -6
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +0 -57
- package/esm2015/src/execution/symbols.js +0 -23
- package/esm2015/src/internal/custom-rxjs-subjects.js +0 -92
- package/esm2015/src/internal/dispatcher.js +0 -104
- package/esm2015/src/internal/error-handler.js +0 -64
- package/esm2015/src/internal/internals.js +0 -248
- package/esm2015/src/internal/lifecycle-state-manager.js +0 -79
- package/esm2015/src/internal/state-context-factory.js +0 -68
- package/esm2015/src/internal/state-factory.js +0 -288
- package/esm2015/src/internal/state-operations.js +0 -63
- package/esm2015/src/internal/state-operators.js +0 -20
- package/esm2015/src/internal/state-stream.js +0 -25
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +0 -25
- package/esm2015/src/module.js +0 -88
- package/esm2015/src/modules/ngxs-feature.module.js +0 -45
- package/esm2015/src/modules/ngxs-root.module.js +0 -41
- package/esm2015/src/operators/of-action.js +0 -102
- package/esm2015/src/plugin-manager.js +0 -37
- package/esm2015/src/plugin_api.js +0 -6
- package/esm2015/src/public_api.js +0 -27
- package/esm2015/src/public_to_deprecate.js +0 -14
- package/esm2015/src/selectors/create-model-selector.js +0 -30
- package/esm2015/src/selectors/create-pick-selector.js +0 -16
- package/esm2015/src/selectors/create-property-selectors.js +0 -20
- package/esm2015/src/selectors/create-selector.js +0 -9
- package/esm2015/src/selectors/selector-checks.util.js +0 -18
- package/esm2015/src/selectors/selector-metadata.js +0 -30
- package/esm2015/src/selectors/selector-models.js +0 -2
- package/esm2015/src/selectors/selector-types.util.js +0 -2
- package/esm2015/src/selectors/selector-utils.js +0 -74
- package/esm2015/src/state-token/state-token.js +0 -17
- package/esm2015/src/state-token/symbols.js +0 -2
- package/esm2015/src/store.js +0 -107
- package/esm2015/src/symbols.js +0 -58
- package/esm2015/src/utils/compose.js +0 -26
- package/esm2015/src/utils/store-validators.js +0 -25
- package/esm2015/src/utils/utils.js +0 -92
- package/fesm2015/ngxs-store-internals-testing.js.map +0 -1
- package/fesm2015/ngxs-store-internals.js +0 -101
- package/fesm2015/ngxs-store-internals.js.map +0 -1
- package/fesm2015/ngxs-store-operators.js.map +0 -1
- package/fesm2015/ngxs-store.js.map +0 -1
- package/internals/ngxs-bootstrapper.d.ts +0 -16
- package/internals/ngxs-store-internals.d.ts +0 -5
- package/internals/package.json +0 -10
- package/internals/src/symbols.d.ts +0 -7
- package/internals/testing/ngxs-store-internals-testing.d.ts +0 -5
- package/internals/testing/package.json +0 -10
- package/ngxs-store.d.ts +0 -5
- package/operators/ngxs-store-operators.d.ts +0 -5
- package/operators/package.json +0 -10
- package/src/internal/error-handler.d.ts +0 -26
- package/src/internal/state-stream.d.ts +0 -14
- package/src/public_to_deprecate.d.ts +0 -21
- package/src/state-token/state-token.d.ts +0 -7
- package/src/state-token/symbols.d.ts +0 -5
- /package/{esm2015/internals/ngxs-store-internals.js → esm2022/internals/ngxs-store-internals.mjs} +0 -0
- /package/{esm2015/internals/testing/ngxs-store-internals-testing.js → esm2022/internals/testing/ngxs-store-internals-testing.mjs} +0 -0
- /package/{esm2015/ngxs-store.js → esm2022/ngxs-store.mjs} +0 -0
- /package/{esm2015/operators/compose.js → esm2022/operators/compose.mjs} +0 -0
- /package/{esm2015/operators/index.js → esm2022/operators/index.mjs} +0 -0
- /package/{esm2015/operators/ngxs-store-operators.js → esm2022/operators/ngxs-store-operators.mjs} +0 -0
- /package/{esm2015/operators/types.js → esm2022/operators/types.mjs} +0 -0
- /package/{esm2015/operators/utils.js → esm2022/operators/utils.mjs} +0 -0
- /package/{esm2015/src/operators/leave-ngxs.js → esm2022/src/operators/leave-ngxs.mjs} +0 -0
- /package/{esm2015/src/selectors/index.js → esm2022/src/selectors/index.mjs} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.findProvidersLiteral = exports.isMergeAppConfigCall = exports.applyChangesToFile = exports.findBootstrapApplicationCall = exports.getSourceFile = exports.getMainFilePath = void 0;
|
|
13
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
14
|
+
const ts = require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript");
|
|
15
|
+
const project_targets_1 = require("@schematics/angular/utility/project-targets");
|
|
16
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
17
|
+
const change_1 = require("@schematics/angular/utility/change");
|
|
18
|
+
/**
|
|
19
|
+
* Finds the main file of a project.
|
|
20
|
+
* @param tree File tree for the project.
|
|
21
|
+
* @param projectName Name of the project in which to search.
|
|
22
|
+
*/
|
|
23
|
+
function getMainFilePath(tree, projectName) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const workspace = yield (0, workspace_1.getWorkspace)(tree);
|
|
26
|
+
const project = workspace.projects.get(projectName);
|
|
27
|
+
const buildTarget = project === null || project === void 0 ? void 0 : project.targets.get('build');
|
|
28
|
+
if (!buildTarget) {
|
|
29
|
+
throw (0, project_targets_1.targetBuildNotFoundError)();
|
|
30
|
+
}
|
|
31
|
+
const options = buildTarget.options;
|
|
32
|
+
return buildTarget.builder === '@angular-devkit/build-angular:application'
|
|
33
|
+
? options.browser
|
|
34
|
+
: options.main;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.getMainFilePath = getMainFilePath;
|
|
38
|
+
/**
|
|
39
|
+
* Gets a TypeScript source file at a specific path.
|
|
40
|
+
* @param tree File tree of a project.
|
|
41
|
+
* @param path Path to the file.
|
|
42
|
+
*/
|
|
43
|
+
function getSourceFile(tree, path) {
|
|
44
|
+
const content = tree.readText(path);
|
|
45
|
+
const source = ts.createSourceFile(path, content, ts.ScriptTarget.Latest, true);
|
|
46
|
+
return source;
|
|
47
|
+
}
|
|
48
|
+
exports.getSourceFile = getSourceFile;
|
|
49
|
+
/** Finds the call to `bootstrapApplication` within a file. */
|
|
50
|
+
function findBootstrapApplicationCall(tree, mainFilePath) {
|
|
51
|
+
const sourceFile = getSourceFile(tree, mainFilePath);
|
|
52
|
+
const localName = findImportLocalName(sourceFile, 'bootstrapApplication', '@angular/platform-browser');
|
|
53
|
+
if (localName) {
|
|
54
|
+
let result = null;
|
|
55
|
+
sourceFile.forEachChild(function walk(node) {
|
|
56
|
+
if (ts.isCallExpression(node) &&
|
|
57
|
+
ts.isIdentifier(node.expression) &&
|
|
58
|
+
node.expression.text === localName) {
|
|
59
|
+
result = node;
|
|
60
|
+
}
|
|
61
|
+
if (!result) {
|
|
62
|
+
node.forEachChild(walk);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
if (result) {
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
throw new schematics_1.SchematicsException(`Could not find bootstrapApplication call in ${mainFilePath}`);
|
|
70
|
+
}
|
|
71
|
+
exports.findBootstrapApplicationCall = findBootstrapApplicationCall;
|
|
72
|
+
/**
|
|
73
|
+
* Finds the local name of an imported symbol. Could be the symbol name itself or its alias.
|
|
74
|
+
* @param sourceFile File within which to search for the import.
|
|
75
|
+
* @param name Actual name of the import, not its local alias.
|
|
76
|
+
* @param moduleName Name of the module from which the symbol is imported.
|
|
77
|
+
*/
|
|
78
|
+
function findImportLocalName(sourceFile, name, moduleName) {
|
|
79
|
+
for (const node of sourceFile.statements) {
|
|
80
|
+
// Only look for top-level imports.
|
|
81
|
+
if (!ts.isImportDeclaration(node) ||
|
|
82
|
+
!ts.isStringLiteral(node.moduleSpecifier) ||
|
|
83
|
+
node.moduleSpecifier.text !== moduleName) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
// Filter out imports that don't have the right shape.
|
|
87
|
+
if (!node.importClause ||
|
|
88
|
+
!node.importClause.namedBindings ||
|
|
89
|
+
!ts.isNamedImports(node.importClause.namedBindings)) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
// Look through the elements of the declaration for the specific import.
|
|
93
|
+
for (const element of node.importClause.namedBindings.elements) {
|
|
94
|
+
if ((element.propertyName || element.name).text === name) {
|
|
95
|
+
// The local name is always in `name`.
|
|
96
|
+
return element.name.text;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Applies a set of changes to a file.
|
|
104
|
+
* @param tree File tree of the project.
|
|
105
|
+
* @param path Path to the file that is being changed.
|
|
106
|
+
* @param changes Changes that should be applied to the file.
|
|
107
|
+
*/
|
|
108
|
+
function applyChangesToFile(tree, path, changes) {
|
|
109
|
+
if (changes.length > 0) {
|
|
110
|
+
const recorder = tree.beginUpdate(path);
|
|
111
|
+
(0, change_1.applyToUpdateRecorder)(recorder, changes);
|
|
112
|
+
tree.commitUpdate(recorder);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.applyChangesToFile = applyChangesToFile;
|
|
116
|
+
/** Checks whether a node is a call to `mergeApplicationConfig`. */
|
|
117
|
+
function isMergeAppConfigCall(node) {
|
|
118
|
+
if (!ts.isCallExpression(node)) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
const localName = findImportLocalName(node.getSourceFile(), 'mergeApplicationConfig', '@angular/core');
|
|
122
|
+
return !!localName && ts.isIdentifier(node.expression) && node.expression.text === localName;
|
|
123
|
+
}
|
|
124
|
+
exports.isMergeAppConfigCall = isMergeAppConfigCall;
|
|
125
|
+
/** Finds the `providers` array literal within an application config. */
|
|
126
|
+
function findProvidersLiteral(config) {
|
|
127
|
+
for (const prop of config.properties) {
|
|
128
|
+
if (ts.isPropertyAssignment(prop) &&
|
|
129
|
+
ts.isIdentifier(prop.name) &&
|
|
130
|
+
prop.name.text === 'providers' &&
|
|
131
|
+
ts.isArrayLiteralExpression(prop.initializer)) {
|
|
132
|
+
return prop.initializer;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
exports.findProvidersLiteral = findProvidersLiteral;
|
|
138
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../../../packages/store/schematics/src/utils/ng-utils/standalone/util.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
2
|
+
interface BaseOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
project?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function normalizeBaseOptions<T extends BaseOptions>(host: Tree, options: T): T & Required<BaseOptions>;
|
|
8
|
+
export declare function normalizePath(path: string | undefined): string;
|
|
9
|
+
/** Returns `value` if it's "true" | "false" and default value otherwise */
|
|
10
|
+
export declare function normalizeOptionalBoolean(value: boolean | undefined, defaultValue: boolean): boolean;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeOptionalBoolean = exports.normalizePath = exports.normalizeBaseOptions = void 0;
|
|
4
|
+
const core_1 = require("@angular-devkit/core");
|
|
5
|
+
const project_1 = require("./project");
|
|
6
|
+
function normalizeBaseOptions(host, options) {
|
|
7
|
+
const name = core_1.strings.dasherize(options.name);
|
|
8
|
+
const data = (0, project_1.getProjectData)(host, options);
|
|
9
|
+
if (!data) {
|
|
10
|
+
throw new Error('Could not resolve project path and name');
|
|
11
|
+
}
|
|
12
|
+
return Object.assign(Object.assign({}, options), { name, path: data.path, project: data.project });
|
|
13
|
+
}
|
|
14
|
+
exports.normalizeBaseOptions = normalizeBaseOptions;
|
|
15
|
+
function normalizePath(path) {
|
|
16
|
+
return path !== undefined ? (0, core_1.normalize)(path) : '';
|
|
17
|
+
}
|
|
18
|
+
exports.normalizePath = normalizePath;
|
|
19
|
+
/** Returns `value` if it's "true" | "false" and default value otherwise */
|
|
20
|
+
function normalizeOptionalBoolean(value, defaultValue) {
|
|
21
|
+
if (value === true || value === false) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
return defaultValue;
|
|
25
|
+
}
|
|
26
|
+
exports.normalizeOptionalBoolean = normalizeOptionalBoolean;
|
|
27
|
+
//# sourceMappingURL=normalize-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/normalize-options.ts"],"names":[],"mappings":";;;AAAA,+CAA0D;AAC1D,uCAA2C;AAS3C,SAAgB,oBAAoB,CAClC,IAAU,EACV,OAAU;IAEV,MAAM,IAAI,GAAW,cAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,IAAA,wBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,uCACK,OAAO,KACV,IAAI,EACJ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,IACrB;AACJ,CAAC;AAjBD,oDAiBC;AAED,SAAgB,aAAa,CAAC,IAAwB;IACpD,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnD,CAAC;AAFD,sCAEC;AAED,2EAA2E;AAC3E,SAAgB,wBAAwB,CACtC,KAA0B,EAC1B,YAAqB;IAErB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AARD,4DAQC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TargetDefinition } from '@schematics/angular/utility/workspace';
|
|
2
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
3
|
+
export interface WorkspaceProject {
|
|
4
|
+
name: string;
|
|
5
|
+
root: string;
|
|
6
|
+
projectType: string;
|
|
7
|
+
architect: {
|
|
8
|
+
[key: string]: TargetDefinition;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function getProject(host: Tree, project?: string): WorkspaceProject | null;
|
|
12
|
+
export declare function getProjectData(host: Tree, options: {
|
|
13
|
+
project?: string | undefined;
|
|
14
|
+
path?: string | undefined;
|
|
15
|
+
}): {
|
|
16
|
+
project: string;
|
|
17
|
+
path: string;
|
|
18
|
+
} | null;
|
|
19
|
+
export declare function isLib(host: Tree, project?: string): boolean;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isLib = exports.getProjectData = exports.getProject = void 0;
|
|
4
|
+
const config_1 = require("./config");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
function getProject(host, project) {
|
|
7
|
+
const workspace = (0, config_1.getWorkspace)(host);
|
|
8
|
+
if (!project) {
|
|
9
|
+
const defaultProject = workspace.defaultProject;
|
|
10
|
+
if (!defaultProject) {
|
|
11
|
+
const projectNames = Object.keys(workspace.projects);
|
|
12
|
+
if (projectNames.length === 1) {
|
|
13
|
+
project = projectNames[0];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const resolvedProject = project && workspace.projects[project];
|
|
18
|
+
if (resolvedProject) {
|
|
19
|
+
resolvedProject.name = project;
|
|
20
|
+
return resolvedProject;
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
exports.getProject = getProject;
|
|
25
|
+
function getProjectData(host, options) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const project = getProject(host, options.project);
|
|
28
|
+
if (!project) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
if (project.root.slice(-1) === '/') {
|
|
32
|
+
project.root = project.root.substring(0, project.root.length - 1);
|
|
33
|
+
}
|
|
34
|
+
const projectDirName = project.projectType === 'application' ? 'app' : 'lib';
|
|
35
|
+
return {
|
|
36
|
+
project: project.name,
|
|
37
|
+
path: (0, path_1.join)((_a = project.root) !== null && _a !== void 0 ? _a : '', 'src', projectDirName, (_b = options.path) !== null && _b !== void 0 ? _b : '')
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.getProjectData = getProjectData;
|
|
41
|
+
function isLib(host, project) {
|
|
42
|
+
const resolvedProject = getProject(host, project);
|
|
43
|
+
return (resolvedProject === null || resolvedProject === void 0 ? void 0 : resolvedProject.projectType) === 'library';
|
|
44
|
+
}
|
|
45
|
+
exports.isLib = isLib;
|
|
46
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/project.ts"],"names":[],"mappings":";;;AACA,qCAAwC;AAExC,+BAA4B;AAW5B,SAAgB,UAAU,CAAC,IAAU,EAAE,OAAgB;IACrD,MAAM,SAAS,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,CAAC;IAErC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,cAAc,GAAI,SAAyC,CAAC,cAAc,CAAC;QACjF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YACrD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,eAAe,GAAG,OAAO,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,eAAe,EAAE,CAAC;QACpB,eAAe,CAAC,IAAI,GAAG,OAAO,CAAC;QAE/B,OAAO,eAAe,CAAC;IACzB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AApBD,gCAoBC;AAED,SAAgB,cAAc,CAC5B,IAAU,EACV,OAAoE;;IAEpE,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;QACnC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;IAE7E,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,IAAA,WAAI,EAAC,MAAA,OAAO,CAAC,IAAI,mCAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,EAAE,CAAC;KAC1E,CAAC;AACJ,CAAC;AApBD,wCAoBC;AAED,SAAgB,KAAK,CAAC,IAAU,EAAE,OAAgB;IAChD,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAElD,OAAO,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,MAAK,SAAS,CAAC;AACpD,CAAC;AAJD,sBAIC"}
|
package/src/actions/symbols.d.ts
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
export interface ActionDef<
|
|
1
|
+
export interface ActionDef<TArgs extends any[] = any[], TReturn = any> {
|
|
2
2
|
type: string;
|
|
3
|
-
new (...args:
|
|
3
|
+
new (...args: TArgs): TReturn;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type ActionType = ActionDef | {
|
|
6
6
|
type: string;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
9
|
-
* Actions that can be provided in a action decorator.
|
|
10
|
-
*/
|
|
11
|
-
export interface ActionOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Cancel the previous uncompleted observable(s).
|
|
14
|
-
*/
|
|
15
|
-
cancelUncompleted?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface ActionHandlerMetaData {
|
|
18
|
-
fn: string | symbol;
|
|
19
|
-
options: ActionOptions;
|
|
20
|
-
type: string;
|
|
21
|
-
}
|
package/src/actions-stream.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ɵOrderedSubject } from '@ngxs/store/internals';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { InternalNgxsExecutionStrategy } from './execution/internal-ngxs-execution-strategy';
|
|
4
|
-
import { OrderedSubject } from './internal/custom-rxjs-subjects';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Status of a dispatched action
|
|
@@ -20,7 +20,7 @@ export interface ActionContext<T = any> {
|
|
|
20
20
|
/**
|
|
21
21
|
* Internal Action stream that is emitted anytime an action is dispatched.
|
|
22
22
|
*/
|
|
23
|
-
export declare class InternalActions extends
|
|
23
|
+
export declare class InternalActions extends ɵOrderedSubject<ActionContext> implements OnDestroy {
|
|
24
24
|
ngOnDestroy(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<InternalActions, never>;
|
|
26
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<InternalActions>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ɵPlainObject } from '@ngxs/store/internals';
|
|
1
2
|
export declare function throwStateNameError(name: string): never;
|
|
2
3
|
export declare function throwStateNamePropertyError(): never;
|
|
3
4
|
export declare function throwStateUniqueError(current: string, newName: string, oldName: string): never;
|
|
@@ -5,7 +6,8 @@ export declare function throwStateDecoratorError(name: string): never;
|
|
|
5
6
|
export declare function throwActionDecoratorError(): never;
|
|
6
7
|
export declare function throwSelectorDecoratorError(): never;
|
|
7
8
|
export declare function getZoneWarningMessage(): string;
|
|
8
|
-
export declare function
|
|
9
|
+
export declare function getUndecoratedStateWithInjectableWarningMessage(name: string): string;
|
|
10
|
+
export declare function getInvalidInitializationOrderMessage(addedStates?: ɵPlainObject): string;
|
|
9
11
|
export declare function throwSelectFactoryNotConnectedError(): never;
|
|
10
12
|
export declare function throwPatchingArrayError(): never;
|
|
11
13
|
export declare function throwPatchingPrimitiveError(): never;
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ɵActionOptions } from '@ngxs/store/internals';
|
|
2
|
+
import { ActionDef, ActionType } from '../actions/symbols';
|
|
3
|
+
import { StateContext } from '../symbols';
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
5
|
+
* Given an action class, returns its payload.
|
|
4
6
|
*/
|
|
5
|
-
|
|
7
|
+
type ActionToPayload<Action extends ActionType> = Action extends ActionDef<any, infer ActionPayload> ? ActionPayload : never;
|
|
8
|
+
/**
|
|
9
|
+
* Given a list of action classes, returns the union of their payloads.
|
|
10
|
+
*/
|
|
11
|
+
type ActionsToPayload<Actions extends readonly ActionType[]> = {
|
|
12
|
+
[K in keyof Actions]: ActionToPayload<Actions[K]>;
|
|
13
|
+
}[number];
|
|
14
|
+
/**
|
|
15
|
+
* Given an action class or a list of action classes, returns the union of their payloads.
|
|
16
|
+
*/
|
|
17
|
+
type ActionOrActionsToPayload<ActionOrActions> = ActionOrActions extends ActionType ? ActionToPayload<ActionOrActions> : ActionOrActions extends ActionType[] ? ActionsToPayload<ActionOrActions> : never;
|
|
18
|
+
/**
|
|
19
|
+
* Describes what methods can be decorated with an `@Action` decorator that has been passed the given action(s).
|
|
20
|
+
*/
|
|
21
|
+
type HandlerTypedPropertyDescriptor<ActionOrActions> = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(stateContext: StateContext<any>) => any> | TypedPropertyDescriptor<(stateContext: StateContext<any>, action: ActionOrActionsToPayload<ActionOrActions>) => any>;
|
|
22
|
+
/**
|
|
23
|
+
* The result of a call to the `@Action()` decorator with the given action(s) as its first argument.
|
|
24
|
+
*/
|
|
25
|
+
type ActionDecorator<ActionOrActions extends ActionType | ActionType[]> = (target: any, name: string | symbol, _descriptor: HandlerTypedPropertyDescriptor<ActionOrActions>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Decorates a method with action information.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Action<ActionOrActions extends ActionType | ActionType[]>(actions: ActionOrActions, options?: ɵActionOptions): ActionDecorator<ActionOrActions>;
|
|
30
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Decorator for selecting a slice of state from the store.
|
|
3
|
+
*
|
|
4
|
+
* @deprecated
|
|
5
|
+
* Read the deprecation notice at this link: https://ngxs.io/deprecations/select-decorator-deprecation.
|
|
3
6
|
*/
|
|
4
7
|
export declare function Select<T>(rawSelector?: T, ...paths: string[]): PropertyDecorator;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { StateToken } from '
|
|
3
|
-
import { ExtractTokenType } from '../../state-token/symbols';
|
|
2
|
+
import { ɵExtractTokenType, StateToken } from '@ngxs/store/internals';
|
|
4
3
|
export declare function createSelectObservable<T = any>(selector: any): Observable<T>;
|
|
5
4
|
export declare function createSelectorFn(name: string, rawSelector?: any, paths?: string[]): any;
|
|
6
5
|
/**
|
|
7
6
|
* @example If `foo$` => make it just `foo`
|
|
8
7
|
*/
|
|
9
8
|
export declare function removeDollarAtTheEnd(name: string): string;
|
|
10
|
-
export
|
|
9
|
+
export type PropertyType<T> = T extends StateToken<any> ? Observable<ɵExtractTokenType<T>> : T extends (...args: any[]) => any ? Observable<ReturnType<T>> : any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SelectorType } from './symbols';
|
|
1
|
+
import { SelectorDefTuple, SelectorType } from './symbols';
|
|
3
2
|
/**
|
|
4
3
|
* Decorator for creating a state selector for the current state.
|
|
5
4
|
*/
|
|
@@ -7,4 +6,4 @@ export declare function Selector(): SelectorType<unknown>;
|
|
|
7
6
|
/**
|
|
8
7
|
* Decorator for creating a state selector from the provided selectors (and optionally the container State, depending on the applicable Selector Options).
|
|
9
8
|
*/
|
|
10
|
-
export declare function Selector<T extends
|
|
9
|
+
export declare function Selector<T extends SelectorDefTuple>(selectors: T): SelectorType<T>;
|
|
@@ -1,4 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ɵSelectorDef, ɵSelectorReturnType } from '../../selectors';
|
|
2
|
+
/**
|
|
3
|
+
* Defines a tuple of selector functions, state tokens, and state classes that a selector decorated
|
|
4
|
+
* by `@Selector()` can depend on.
|
|
5
|
+
*/
|
|
6
|
+
export type SelectorDefTuple = ɵSelectorDef<any>[] | [ɵSelectorDef<any>];
|
|
7
|
+
type UnknownToAny<T> = unknown extends T ? any : T;
|
|
8
|
+
type EnsureArray<T> = T extends any[] ? T : never;
|
|
9
|
+
/**
|
|
10
|
+
* Given a tuple of selector functions, state tokens, state classes, etc., returns a tuple of what
|
|
11
|
+
* a dependent selector would expect to receive for that parent as an argument when called.
|
|
12
|
+
*
|
|
13
|
+
* For example, if the first element in `ParentsTuple` is a selector function that returns a
|
|
14
|
+
* `number`, then the first element of the result tuple will be `number`. If the second element
|
|
15
|
+
* in `ParentsTuple` is a state class with model `{ name: string }`, then the second element of
|
|
16
|
+
* the result tuple will be `{ name: string }`.
|
|
17
|
+
*/
|
|
18
|
+
type SelectorReturnTypeList<ParentsTuple extends SelectorDefTuple> = EnsureArray<{
|
|
19
|
+
[ParentsTupleIndex in keyof ParentsTuple]: ParentsTuple[ParentsTupleIndex] extends ɵSelectorDef<any> ? UnknownToAny<ɵSelectorReturnType<ParentsTuple[ParentsTupleIndex]>> : never;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Defines a selector function matching a given argument list of parent selectors/states/tokens
|
|
23
|
+
* and a given return type.
|
|
24
|
+
*/
|
|
25
|
+
export type SelectorSpec<ParentsTuple, Return> = ParentsTuple extends [] ? () => any : ParentsTuple extends SelectorDefTuple ? (...states: SelectorReturnTypeList<ParentsTuple>) => Return : () => any;
|
|
26
|
+
/**
|
|
27
|
+
* Defines a selector function matching `SelectorSpec<ParentsTuple, Return>` but with the assumption that the
|
|
28
|
+
* container state has been injected as the first argument.
|
|
29
|
+
*/
|
|
30
|
+
type SelectorSpecWithInjectedState<ParentsTuple, Return> = SelectorSpec<ParentsTuple extends SelectorDefTuple ? [any, ...ParentsTuple] : [any], ParentsTuple extends SelectorDefTuple ? Return : any>;
|
|
31
|
+
/**
|
|
32
|
+
* Defines a property descriptor for the `@Selector` decorator that decorates a function with
|
|
33
|
+
* parent selectors/states/tokens `ParentsTuple` and return type `Return`.
|
|
34
|
+
*/
|
|
35
|
+
type DescriptorWithNoInjectedState<ParentsTuple, Return> = TypedPropertyDescriptor<SelectorSpec<ParentsTuple, Return>>;
|
|
36
|
+
/**
|
|
37
|
+
* Same as `DescriptorWithNoInjectedState` but with state injected as the first argument.
|
|
38
|
+
*/
|
|
39
|
+
type DescriptorWithInjectedState<ParentsTuple, Return> = TypedPropertyDescriptor<SelectorSpecWithInjectedState<ParentsTuple, Return>>;
|
|
40
|
+
type DecoratorArgs<Descriptor> = [target: any, key: string | symbol, descriptor?: Descriptor];
|
|
41
|
+
/**
|
|
42
|
+
* Defines the return type of a call to `@Selector` when there is no argument given
|
|
43
|
+
* (e.g. `@Selector()` counts, but `@Selector([])` does not)
|
|
44
|
+
*
|
|
45
|
+
* This result is a decorator that can only be used to decorate a function with no arguments or a
|
|
46
|
+
* single argument that is the container state.
|
|
47
|
+
*/
|
|
48
|
+
type SelectorTypeNoDecoratorArgs = {
|
|
49
|
+
<Return>(...args: DecoratorArgs<DescriptorWithNoInjectedState<unknown, Return>>): void | DescriptorWithNoInjectedState<unknown, Return>;
|
|
50
|
+
<Return>(...args: DecoratorArgs<DescriptorWithInjectedState<unknown, Return>>): void | DescriptorWithInjectedState<unknown, Return>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Defines the return type of a call to `@Selector` when there is an argument given.
|
|
54
|
+
* (e.g. `@Selector([])` counts, but `@Selector()` does not)
|
|
55
|
+
*
|
|
56
|
+
* This result is a decorator that can only be used to decorate a function with an argument list
|
|
57
|
+
* matching the results of the tuple of parents `ParentsTuple`.
|
|
58
|
+
*/
|
|
59
|
+
type SelectorTypeWithDecoratorArgs<ParentsTuple> = {
|
|
60
|
+
<Return>(...args: DecoratorArgs<DescriptorWithNoInjectedState<ParentsTuple, Return>>): void | DescriptorWithNoInjectedState<ParentsTuple, Return>;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
* Read the deprecation notice at this link: https://ngxs.io/deprecations/inject-container-state-deprecation.md.
|
|
64
|
+
*/
|
|
65
|
+
<Return>(...args: DecoratorArgs<DescriptorWithInjectedState<ParentsTuple, Return>>): void | DescriptorWithInjectedState<ParentsTuple, Return>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Defines the return type of a call to `@Selector`. This result is a decorator that can only be
|
|
69
|
+
* used to decorate a function with an argument list matching `ParentsTuple`, the results of the
|
|
70
|
+
* tuple of parent selectors/state tokens/state classes.
|
|
71
|
+
*/
|
|
72
|
+
export type SelectorType<ParentsTuple> = unknown extends ParentsTuple ? SelectorTypeNoDecoratorArgs : SelectorTypeWithDecoratorArgs<ParentsTuple>;
|
|
73
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ɵSharedSelectorOptions } from '@ngxs/store/internals';
|
|
2
2
|
/**
|
|
3
3
|
* Decorator for setting selector options at a method or class level.
|
|
4
4
|
*/
|
|
5
|
-
export declare function SelectorOptions(options:
|
|
5
|
+
export declare function SelectorOptions(options: ɵSharedSelectorOptions): ClassDecorator & MethodDecorator;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StoreOptions } from '../symbols';
|
|
1
|
+
import { ɵStateClass, ɵStoreOptions } from '@ngxs/store/internals';
|
|
3
2
|
/**
|
|
4
3
|
* Decorates a class with ngxs state information.
|
|
5
4
|
*/
|
|
6
|
-
export declare function State<T>(options:
|
|
5
|
+
export declare function State<T>(options: ɵStoreOptions<T>): (target: ɵStateClass) => void;
|
|
@@ -7,3 +7,4 @@ export declare class NgxsDevelopmentModule {
|
|
|
7
7
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsDevelopmentModule, never, never, never>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsDevelopmentModule>;
|
|
9
9
|
}
|
|
10
|
+
export declare function withNgxsDevelopmentOptions(options: NgxsDevelopmentOptions): import("@angular/core").EnvironmentProviders;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { InjectionToken, Type } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Consumers have the option to utilize the execution strategy provided by
|
|
4
|
+
* `NgxsModule.forRoot({executionStrategy})` or `provideStore([], {executionStrategy})`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CUSTOM_NGXS_EXECUTION_STRATEGY: InjectionToken<Type<NgxsExecutionStrategy> | undefined>;
|
|
7
|
+
/**
|
|
8
|
+
* The injection token is used internally to resolve an instance of the execution
|
|
9
|
+
* strategy. It checks whether consumers have provided their own `executionStrategy`
|
|
10
|
+
* and also verifies if we are operating in a zone-aware environment.
|
|
4
11
|
*/
|
|
5
|
-
export declare const USER_PROVIDED_NGXS_EXECUTION_STRATEGY: InjectionToken<Type<NgxsExecutionStrategy> | undefined>;
|
|
6
12
|
export declare const NGXS_EXECUTION_STRATEGY: InjectionToken<NgxsExecutionStrategy>;
|
|
7
13
|
export interface NgxsExecutionStrategy {
|
|
8
14
|
enter<T>(func: () => T): T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
1
2
|
import { Observable, Subject } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
+
import { ɵStateStream } from '@ngxs/store/internals';
|
|
3
4
|
import { ActionContext, InternalActions } from '../actions-stream';
|
|
4
|
-
import { StateStream } from './state-stream';
|
|
5
5
|
import { PluginManager } from '../plugin-manager';
|
|
6
6
|
import { InternalNgxsExecutionStrategy } from '../execution/internal-ngxs-execution-strategy';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -16,17 +16,17 @@ export declare class InternalDispatchedActionResults extends Subject<ActionConte
|
|
|
16
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<InternalDispatchedActionResults>;
|
|
17
17
|
}
|
|
18
18
|
export declare class InternalDispatcher {
|
|
19
|
+
private _ngZone;
|
|
19
20
|
private _actions;
|
|
20
21
|
private _actionResults;
|
|
21
22
|
private _pluginManager;
|
|
22
23
|
private _stateStream;
|
|
23
24
|
private _ngxsExecutionStrategy;
|
|
24
|
-
|
|
25
|
-
constructor(_actions: InternalActions, _actionResults: InternalDispatchedActionResults, _pluginManager: PluginManager, _stateStream: StateStream, _ngxsExecutionStrategy: InternalNgxsExecutionStrategy, _internalErrorReporter: InternalErrorReporter);
|
|
25
|
+
constructor(_ngZone: NgZone, _actions: InternalActions, _actionResults: InternalDispatchedActionResults, _pluginManager: PluginManager, _stateStream: ɵStateStream, _ngxsExecutionStrategy: InternalNgxsExecutionStrategy);
|
|
26
26
|
/**
|
|
27
27
|
* Dispatches event(s).
|
|
28
28
|
*/
|
|
29
|
-
dispatch(actionOrActions: any | any[]): Observable<
|
|
29
|
+
dispatch(actionOrActions: any | any[]): Observable<void>;
|
|
30
30
|
private dispatchByEvents;
|
|
31
31
|
private dispatchSingle;
|
|
32
32
|
private getActionResultStream;
|