@abp/ng.core 4.4.3 → 5.0.0-beta.3
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/abp-ng.core.d.ts +1 -41
- package/bundles/abp-ng.core-locale.umd.js +1 -1
- package/bundles/abp-ng.core-locale.umd.js.map +1 -1
- package/bundles/abp-ng.core-testing.umd.js +37 -34
- package/bundles/abp-ng.core-testing.umd.js.map +1 -1
- package/bundles/abp-ng.core.umd.js +1403 -1897
- package/bundles/abp-ng.core.umd.js.map +1 -1
- package/esm2015/abp-ng.core.js +1 -40
- package/esm2015/abp-ng.core.js.map +1 -0
- package/esm2015/lib/abstracts/index.js +1 -1
- package/esm2015/lib/abstracts/index.js.map +1 -0
- package/esm2015/lib/abstracts/ng-model.component.js +18 -16
- package/esm2015/lib/abstracts/ng-model.component.js.map +1 -0
- package/esm2015/lib/components/dynamic-layout.component.js +28 -16
- package/esm2015/lib/components/dynamic-layout.component.js.map +1 -0
- package/esm2015/lib/components/index.js +1 -1
- package/esm2015/lib/components/index.js.map +1 -0
- package/esm2015/lib/components/replaceable-route-container.component.js +19 -15
- package/esm2015/lib/components/replaceable-route-container.component.js.map +1 -0
- package/esm2015/lib/components/router-outlet.component.js +12 -9
- package/esm2015/lib/components/router-outlet.component.js.map +1 -0
- package/esm2015/lib/constants/different-locales.js +1 -1
- package/esm2015/lib/constants/different-locales.js.map +1 -0
- package/esm2015/lib/constants/index.js +1 -1
- package/esm2015/lib/constants/index.js.map +1 -0
- package/esm2015/lib/core.module.js +151 -83
- package/esm2015/lib/core.module.js.map +1 -0
- package/esm2015/lib/directives/autofocus.directive.js +14 -13
- package/esm2015/lib/directives/autofocus.directive.js.map +1 -0
- package/esm2015/lib/directives/debounce.directive.js +18 -16
- package/esm2015/lib/directives/debounce.directive.js.map +1 -0
- package/esm2015/lib/directives/for.directive.js +39 -25
- package/esm2015/lib/directives/for.directive.js.map +1 -0
- package/esm2015/lib/directives/form-submit.directive.js +22 -19
- package/esm2015/lib/directives/form-submit.directive.js.map +1 -0
- package/esm2015/lib/directives/index.js +1 -2
- package/esm2015/lib/directives/index.js.map +1 -0
- package/esm2015/lib/directives/init.directive.js +11 -10
- package/esm2015/lib/directives/init.directive.js.map +1 -0
- package/esm2015/lib/directives/permission.directive.js +19 -34
- package/esm2015/lib/directives/permission.directive.js.map +1 -0
- package/esm2015/lib/directives/replaceable-template.directive.js +24 -20
- package/esm2015/lib/directives/replaceable-template.directive.js.map +1 -0
- package/esm2015/lib/directives/stop-propagation.directive.js +16 -15
- package/esm2015/lib/directives/stop-propagation.directive.js.map +1 -0
- package/esm2015/lib/enums/common.js +1 -1
- package/esm2015/lib/enums/common.js.map +1 -0
- package/esm2015/lib/enums/index.js +1 -1
- package/esm2015/lib/enums/index.js.map +1 -0
- package/esm2015/lib/guards/auth.guard.js +9 -11
- package/esm2015/lib/guards/auth.guard.js.map +1 -0
- package/esm2015/lib/guards/index.js +1 -1
- package/esm2015/lib/guards/index.js.map +1 -0
- package/esm2015/lib/guards/permission.guard.js +16 -21
- package/esm2015/lib/guards/permission.guard.js.map +1 -0
- package/esm2015/lib/handlers/oauth-configuration.handler.js +12 -13
- package/esm2015/lib/handlers/oauth-configuration.handler.js.map +1 -0
- package/esm2015/lib/handlers/routes.handler.js +11 -11
- package/esm2015/lib/handlers/routes.handler.js.map +1 -0
- package/esm2015/lib/interceptors/api.interceptor.js +12 -14
- package/esm2015/lib/interceptors/api.interceptor.js.map +1 -0
- package/esm2015/lib/interceptors/index.js +1 -1
- package/esm2015/lib/interceptors/index.js.map +1 -0
- package/esm2015/lib/localization.module.js +12 -7
- package/esm2015/lib/localization.module.js.map +1 -0
- package/esm2015/lib/models/auth.js +1 -1
- package/esm2015/lib/models/auth.js.map +1 -0
- package/esm2015/lib/models/common.js +1 -1
- package/esm2015/lib/models/common.js.map +1 -0
- package/esm2015/lib/models/dtos.js +6 -5
- package/esm2015/lib/models/dtos.js.map +1 -0
- package/esm2015/lib/models/environment.js +1 -1
- package/esm2015/lib/models/environment.js.map +1 -0
- package/esm2015/lib/models/index.js +1 -4
- package/esm2015/lib/models/index.js.map +1 -0
- package/esm2015/lib/models/localization.js +1 -1
- package/esm2015/lib/models/localization.js.map +1 -0
- package/esm2015/lib/models/replaceable-components.js +1 -1
- package/esm2015/lib/models/replaceable-components.js.map +1 -0
- package/esm2015/lib/models/rest.js +1 -1
- package/esm2015/lib/models/rest.js.map +1 -0
- package/esm2015/lib/models/session.js +1 -1
- package/esm2015/lib/models/session.js.map +1 -0
- package/esm2015/lib/models/utility.js +1 -1
- package/esm2015/lib/models/utility.js.map +1 -0
- package/esm2015/lib/pipes/index.js +1 -1
- package/esm2015/lib/pipes/index.js.map +1 -0
- package/esm2015/lib/pipes/localization.pipe.js +14 -10
- package/esm2015/lib/pipes/localization.pipe.js.map +1 -0
- package/esm2015/lib/pipes/sort.pipe.js +13 -7
- package/esm2015/lib/pipes/sort.pipe.js.map +1 -0
- package/esm2015/lib/providers/cookie-language.provider.js +22 -0
- package/esm2015/lib/providers/cookie-language.provider.js.map +1 -0
- package/esm2015/lib/providers/locale.provider.js +1 -1
- package/esm2015/lib/providers/locale.provider.js.map +1 -0
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js +9 -10
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js.map +1 -0
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js +1 -1
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js +9 -10
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js +9 -10
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js +2 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js +2 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/localization/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/localization/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/models.js.map +1 -0
- package/esm2015/lib/services/auth.service.js +9 -16
- package/esm2015/lib/services/auth.service.js.map +1 -0
- package/esm2015/lib/services/config-state.service.js +12 -20
- package/esm2015/lib/services/config-state.service.js.map +1 -0
- package/esm2015/lib/services/content-projection.service.js +7 -8
- package/esm2015/lib/services/content-projection.service.js.map +1 -0
- package/esm2015/lib/services/dom-insertion.service.js +7 -5
- package/esm2015/lib/services/dom-insertion.service.js.map +1 -0
- package/esm2015/lib/services/environment.service.js +7 -7
- package/esm2015/lib/services/environment.service.js.map +1 -0
- package/esm2015/lib/services/http-error-reporter.service.js +29 -0
- package/esm2015/lib/services/http-error-reporter.service.js.map +1 -0
- package/esm2015/lib/services/http-wait.service.js +9 -10
- package/esm2015/lib/services/http-wait.service.js.map +1 -0
- package/esm2015/lib/services/index.js +2 -4
- package/esm2015/lib/services/index.js.map +1 -0
- package/esm2015/lib/services/lazy-load.service.js +9 -10
- package/esm2015/lib/services/lazy-load.service.js.map +1 -0
- package/esm2015/lib/services/list.service.js +7 -7
- package/esm2015/lib/services/list.service.js.map +1 -0
- package/esm2015/lib/services/localization.service.js +11 -11
- package/esm2015/lib/services/localization.service.js.map +1 -0
- package/esm2015/lib/services/multi-tenancy.service.js +15 -34
- package/esm2015/lib/services/multi-tenancy.service.js.map +1 -0
- package/esm2015/lib/services/permission.service.js +10 -11
- package/esm2015/lib/services/permission.service.js.map +1 -0
- package/esm2015/lib/services/replaceable-components.service.js +7 -9
- package/esm2015/lib/services/replaceable-components.service.js.map +1 -0
- package/esm2015/lib/services/resource-wait.service.js +9 -7
- package/esm2015/lib/services/resource-wait.service.js.map +1 -0
- package/esm2015/lib/services/rest.service.js +19 -23
- package/esm2015/lib/services/rest.service.js.map +1 -0
- package/esm2015/lib/services/router-events.service.js +7 -8
- package/esm2015/lib/services/router-events.service.js.map +1 -0
- package/esm2015/lib/services/router-wait.service.js +9 -11
- package/esm2015/lib/services/router-wait.service.js.map +1 -0
- package/esm2015/lib/services/routes.service.js +13 -17
- package/esm2015/lib/services/routes.service.js.map +1 -0
- package/esm2015/lib/services/session-state.service.js +9 -10
- package/esm2015/lib/services/session-state.service.js.map +1 -0
- package/esm2015/lib/services/subscription.service.js +7 -4
- package/esm2015/lib/services/subscription.service.js.map +1 -0
- package/esm2015/lib/services/track-by.service.js +12 -8
- package/esm2015/lib/services/track-by.service.js.map +1 -0
- package/esm2015/lib/strategies/auth-flow.strategy.js +9 -7
- package/esm2015/lib/strategies/auth-flow.strategy.js.map +1 -0
- package/esm2015/lib/strategies/container.strategy.js +1 -1
- package/esm2015/lib/strategies/container.strategy.js.map +1 -0
- package/esm2015/lib/strategies/content-security.strategy.js +1 -1
- package/esm2015/lib/strategies/content-security.strategy.js.map +1 -0
- package/esm2015/lib/strategies/content.strategy.js +14 -10
- package/esm2015/lib/strategies/content.strategy.js.map +1 -0
- package/esm2015/lib/strategies/context.strategy.js +1 -2
- package/esm2015/lib/strategies/context.strategy.js.map +1 -0
- package/esm2015/lib/strategies/cross-origin.strategy.js +1 -1
- package/esm2015/lib/strategies/cross-origin.strategy.js.map +1 -0
- package/esm2015/lib/strategies/dom.strategy.js +1 -1
- package/esm2015/lib/strategies/dom.strategy.js.map +1 -0
- package/esm2015/lib/strategies/index.js +1 -1
- package/esm2015/lib/strategies/index.js.map +1 -0
- package/esm2015/lib/strategies/loading.strategy.js +1 -1
- package/esm2015/lib/strategies/loading.strategy.js.map +1 -0
- package/esm2015/lib/strategies/projection.strategy.js +1 -1
- package/esm2015/lib/strategies/projection.strategy.js.map +1 -0
- package/esm2015/lib/tokens/app-config.token.js +1 -1
- package/esm2015/lib/tokens/app-config.token.js.map +1 -0
- package/esm2015/lib/tokens/cookie-language-key.token.js +5 -0
- package/esm2015/lib/tokens/cookie-language-key.token.js.map +1 -0
- package/esm2015/lib/tokens/index.js +3 -2
- package/esm2015/lib/tokens/index.js.map +1 -0
- package/esm2015/lib/tokens/list.token.js +1 -1
- package/esm2015/lib/tokens/list.token.js.map +1 -0
- package/esm2015/lib/tokens/lodaer-delay.token.js +1 -1
- package/esm2015/lib/tokens/lodaer-delay.token.js.map +1 -0
- package/esm2015/lib/tokens/manage-profile.token.js +1 -1
- package/esm2015/lib/tokens/manage-profile.token.js.map +1 -0
- package/esm2015/lib/tokens/options.token.js +1 -1
- package/esm2015/lib/tokens/options.token.js.map +1 -0
- package/esm2015/lib/tokens/tenant-key.token.js +1 -1
- package/esm2015/lib/tokens/tenant-key.token.js.map +1 -0
- package/esm2015/lib/utils/array-utils.js +1 -1
- package/esm2015/lib/utils/array-utils.js.map +1 -0
- package/esm2015/lib/utils/auth-utils.js +1 -1
- package/esm2015/lib/utils/auth-utils.js.map +1 -0
- package/esm2015/lib/utils/common-utils.js +1 -2
- package/esm2015/lib/utils/common-utils.js.map +1 -0
- package/esm2015/lib/utils/date-extensions.js +1 -1
- package/esm2015/lib/utils/date-extensions.js.map +1 -0
- package/esm2015/lib/utils/date-utils.js +1 -1
- package/esm2015/lib/utils/date-utils.js.map +1 -0
- package/esm2015/lib/utils/environment-utils.js +8 -5
- package/esm2015/lib/utils/environment-utils.js.map +1 -0
- package/esm2015/lib/utils/factory-utils.js +1 -1
- package/esm2015/lib/utils/factory-utils.js.map +1 -0
- package/esm2015/lib/utils/file-utils.js +1 -1
- package/esm2015/lib/utils/file-utils.js.map +1 -0
- package/esm2015/lib/utils/form-utils.js +1 -1
- package/esm2015/lib/utils/form-utils.js.map +1 -0
- package/esm2015/lib/utils/generator-utils.js +1 -2
- package/esm2015/lib/utils/generator-utils.js.map +1 -0
- package/esm2015/lib/utils/http-utils.js +1 -1
- package/esm2015/lib/utils/http-utils.js.map +1 -0
- package/esm2015/lib/utils/index.js +1 -2
- package/esm2015/lib/utils/index.js.map +1 -0
- package/esm2015/lib/utils/initial-utils.js +1 -1
- package/esm2015/lib/utils/initial-utils.js.map +1 -0
- package/esm2015/lib/utils/internal-store-utils.js +1 -1
- package/esm2015/lib/utils/internal-store-utils.js.map +1 -0
- package/esm2015/lib/utils/lazy-load-utils.js +1 -2
- package/esm2015/lib/utils/lazy-load-utils.js.map +1 -0
- package/esm2015/lib/utils/localization-utils.js +3 -3
- package/esm2015/lib/utils/localization-utils.js.map +1 -0
- package/esm2015/lib/utils/multi-tenancy-utils.js +1 -1
- package/esm2015/lib/utils/multi-tenancy-utils.js.map +1 -0
- package/esm2015/lib/utils/number-utils.js +1 -2
- package/esm2015/lib/utils/number-utils.js.map +1 -0
- package/esm2015/lib/utils/object-utils.js +1 -1
- package/esm2015/lib/utils/object-utils.js.map +1 -0
- package/esm2015/lib/utils/route-utils.js +1 -1
- package/esm2015/lib/utils/route-utils.js.map +1 -0
- package/esm2015/lib/utils/string-utils.js +1 -1
- package/esm2015/lib/utils/string-utils.js.map +1 -0
- package/esm2015/lib/utils/tree-utils.js +2 -1
- package/esm2015/lib/utils/tree-utils.js.map +1 -0
- package/esm2015/lib/validators/age.validator.js +1 -1
- package/esm2015/lib/validators/age.validator.js.map +1 -0
- package/esm2015/lib/validators/credit-card.validator.js +1 -2
- package/esm2015/lib/validators/credit-card.validator.js.map +1 -0
- package/esm2015/lib/validators/index.js +2 -4
- package/esm2015/lib/validators/index.js.map +1 -0
- package/esm2015/lib/validators/range.validator.js +1 -1
- package/esm2015/lib/validators/range.validator.js.map +1 -0
- package/esm2015/lib/validators/required.validator.js +1 -1
- package/esm2015/lib/validators/required.validator.js.map +1 -0
- package/esm2015/lib/validators/string-length.validator.js +1 -1
- package/esm2015/lib/validators/string-length.validator.js.map +1 -0
- package/esm2015/lib/validators/url.validator.js +1 -1
- package/esm2015/lib/validators/url.validator.js.map +1 -0
- package/esm2015/locale/abp-ng.core-locale.js +1 -1
- package/esm2015/locale/abp-ng.core-locale.js.map +1 -0
- package/esm2015/locale/public-api.js +1 -1
- package/esm2015/locale/public-api.js.map +1 -0
- package/esm2015/locale/utils/register-locale.js +1 -1
- package/esm2015/locale/utils/register-locale.js.map +1 -0
- package/esm2015/public-api.js +10 -15
- package/esm2015/public-api.js.map +1 -0
- package/esm2015/testing/abp-ng.core-testing.js +1 -3
- package/esm2015/testing/abp-ng.core-testing.js.map +1 -0
- package/esm2015/testing/lib/core-testing.module.js +12 -7
- package/esm2015/testing/lib/core-testing.module.js.map +1 -0
- package/esm2015/testing/lib/services/index.js +1 -1
- package/esm2015/testing/lib/services/index.js.map +1 -0
- package/esm2015/testing/lib/services/mock-permission.service.js +9 -10
- package/esm2015/testing/lib/services/mock-permission.service.js.map +1 -0
- package/esm2015/testing/lib/services/mock-rest.service.js +14 -14
- package/esm2015/testing/lib/services/mock-rest.service.js.map +1 -0
- package/esm2015/testing/lib/utils/clear-page.util.js +1 -1
- package/esm2015/testing/lib/utils/clear-page.util.js.map +1 -0
- package/esm2015/testing/lib/utils/index.js +1 -1
- package/esm2015/testing/lib/utils/index.js.map +1 -0
- package/esm2015/testing/lib/utils/wait.util.js +1 -1
- package/esm2015/testing/lib/utils/wait.util.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/fesm2015/abp-ng.core-locale.js.map +1 -1
- package/fesm2015/abp-ng.core-testing.js +32 -30
- package/fesm2015/abp-ng.core-testing.js.map +1 -1
- package/fesm2015/abp-ng.core.js +723 -1138
- package/fesm2015/abp-ng.core.js.map +1 -1
- package/lib/abstracts/ng-model.component.d.ts +6 -3
- package/lib/components/dynamic-layout.component.d.ts +3 -0
- package/lib/components/replaceable-route-container.component.d.ts +3 -0
- package/lib/components/router-outlet.component.d.ts +3 -0
- package/lib/core.module.d.ts +29 -0
- package/lib/directives/autofocus.directive.d.ts +4 -1
- package/lib/directives/debounce.directive.d.ts +3 -0
- package/lib/directives/for.directive.d.ts +3 -0
- package/lib/directives/form-submit.directive.d.ts +3 -0
- package/lib/directives/index.d.ts +0 -1
- package/lib/directives/init.directive.d.ts +3 -0
- package/lib/directives/permission.directive.d.ts +3 -5
- package/lib/directives/replaceable-template.directive.d.ts +3 -0
- package/lib/directives/stop-propagation.directive.d.ts +3 -0
- package/lib/guards/auth.guard.d.ts +3 -0
- package/lib/guards/permission.guard.d.ts +7 -4
- package/lib/handlers/oauth-configuration.handler.d.ts +3 -0
- package/lib/handlers/routes.handler.d.ts +3 -0
- package/lib/interceptors/api.interceptor.d.ts +3 -0
- package/lib/localization.module.d.ts +5 -0
- package/lib/models/index.d.ts +0 -3
- package/lib/models/replaceable-components.d.ts +2 -2
- package/lib/models/session.d.ts +0 -14
- package/lib/pipes/localization.pipe.d.ts +6 -2
- package/lib/pipes/sort.pipe.d.ts +4 -0
- package/lib/providers/cookie-language.provider.d.ts +3 -0
- package/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.d.ts +3 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.d.ts +3 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +3 -0
- package/lib/services/auth.service.d.ts +3 -4
- package/lib/services/config-state.service.d.ts +14 -16
- package/lib/services/content-projection.service.d.ts +3 -0
- package/lib/services/dom-insertion.service.d.ts +3 -0
- package/lib/services/environment.service.d.ts +4 -0
- package/lib/services/http-error-reporter.service.d.ts +12 -0
- package/lib/services/http-wait.service.d.ts +3 -0
- package/lib/services/index.d.ts +1 -3
- package/lib/services/lazy-load.service.d.ts +3 -0
- package/lib/services/list.service.d.ts +4 -1
- package/lib/services/localization.service.d.ts +6 -3
- package/lib/services/multi-tenancy.service.d.ts +7 -14
- package/lib/services/permission.service.d.ts +4 -1
- package/lib/services/replaceable-components.service.d.ts +3 -0
- package/lib/services/resource-wait.service.d.ts +3 -0
- package/lib/services/rest.service.d.ts +6 -3
- package/lib/services/router-events.service.d.ts +3 -0
- package/lib/services/router-wait.service.d.ts +3 -0
- package/lib/services/routes.service.d.ts +5 -2
- package/lib/services/session-state.service.d.ts +3 -0
- package/lib/services/subscription.service.d.ts +3 -0
- package/lib/services/track-by.service.d.ts +3 -0
- package/lib/strategies/auth-flow.strategy.d.ts +12 -12
- package/lib/strategies/content.strategy.d.ts +9 -5
- package/lib/tokens/cookie-language-key.token.d.ts +2 -0
- package/lib/tokens/index.d.ts +2 -1
- package/lib/utils/auth-utils.d.ts +5 -5
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/initial-utils.d.ts +5 -5
- package/lib/utils/tree-utils.d.ts +1 -1
- package/locale/abp-ng.core-locale.d.ts +1 -0
- package/locale/package.json +0 -1
- package/package.json +5 -9
- package/public-api.d.ts +9 -11
- package/testing/abp-ng.core-testing.d.ts +1 -2
- package/testing/lib/core-testing.module.d.ts +7 -0
- package/testing/lib/services/mock-permission.service.d.ts +3 -0
- package/testing/lib/services/mock-rest.service.d.ts +3 -0
- package/testing/package.json +0 -1
- package/abp-ng.core.metadata.json +0 -1
- package/bundles/abp-ng.core-locale.umd.min.js +0 -16
- package/bundles/abp-ng.core-locale.umd.min.js.map +0 -1
- package/bundles/abp-ng.core-testing.umd.min.js +0 -2
- package/bundles/abp-ng.core-testing.umd.min.js.map +0 -1
- package/bundles/abp-ng.core.umd.min.js +0 -17
- package/bundles/abp-ng.core.umd.min.js.map +0 -1
- package/esm2015/lib/actions/config.actions.js +0 -25
- package/esm2015/lib/actions/index.js +0 -5
- package/esm2015/lib/actions/loader.actions.js +0 -13
- package/esm2015/lib/actions/profile.actions.js +0 -16
- package/esm2015/lib/actions/rest.actions.js +0 -7
- package/esm2015/lib/directives/visibility.directive.js +0 -62
- package/esm2015/lib/models/application-configuration.js +0 -2
- package/esm2015/lib/models/config.js +0 -2
- package/esm2015/lib/models/profile.js +0 -2
- package/esm2015/lib/services/application-configuration.service.js +0 -29
- package/esm2015/lib/services/profile-state.service.js +0 -33
- package/esm2015/lib/services/profile.service.js +0 -48
- package/esm2015/lib/states/config.state.js +0 -230
- package/esm2015/lib/states/index.js +0 -3
- package/esm2015/lib/states/profile.state.js +0 -53
- package/esm2015/lib/utils/rxjs-utils.js +0 -26
- package/lib/actions/config.actions.d.ts +0 -23
- package/lib/actions/index.d.ts +0 -4
- package/lib/actions/loader.actions.d.ts +0 -11
- package/lib/actions/profile.actions.d.ts +0 -14
- package/lib/actions/rest.actions.d.ts +0 -6
- package/lib/directives/visibility.directive.d.ts +0 -16
- package/lib/models/application-configuration.d.ts +0 -108
- package/lib/models/config.d.ts +0 -52
- package/lib/models/profile.d.ts +0 -25
- package/lib/services/application-configuration.service.d.ts +0 -11
- package/lib/services/profile-state.service.d.ts +0 -11
- package/lib/services/profile.service.d.ts +0 -11
- package/lib/states/config.state.d.ts +0 -191
- package/lib/states/index.d.ts +0 -2
- package/lib/states/profile.state.d.ts +0 -12
- package/lib/utils/rxjs-utils.d.ts +0 -5
- package/locale/abp-ng.core-locale.metadata.json +0 -1
- package/testing/abp-ng.core-testing.metadata.json +0 -1
package/fesm2015/abp-ng.core.js
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectorRef, Component,
|
|
3
|
-
import * as i1 from '@angular/router';
|
|
4
|
-
import { PRIMARY_OUTLET,
|
|
5
|
-
import
|
|
2
|
+
import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject, Optional, SkipSelf, isDevMode, Directive, EventEmitter, Output, Self, Injector, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, NgModuleFactory, Compiler, ComponentFactoryResolver, ApplicationRef, inject } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/router';
|
|
4
|
+
import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
5
|
+
import * as i5 from '@angular/common';
|
|
6
|
+
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
6
7
|
import { BehaviorSubject, Subject, throwError, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
|
|
7
8
|
import { map, distinctUntilChanged, filter, catchError, switchMap, take, mapTo, debounceTime, takeUntil, tap, finalize, retryWhen, delay, shareReplay } from 'rxjs/operators';
|
|
8
|
-
import { __rest, __awaiter
|
|
9
|
-
import
|
|
9
|
+
import { __rest, __awaiter } from 'tslib';
|
|
10
|
+
import * as i1 from '@angular/common/http';
|
|
11
|
+
import { HttpHeaders, HttpClient, HttpClientModule, HttpClientXsrfModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
10
12
|
import compare from 'just-compare';
|
|
11
|
-
import * as
|
|
12
|
-
import {
|
|
13
|
-
import * as
|
|
14
|
-
import {
|
|
15
|
-
import { FormGroupDirective, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
16
|
-
import * as i1$1 from 'angular-oauth2-oidc';
|
|
17
|
-
import { OAuthService, OAuthStorage, OAuthErrorEvent, OAuthInfoEvent, OAuthModule } from 'angular-oauth2-oidc';
|
|
13
|
+
import * as i1$2 from '@angular/forms';
|
|
14
|
+
import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
15
|
+
import * as i1$3 from 'angular-oauth2-oidc';
|
|
16
|
+
import { OAuthStorage, OAuthService, OAuthErrorEvent, OAuthInfoEvent, OAuthModule } from 'angular-oauth2-oidc';
|
|
18
17
|
import clone from 'just-clone';
|
|
19
18
|
|
|
20
19
|
// Not an abstract class on purpose. Do not change!
|
|
21
|
-
// tslint:disable-next-line: use-component-selector
|
|
22
20
|
class AbstractNgModelComponent {
|
|
23
21
|
constructor(injector) {
|
|
24
22
|
this.injector = injector;
|
|
25
23
|
this.valueFn = value => value;
|
|
26
24
|
this.valueLimitFn = value => false;
|
|
27
|
-
// tslint:disable-next-line: deprecation
|
|
28
25
|
this.cdRef = injector.get(ChangeDetectorRef);
|
|
29
26
|
}
|
|
30
27
|
set value(value) {
|
|
@@ -59,80 +56,22 @@ class AbstractNgModelComponent {
|
|
|
59
56
|
this.disabled = isDisabled;
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
|
-
AbstractNgModelComponent
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
];
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
class GetAppConfiguration {
|
|
80
|
-
}
|
|
81
|
-
GetAppConfiguration.type = '[Config] Get App Configuration';
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use EnvironmentService instead. To be deleted in v5.0.
|
|
84
|
-
*/
|
|
85
|
-
class SetEnvironment {
|
|
86
|
-
constructor(environment) {
|
|
87
|
-
this.environment = environment;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
SetEnvironment.type = '[Config] Set Environment';
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Use EnvironmentService instead. To be deleted in v5.0.
|
|
93
|
-
*/
|
|
94
|
-
class PatchConfigState {
|
|
95
|
-
constructor(state) {
|
|
96
|
-
this.state = state;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
PatchConfigState.type = '[Config] Set State';
|
|
100
|
-
|
|
101
|
-
class StartLoader {
|
|
102
|
-
constructor(payload) {
|
|
103
|
-
this.payload = payload;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
StartLoader.type = '[Loader] Start';
|
|
107
|
-
class StopLoader {
|
|
108
|
-
constructor(payload) {
|
|
109
|
-
this.payload = payload;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
StopLoader.type = '[Loader] Stop';
|
|
113
|
-
|
|
114
|
-
class GetProfile {
|
|
115
|
-
}
|
|
116
|
-
GetProfile.type = '[Profile] Get';
|
|
117
|
-
class UpdateProfile {
|
|
118
|
-
constructor(payload) {
|
|
119
|
-
this.payload = payload;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
UpdateProfile.type = '[Profile] Update';
|
|
123
|
-
class ChangePassword {
|
|
124
|
-
constructor(payload) {
|
|
125
|
-
this.payload = payload;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
ChangePassword.type = '[Profile] Change Password';
|
|
129
|
-
|
|
130
|
-
class RestOccurError {
|
|
131
|
-
constructor(payload) {
|
|
132
|
-
this.payload = payload;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
RestOccurError.type = '[Rest] Error';
|
|
59
|
+
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AbstractNgModelComponent, selector: "ng-component", inputs: { disabled: "disabled", readonly: "readonly", valueFn: "valueFn", valueLimitFn: "valueLimitFn", value: "value" }, ngImport: i0, template: '', isInline: true });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ template: '' }]
|
|
64
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { disabled: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], readonly: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], valueFn: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], valueLimitFn: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], value: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}] } });
|
|
136
75
|
|
|
137
76
|
const CORE_OPTIONS = new InjectionToken('CORE_OPTIONS');
|
|
138
77
|
function coreOptionsFactory(_a) {
|
|
@@ -148,9 +87,10 @@ function getLocaleDirection(locale) {
|
|
|
148
87
|
}
|
|
149
88
|
function createLocalizer(localization) {
|
|
150
89
|
return (resourceName, key, defaultValue) => {
|
|
90
|
+
var _a;
|
|
151
91
|
if (resourceName === '_')
|
|
152
92
|
return key;
|
|
153
|
-
const resource =
|
|
93
|
+
const resource = (_a = localization === null || localization === void 0 ? void 0 : localization.values) === null || _a === void 0 ? void 0 : _a[resourceName];
|
|
154
94
|
if (!resource)
|
|
155
95
|
return defaultValue;
|
|
156
96
|
return resource[key] || defaultValue;
|
|
@@ -211,7 +151,6 @@ function interpolate(text, params) {
|
|
|
211
151
|
}
|
|
212
152
|
|
|
213
153
|
function noop() {
|
|
214
|
-
// tslint:disable-next-line: only-arrow-functions
|
|
215
154
|
const fn = function () { };
|
|
216
155
|
return fn;
|
|
217
156
|
}
|
|
@@ -309,7 +248,6 @@ class InternalStore {
|
|
|
309
248
|
}
|
|
310
249
|
|
|
311
250
|
const mapToApiUrl = (key) => (apis) => (apis[key] || apis.default).url || apis.default.url;
|
|
312
|
-
const ɵ0$1 = mapToApiUrl;
|
|
313
251
|
class EnvironmentService {
|
|
314
252
|
constructor() {
|
|
315
253
|
this.store = new InternalStore({});
|
|
@@ -333,26 +271,53 @@ class EnvironmentService {
|
|
|
333
271
|
this.store.set(environment);
|
|
334
272
|
}
|
|
335
273
|
}
|
|
336
|
-
EnvironmentService.ɵ
|
|
337
|
-
EnvironmentService
|
|
338
|
-
|
|
339
|
-
|
|
274
|
+
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
275
|
+
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
277
|
+
type: Injectable,
|
|
278
|
+
args: [{ providedIn: 'root' }]
|
|
279
|
+
}] });
|
|
280
|
+
|
|
281
|
+
class HttpErrorReporterService {
|
|
282
|
+
constructor() {
|
|
283
|
+
this._reporter$ = new Subject();
|
|
284
|
+
this._errors$ = new BehaviorSubject([]);
|
|
285
|
+
this.reportError = (error) => {
|
|
286
|
+
this._reporter$.next(error);
|
|
287
|
+
this._errors$.next([...this.errors, error]);
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
get reporter$() {
|
|
291
|
+
return this._reporter$.asObservable();
|
|
292
|
+
}
|
|
293
|
+
get errors$() {
|
|
294
|
+
return this._errors$.asObservable();
|
|
295
|
+
}
|
|
296
|
+
get errors() {
|
|
297
|
+
return this._errors$.value;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
301
|
+
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
303
|
+
type: Injectable,
|
|
304
|
+
args: [{ providedIn: 'root' }]
|
|
305
|
+
}] });
|
|
340
306
|
|
|
341
307
|
class RestService {
|
|
342
|
-
constructor(options, http, environment,
|
|
308
|
+
constructor(options, http, environment, httpErrorReporter) {
|
|
343
309
|
this.options = options;
|
|
344
310
|
this.http = http;
|
|
345
311
|
this.environment = environment;
|
|
346
|
-
this.
|
|
312
|
+
this.httpErrorReporter = httpErrorReporter;
|
|
347
313
|
}
|
|
348
314
|
getApiFromStore(apiName) {
|
|
349
315
|
return this.environment.getApiUrl(apiName);
|
|
350
316
|
}
|
|
351
317
|
handleError(err) {
|
|
352
|
-
this.
|
|
318
|
+
this.httpErrorReporter.reportError(err);
|
|
353
319
|
return throwError(err);
|
|
354
320
|
}
|
|
355
|
-
// TODO: Deprecate service or improve interface in v5.0
|
|
356
321
|
request(request, config, api) {
|
|
357
322
|
config = config || {};
|
|
358
323
|
api = api || this.getApiFromStore(config.apiName);
|
|
@@ -373,18 +338,17 @@ class RestService {
|
|
|
373
338
|
.pipe(catchError(err => (skipHandleError ? throwError(err) : this.handleError(err))));
|
|
374
339
|
}
|
|
375
340
|
}
|
|
376
|
-
RestService.ɵ
|
|
377
|
-
RestService
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
];
|
|
341
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
342
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RestService, decorators: [{
|
|
344
|
+
type: Injectable,
|
|
345
|
+
args: [{
|
|
346
|
+
providedIn: 'root',
|
|
347
|
+
}]
|
|
348
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
349
|
+
type: Inject,
|
|
350
|
+
args: [CORE_OPTIONS]
|
|
351
|
+
}] }, { type: i1.HttpClient }, { type: EnvironmentService }, { type: HttpErrorReporterService }]; } });
|
|
388
352
|
|
|
389
353
|
class AbpApplicationConfigurationService {
|
|
390
354
|
constructor(restService) {
|
|
@@ -398,15 +362,14 @@ class AbpApplicationConfigurationService {
|
|
|
398
362
|
}, { apiName: this.apiName });
|
|
399
363
|
}
|
|
400
364
|
}
|
|
401
|
-
AbpApplicationConfigurationService.ɵ
|
|
402
|
-
AbpApplicationConfigurationService
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
];
|
|
365
|
+
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
366
|
+
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
368
|
+
type: Injectable,
|
|
369
|
+
args: [{
|
|
370
|
+
providedIn: 'root',
|
|
371
|
+
}]
|
|
372
|
+
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
410
373
|
|
|
411
374
|
class ConfigStateService {
|
|
412
375
|
constructor(abpConfigService) {
|
|
@@ -421,14 +384,7 @@ class ConfigStateService {
|
|
|
421
384
|
initUpdateStream() {
|
|
422
385
|
this.updateSubject
|
|
423
386
|
.pipe(switchMap(() => this.abpConfigService.get()))
|
|
424
|
-
.subscribe(res => this.
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* @deprecated do not use this method directly, instead call refreshAppState
|
|
428
|
-
* This method will be private in v5.0
|
|
429
|
-
*/
|
|
430
|
-
setState(state) {
|
|
431
|
-
this.store.set(state);
|
|
387
|
+
.subscribe(res => this.store.set(res));
|
|
432
388
|
}
|
|
433
389
|
refreshAppState() {
|
|
434
390
|
this.updateSubject.next();
|
|
@@ -520,15 +476,14 @@ class ConfigStateService {
|
|
|
520
476
|
}));
|
|
521
477
|
}
|
|
522
478
|
}
|
|
523
|
-
ConfigStateService.ɵ
|
|
524
|
-
ConfigStateService
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
];
|
|
479
|
+
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
480
|
+
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
|
|
481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
482
|
+
type: Injectable,
|
|
483
|
+
args: [{
|
|
484
|
+
providedIn: 'root',
|
|
485
|
+
}]
|
|
486
|
+
}], ctorParameters: function () { return [{ type: AbpApplicationConfigurationService }]; } });
|
|
532
487
|
function splitKeys(keys) {
|
|
533
488
|
if (typeof keys === 'string') {
|
|
534
489
|
keys = keys.split('.');
|
|
@@ -599,15 +554,14 @@ class SessionStateService {
|
|
|
599
554
|
document.documentElement.setAttribute('lang', language);
|
|
600
555
|
}
|
|
601
556
|
}
|
|
602
|
-
SessionStateService.ɵ
|
|
603
|
-
SessionStateService
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
];
|
|
557
|
+
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
558
|
+
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, providedIn: 'root' });
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SessionStateService, decorators: [{
|
|
560
|
+
type: Injectable,
|
|
561
|
+
args: [{
|
|
562
|
+
providedIn: 'root',
|
|
563
|
+
}]
|
|
564
|
+
}], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
|
|
611
565
|
|
|
612
566
|
class LocalizationService {
|
|
613
567
|
constructor(sessionState, injector, otherInstance, configState) {
|
|
@@ -682,16 +636,16 @@ class LocalizationService {
|
|
|
682
636
|
return createLocalizerWithFallback(localization)(resourceNames, keys, defaultValue);
|
|
683
637
|
}
|
|
684
638
|
}
|
|
685
|
-
LocalizationService.ɵ
|
|
686
|
-
LocalizationService
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
];
|
|
639
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
640
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, providedIn: 'root' });
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationService, decorators: [{
|
|
642
|
+
type: Injectable,
|
|
643
|
+
args: [{ providedIn: 'root' }]
|
|
644
|
+
}], ctorParameters: function () { return [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
|
|
645
|
+
type: Optional
|
|
646
|
+
}, {
|
|
647
|
+
type: SkipSelf
|
|
648
|
+
}] }, { type: ConfigStateService }]; } });
|
|
695
649
|
function getLocalization(state, key, ...interpolateParams) {
|
|
696
650
|
if (!key)
|
|
697
651
|
key = '';
|
|
@@ -796,14 +750,12 @@ class ReplaceableComponentsService {
|
|
|
796
750
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
797
751
|
}
|
|
798
752
|
}
|
|
799
|
-
ReplaceableComponentsService.ɵ
|
|
800
|
-
ReplaceableComponentsService
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
{ type: Router }
|
|
806
|
-
];
|
|
753
|
+
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
754
|
+
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
756
|
+
type: Injectable,
|
|
757
|
+
args: [{ providedIn: 'root' }]
|
|
758
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.Router }]; } });
|
|
807
759
|
|
|
808
760
|
const NavigationEvent = {
|
|
809
761
|
Cancel: NavigationCancel,
|
|
@@ -831,13 +783,12 @@ class RouterEvents {
|
|
|
831
783
|
return this.getNavigationEvents(...keys);
|
|
832
784
|
}
|
|
833
785
|
}
|
|
834
|
-
RouterEvents.ɵ
|
|
835
|
-
RouterEvents
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
];
|
|
786
|
+
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
787
|
+
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, providedIn: 'root' });
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterEvents, decorators: [{
|
|
789
|
+
type: Injectable,
|
|
790
|
+
args: [{ providedIn: 'root' }]
|
|
791
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
|
|
841
792
|
|
|
842
793
|
function pushValueTo(array) {
|
|
843
794
|
return (element) => {
|
|
@@ -846,6 +797,7 @@ function pushValueTo(array) {
|
|
|
846
797
|
};
|
|
847
798
|
}
|
|
848
799
|
|
|
800
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
849
801
|
class BaseTreeNode {
|
|
850
802
|
constructor(props) {
|
|
851
803
|
this.children = [];
|
|
@@ -944,20 +896,21 @@ class PermissionService {
|
|
|
944
896
|
return this.mapToPolicies(this.configState.getAll());
|
|
945
897
|
}
|
|
946
898
|
mapToPolicies(applicationConfiguration) {
|
|
947
|
-
|
|
899
|
+
var _a;
|
|
900
|
+
return ((_a = applicationConfiguration === null || applicationConfiguration === void 0 ? void 0 : applicationConfiguration.auth) === null || _a === void 0 ? void 0 : _a.grantedPolicies) || {};
|
|
948
901
|
}
|
|
949
902
|
getPolicy(key, grantedPolicies) {
|
|
950
|
-
return
|
|
903
|
+
return grantedPolicies[key] || false;
|
|
951
904
|
}
|
|
952
905
|
}
|
|
953
|
-
PermissionService.ɵ
|
|
954
|
-
PermissionService
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
];
|
|
906
|
+
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
907
|
+
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, providedIn: 'root' });
|
|
908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionService, decorators: [{
|
|
909
|
+
type: Injectable,
|
|
910
|
+
args: [{ providedIn: 'root' }]
|
|
911
|
+
}], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
|
|
960
912
|
|
|
913
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
961
914
|
class AbstractTreeService {
|
|
962
915
|
constructor() {
|
|
963
916
|
this._flat$ = new BehaviorSubject([]);
|
|
@@ -1083,24 +1036,19 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
1083
1036
|
this.subscription.unsubscribe();
|
|
1084
1037
|
}
|
|
1085
1038
|
}
|
|
1086
|
-
AbstractNavTreeService
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
];
|
|
1039
|
+
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1040
|
+
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService });
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
1042
|
+
type: Injectable
|
|
1043
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1092
1044
|
class RoutesService extends AbstractNavTreeService {
|
|
1093
1045
|
}
|
|
1094
|
-
RoutesService.ɵ
|
|
1095
|
-
RoutesService
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1100
|
-
SettingTabsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SettingTabsService_Factory() { return new SettingTabsService(i0.ɵɵinject(i0.INJECTOR)); }, token: SettingTabsService, providedIn: "root" });
|
|
1101
|
-
SettingTabsService.decorators = [
|
|
1102
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
1103
|
-
];
|
|
1046
|
+
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1047
|
+
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, providedIn: 'root' });
|
|
1048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesService, decorators: [{
|
|
1049
|
+
type: Injectable,
|
|
1050
|
+
args: [{ providedIn: 'root' }]
|
|
1051
|
+
}] });
|
|
1104
1052
|
|
|
1105
1053
|
class SubscriptionService {
|
|
1106
1054
|
constructor() {
|
|
@@ -1134,9 +1082,11 @@ class SubscriptionService {
|
|
|
1134
1082
|
this.subscription = new Subscription();
|
|
1135
1083
|
}
|
|
1136
1084
|
}
|
|
1137
|
-
SubscriptionService
|
|
1138
|
-
|
|
1139
|
-
|
|
1085
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1086
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService });
|
|
1087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
1088
|
+
type: Injectable
|
|
1089
|
+
}] });
|
|
1140
1090
|
|
|
1141
1091
|
class DynamicLayoutComponent {
|
|
1142
1092
|
constructor(injector, localizationService, replaceableComponents, subscription, routerEvents, dynamicLayoutComponent) {
|
|
@@ -1196,27 +1146,32 @@ class DynamicLayoutComponent {
|
|
|
1196
1146
|
return this.replaceableComponents.get(key);
|
|
1197
1147
|
}
|
|
1198
1148
|
}
|
|
1199
|
-
DynamicLayoutComponent
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1149
|
+
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicLayoutComponent, deps: [{ token: i0.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1150
|
+
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1151
|
+
<ng-container *ngTemplateOutlet="layout ? componentOutlet : routerOutlet"></ng-container>
|
|
1152
|
+
<ng-template #routerOutlet><router-outlet></router-outlet></ng-template>
|
|
1153
|
+
<ng-template #componentOutlet
|
|
1154
|
+
><ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container
|
|
1155
|
+
></ng-template>
|
|
1156
|
+
`, isInline: true, directives: [{ type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
1158
|
+
type: Component,
|
|
1159
|
+
args: [{
|
|
1160
|
+
selector: 'abp-dynamic-layout',
|
|
1161
|
+
template: `
|
|
1203
1162
|
<ng-container *ngTemplateOutlet="layout ? componentOutlet : routerOutlet"></ng-container>
|
|
1204
1163
|
<ng-template #routerOutlet><router-outlet></router-outlet></ng-template>
|
|
1205
1164
|
<ng-template #componentOutlet
|
|
1206
1165
|
><ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container
|
|
1207
1166
|
></ng-template>
|
|
1208
1167
|
`,
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
]
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
{ type: SubscriptionService },
|
|
1217
|
-
{ type: RouterEvents },
|
|
1218
|
-
{ type: DynamicLayoutComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
1219
|
-
];
|
|
1168
|
+
providers: [SubscriptionService],
|
|
1169
|
+
}]
|
|
1170
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: LocalizationService }, { type: ReplaceableComponentsService }, { type: SubscriptionService }, { type: RouterEvents }, { type: DynamicLayoutComponent, decorators: [{
|
|
1171
|
+
type: Optional
|
|
1172
|
+
}, {
|
|
1173
|
+
type: SkipSelf
|
|
1174
|
+
}] }]; } });
|
|
1220
1175
|
|
|
1221
1176
|
class ReplaceableRouteContainerComponent {
|
|
1222
1177
|
constructor(route, replaceableComponents, subscription) {
|
|
@@ -1226,8 +1181,7 @@ class ReplaceableRouteContainerComponent {
|
|
|
1226
1181
|
}
|
|
1227
1182
|
ngOnInit() {
|
|
1228
1183
|
this.defaultComponent = this.route.snapshot.data.replaceableComponent.defaultComponent;
|
|
1229
|
-
this.componentKey = this.route.snapshot.data
|
|
1230
|
-
.replaceableComponent.key;
|
|
1184
|
+
this.componentKey = this.route.snapshot.data.replaceableComponent.key;
|
|
1231
1185
|
const component$ = this.replaceableComponents
|
|
1232
1186
|
.get$(this.componentKey)
|
|
1233
1187
|
.pipe(distinctUntilChanged());
|
|
@@ -1236,31 +1190,32 @@ class ReplaceableRouteContainerComponent {
|
|
|
1236
1190
|
});
|
|
1237
1191
|
}
|
|
1238
1192
|
}
|
|
1239
|
-
ReplaceableRouteContainerComponent
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1193
|
+
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1194
|
+
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1195
|
+
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
1196
|
+
`, isInline: true, directives: [{ type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
1198
|
+
type: Component,
|
|
1199
|
+
args: [{
|
|
1200
|
+
selector: 'abp-replaceable-route-container',
|
|
1201
|
+
template: `
|
|
1243
1202
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
1244
1203
|
`,
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
];
|
|
1248
|
-
ReplaceableRouteContainerComponent.ctorParameters = () => [
|
|
1249
|
-
{ type: ActivatedRoute },
|
|
1250
|
-
{ type: ReplaceableComponentsService },
|
|
1251
|
-
{ type: SubscriptionService }
|
|
1252
|
-
];
|
|
1204
|
+
providers: [SubscriptionService],
|
|
1205
|
+
}]
|
|
1206
|
+
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: ReplaceableComponentsService }, { type: SubscriptionService }]; } });
|
|
1253
1207
|
|
|
1254
1208
|
class RouterOutletComponent {
|
|
1255
1209
|
}
|
|
1256
|
-
RouterOutletComponent
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
]
|
|
1210
|
+
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1211
|
+
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0, template: ` <router-outlet></router-outlet> `, isInline: true, directives: [{ type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }] });
|
|
1212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
1213
|
+
type: Component,
|
|
1214
|
+
args: [{
|
|
1215
|
+
selector: 'abp-router-outlet',
|
|
1216
|
+
template: ` <router-outlet></router-outlet> `,
|
|
1217
|
+
}]
|
|
1218
|
+
}] });
|
|
1264
1219
|
|
|
1265
1220
|
// Different locales from .NET
|
|
1266
1221
|
// Key is .NET locale, value is Angular locale
|
|
@@ -1608,18 +1563,18 @@ class AutofocusDirective {
|
|
|
1608
1563
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
1609
1564
|
}
|
|
1610
1565
|
}
|
|
1611
|
-
AutofocusDirective
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
];
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
};
|
|
1566
|
+
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1567
|
+
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
|
|
1568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
1569
|
+
type: Directive,
|
|
1570
|
+
args: [{
|
|
1571
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1572
|
+
selector: '[autofocus]',
|
|
1573
|
+
}]
|
|
1574
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { delay: [{
|
|
1575
|
+
type: Input,
|
|
1576
|
+
args: ['autofocus']
|
|
1577
|
+
}] } });
|
|
1623
1578
|
|
|
1624
1579
|
class InputEventDebounceDirective {
|
|
1625
1580
|
constructor(el, subscription) {
|
|
@@ -1635,21 +1590,21 @@ class InputEventDebounceDirective {
|
|
|
1635
1590
|
});
|
|
1636
1591
|
}
|
|
1637
1592
|
}
|
|
1638
|
-
InputEventDebounceDirective
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
]
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
};
|
|
1593
|
+
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1594
|
+
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
1596
|
+
type: Directive,
|
|
1597
|
+
args: [{
|
|
1598
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1599
|
+
selector: '[input.debounce]',
|
|
1600
|
+
providers: [SubscriptionService],
|
|
1601
|
+
}]
|
|
1602
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SubscriptionService }]; }, propDecorators: { debounce: [{
|
|
1603
|
+
type: Input
|
|
1604
|
+
}], debounceEvent: [{
|
|
1605
|
+
type: Output,
|
|
1606
|
+
args: ['input.debounce']
|
|
1607
|
+
}] } });
|
|
1653
1608
|
|
|
1654
1609
|
class AbpForContext {
|
|
1655
1610
|
constructor($implicit, index, count, list) {
|
|
@@ -1712,7 +1667,6 @@ class ForDirective {
|
|
|
1712
1667
|
projectItems(items) {
|
|
1713
1668
|
if (!items.length && this.emptyRef) {
|
|
1714
1669
|
this.vcRef.clear();
|
|
1715
|
-
// tslint:disable-next-line: no-unused-expression
|
|
1716
1670
|
this.vcRef.createEmbeddedView(this.emptyRef).rootNodes;
|
|
1717
1671
|
this.isShowEmptyRef = true;
|
|
1718
1672
|
this.differ = null;
|
|
@@ -1735,7 +1689,7 @@ class ForDirective {
|
|
|
1735
1689
|
}
|
|
1736
1690
|
sortItems(items) {
|
|
1737
1691
|
if (this.orderBy) {
|
|
1738
|
-
items.sort((a, b) =>
|
|
1692
|
+
items.sort((a, b) => a[this.orderBy] > b[this.orderBy] ? 1 : a[this.orderBy] < b[this.orderBy] ? -1 : 0);
|
|
1739
1693
|
}
|
|
1740
1694
|
else {
|
|
1741
1695
|
items.sort();
|
|
@@ -1746,7 +1700,9 @@ class ForDirective {
|
|
|
1746
1700
|
if (!Array.isArray(items))
|
|
1747
1701
|
return;
|
|
1748
1702
|
const compareFn = this.compareFn;
|
|
1749
|
-
if (typeof this.filterBy !== 'undefined' &&
|
|
1703
|
+
if (typeof this.filterBy !== 'undefined' &&
|
|
1704
|
+
typeof this.filterVal !== 'undefined' &&
|
|
1705
|
+
this.filterVal !== '') {
|
|
1750
1706
|
items = items.filter(item => compareFn(item[this.filterBy], this.filterVal));
|
|
1751
1707
|
}
|
|
1752
1708
|
switch (this.orderDir) {
|
|
@@ -1764,26 +1720,38 @@ class ForDirective {
|
|
|
1764
1720
|
}
|
|
1765
1721
|
}
|
|
1766
1722
|
}
|
|
1767
|
-
ForDirective
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
]
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
}
|
|
1723
|
+
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1724
|
+
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ForDirective, selector: "[abpFor]", inputs: { items: ["abpForOf", "items"], orderBy: ["abpForOrderBy", "orderBy"], orderDir: ["abpForOrderDir", "orderDir"], filterBy: ["abpForFilterBy", "filterBy"], filterVal: ["abpForFilterVal", "filterVal"], trackBy: ["abpForTrackBy", "trackBy"], compareBy: ["abpForCompareBy", "compareBy"], emptyRef: ["abpForEmptyRef", "emptyRef"] }, usesOnChanges: true, ngImport: i0 });
|
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ForDirective, decorators: [{
|
|
1726
|
+
type: Directive,
|
|
1727
|
+
args: [{
|
|
1728
|
+
selector: '[abpFor]',
|
|
1729
|
+
}]
|
|
1730
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.IterableDiffers }]; }, propDecorators: { items: [{
|
|
1731
|
+
type: Input,
|
|
1732
|
+
args: ['abpForOf']
|
|
1733
|
+
}], orderBy: [{
|
|
1734
|
+
type: Input,
|
|
1735
|
+
args: ['abpForOrderBy']
|
|
1736
|
+
}], orderDir: [{
|
|
1737
|
+
type: Input,
|
|
1738
|
+
args: ['abpForOrderDir']
|
|
1739
|
+
}], filterBy: [{
|
|
1740
|
+
type: Input,
|
|
1741
|
+
args: ['abpForFilterBy']
|
|
1742
|
+
}], filterVal: [{
|
|
1743
|
+
type: Input,
|
|
1744
|
+
args: ['abpForFilterVal']
|
|
1745
|
+
}], trackBy: [{
|
|
1746
|
+
type: Input,
|
|
1747
|
+
args: ['abpForTrackBy']
|
|
1748
|
+
}], compareBy: [{
|
|
1749
|
+
type: Input,
|
|
1750
|
+
args: ['abpForCompareBy']
|
|
1751
|
+
}], emptyRef: [{
|
|
1752
|
+
type: Input,
|
|
1753
|
+
args: ['abpForEmptyRef']
|
|
1754
|
+
}] } });
|
|
1787
1755
|
|
|
1788
1756
|
class FormSubmitDirective {
|
|
1789
1757
|
constructor(formGroupDirective, host, cdRef, subscription) {
|
|
@@ -1815,24 +1783,24 @@ class FormSubmitDirective {
|
|
|
1815
1783
|
this.cdRef.detectChanges();
|
|
1816
1784
|
}
|
|
1817
1785
|
}
|
|
1818
|
-
FormSubmitDirective
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
]
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
};
|
|
1786
|
+
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1787
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1789
|
+
type: Directive,
|
|
1790
|
+
args: [{
|
|
1791
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1792
|
+
selector: 'form[ngSubmit][formGroup]',
|
|
1793
|
+
providers: [SubscriptionService],
|
|
1794
|
+
}]
|
|
1795
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormGroupDirective, decorators: [{
|
|
1796
|
+
type: Self
|
|
1797
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: SubscriptionService }]; }, propDecorators: { debounce: [{
|
|
1798
|
+
type: Input
|
|
1799
|
+
}], notValidateOnSubmit: [{
|
|
1800
|
+
type: Input
|
|
1801
|
+
}], ngSubmit: [{
|
|
1802
|
+
type: Output
|
|
1803
|
+
}] } });
|
|
1836
1804
|
function setDirty(controls) {
|
|
1837
1805
|
if (Array.isArray(controls)) {
|
|
1838
1806
|
controls.forEach(group => {
|
|
@@ -1855,15 +1823,15 @@ class InitDirective {
|
|
|
1855
1823
|
this.init.emit(this.elRef);
|
|
1856
1824
|
}
|
|
1857
1825
|
}
|
|
1858
|
-
InitDirective
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
];
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
};
|
|
1826
|
+
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1827
|
+
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
|
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: InitDirective, decorators: [{
|
|
1829
|
+
type: Directive,
|
|
1830
|
+
args: [{ selector: '[abpInit]' }]
|
|
1831
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { init: [{
|
|
1832
|
+
type: Output,
|
|
1833
|
+
args: ['abpInit']
|
|
1834
|
+
}] } });
|
|
1867
1835
|
|
|
1868
1836
|
class PermissionDirective {
|
|
1869
1837
|
constructor(elRef, renderer, templateRef, vcRef, permissionService, cdRef) {
|
|
@@ -1882,26 +1850,12 @@ class PermissionDirective {
|
|
|
1882
1850
|
.getGrantedPolicy$(this.condition)
|
|
1883
1851
|
.pipe(distinctUntilChanged())
|
|
1884
1852
|
.subscribe(isGranted => {
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
this.initAttribute(isGranted);
|
|
1853
|
+
this.vcRef.clear();
|
|
1854
|
+
if (isGranted)
|
|
1855
|
+
this.vcRef.createEmbeddedView(this.templateRef);
|
|
1889
1856
|
this.cdRef.detectChanges();
|
|
1890
1857
|
});
|
|
1891
1858
|
}
|
|
1892
|
-
initStructural(isGranted) {
|
|
1893
|
-
this.vcRef.clear();
|
|
1894
|
-
if (isGranted)
|
|
1895
|
-
this.vcRef.createEmbeddedView(this.templateRef);
|
|
1896
|
-
}
|
|
1897
|
-
/**
|
|
1898
|
-
* @deprecated Will be deleted in v5.0
|
|
1899
|
-
*/
|
|
1900
|
-
initAttribute(isGranted) {
|
|
1901
|
-
if (!isGranted) {
|
|
1902
|
-
this.renderer.removeChild(this.elRef.nativeElement.parentElement, this.elRef.nativeElement);
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
1859
|
ngOnDestroy() {
|
|
1906
1860
|
if (this.subscription)
|
|
1907
1861
|
this.subscription.unsubscribe();
|
|
@@ -1910,22 +1864,19 @@ class PermissionDirective {
|
|
|
1910
1864
|
this.check();
|
|
1911
1865
|
}
|
|
1912
1866
|
}
|
|
1913
|
-
PermissionDirective
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
];
|
|
1926
|
-
PermissionDirective.propDecorators = {
|
|
1927
|
-
condition: [{ type: Input, args: ['abpPermission',] }]
|
|
1928
|
-
};
|
|
1867
|
+
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1868
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
|
|
1869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1870
|
+
type: Directive,
|
|
1871
|
+
args: [{
|
|
1872
|
+
selector: '[abpPermission]',
|
|
1873
|
+
}]
|
|
1874
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.TemplateRef, decorators: [{
|
|
1875
|
+
type: Optional
|
|
1876
|
+
}] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { condition: [{
|
|
1877
|
+
type: Input,
|
|
1878
|
+
args: ['abpPermission']
|
|
1879
|
+
}] } });
|
|
1929
1880
|
|
|
1930
1881
|
class ReplaceableTemplateDirective {
|
|
1931
1882
|
constructor(injector, templateRef, cfRes, vcRef, replaceableComponents, subscription) {
|
|
@@ -1935,7 +1886,10 @@ class ReplaceableTemplateDirective {
|
|
|
1935
1886
|
this.vcRef = vcRef;
|
|
1936
1887
|
this.replaceableComponents = replaceableComponents;
|
|
1937
1888
|
this.subscription = subscription;
|
|
1938
|
-
this.providedData = {
|
|
1889
|
+
this.providedData = {
|
|
1890
|
+
inputs: {},
|
|
1891
|
+
outputs: {},
|
|
1892
|
+
};
|
|
1939
1893
|
this.context = {};
|
|
1940
1894
|
this.defaultComponentSubscriptions = {};
|
|
1941
1895
|
this.initialized = false;
|
|
@@ -1972,7 +1926,8 @@ class ReplaceableTemplateDirective {
|
|
|
1972
1926
|
});
|
|
1973
1927
|
}
|
|
1974
1928
|
ngOnChanges(changes) {
|
|
1975
|
-
|
|
1929
|
+
var _a, _b;
|
|
1930
|
+
if (((_b = (_a = changes === null || changes === void 0 ? void 0 : changes.data) === null || _a === void 0 ? void 0 : _a.currentValue) === null || _b === void 0 ? void 0 : _b.inputs) && this.defaultComponentRef) {
|
|
1976
1931
|
this.setDefaultComponentInputs();
|
|
1977
1932
|
}
|
|
1978
1933
|
}
|
|
@@ -1981,7 +1936,7 @@ class ReplaceableTemplateDirective {
|
|
|
1981
1936
|
return;
|
|
1982
1937
|
if (this.data.inputs) {
|
|
1983
1938
|
for (const key in this.data.inputs) {
|
|
1984
|
-
if (this.data.inputs
|
|
1939
|
+
if (Object.prototype.hasOwnProperty.call(this.data.inputs, key)) {
|
|
1985
1940
|
if (!compare(this.defaultComponentRef[key], this.data.inputs[key].value)) {
|
|
1986
1941
|
this.defaultComponentRef[key] = this.data.inputs[key].value;
|
|
1987
1942
|
}
|
|
@@ -1990,7 +1945,7 @@ class ReplaceableTemplateDirective {
|
|
|
1990
1945
|
}
|
|
1991
1946
|
if (this.data.outputs) {
|
|
1992
1947
|
for (const key in this.data.outputs) {
|
|
1993
|
-
if (this.data.outputs
|
|
1948
|
+
if (Object.prototype.hasOwnProperty.call(this.data.outputs, key)) {
|
|
1994
1949
|
if (!this.defaultComponentSubscriptions[key]) {
|
|
1995
1950
|
this.defaultComponentSubscriptions[key] = this.defaultComponentRef[key].subscribe(value => {
|
|
1996
1951
|
this.data.outputs[key](value);
|
|
@@ -2019,20 +1974,18 @@ class ReplaceableTemplateDirective {
|
|
|
2019
1974
|
this.defaultComponentRef = null;
|
|
2020
1975
|
}
|
|
2021
1976
|
}
|
|
2022
|
-
ReplaceableTemplateDirective
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
]
|
|
2033
|
-
|
|
2034
|
-
data: [{ type: Input, args: ['abpReplaceableTemplate',] }]
|
|
2035
|
-
};
|
|
1977
|
+
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableTemplateDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1978
|
+
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 });
|
|
1979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
1980
|
+
type: Directive,
|
|
1981
|
+
args: [{
|
|
1982
|
+
selector: '[abpReplaceableTemplate]',
|
|
1983
|
+
providers: [SubscriptionService],
|
|
1984
|
+
}]
|
|
1985
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: ReplaceableComponentsService }, { type: SubscriptionService }]; }, propDecorators: { data: [{
|
|
1986
|
+
type: Input,
|
|
1987
|
+
args: ['abpReplaceableTemplate']
|
|
1988
|
+
}] } });
|
|
2036
1989
|
|
|
2037
1990
|
class StopPropagationDirective {
|
|
2038
1991
|
constructor(el, subscription) {
|
|
@@ -2047,79 +2000,19 @@ class StopPropagationDirective {
|
|
|
2047
2000
|
});
|
|
2048
2001
|
}
|
|
2049
2002
|
}
|
|
2050
|
-
StopPropagationDirective
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
]
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
};
|
|
2064
|
-
|
|
2065
|
-
/**
|
|
2066
|
-
*
|
|
2067
|
-
* @deprecated To be deleted in v5.0
|
|
2068
|
-
*/
|
|
2069
|
-
class VisibilityDirective {
|
|
2070
|
-
constructor(elRef, renderer) {
|
|
2071
|
-
this.elRef = elRef;
|
|
2072
|
-
this.renderer = renderer;
|
|
2073
|
-
this.completed$ = new Subject();
|
|
2074
|
-
}
|
|
2075
|
-
ngAfterViewInit() {
|
|
2076
|
-
if (!this.focusedElement && this.elRef) {
|
|
2077
|
-
this.focusedElement = this.elRef.nativeElement;
|
|
2078
|
-
}
|
|
2079
|
-
let observer;
|
|
2080
|
-
observer = new MutationObserver(mutations => {
|
|
2081
|
-
mutations.forEach(mutation => {
|
|
2082
|
-
if (!mutation.target)
|
|
2083
|
-
return;
|
|
2084
|
-
const htmlNodes = snq(() => Array.from(mutation.target.childNodes).filter(node => node instanceof HTMLElement), []);
|
|
2085
|
-
if (!htmlNodes.length) {
|
|
2086
|
-
this.removeFromDOM();
|
|
2087
|
-
}
|
|
2088
|
-
});
|
|
2089
|
-
});
|
|
2090
|
-
observer.observe(this.focusedElement, {
|
|
2091
|
-
childList: true,
|
|
2092
|
-
});
|
|
2093
|
-
setTimeout(() => {
|
|
2094
|
-
const htmlNodes = snq(() => Array.from(this.focusedElement.childNodes).filter(node => node instanceof HTMLElement), []);
|
|
2095
|
-
if (!htmlNodes.length)
|
|
2096
|
-
this.removeFromDOM();
|
|
2097
|
-
}, 0);
|
|
2098
|
-
this.completed$.subscribe(() => observer.disconnect());
|
|
2099
|
-
}
|
|
2100
|
-
disconnect() {
|
|
2101
|
-
this.completed$.next();
|
|
2102
|
-
this.completed$.complete();
|
|
2103
|
-
}
|
|
2104
|
-
removeFromDOM() {
|
|
2105
|
-
if (!this.elRef.nativeElement)
|
|
2106
|
-
return;
|
|
2107
|
-
this.renderer.removeChild(this.elRef.nativeElement.parentElement, this.elRef.nativeElement);
|
|
2108
|
-
this.disconnect();
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
VisibilityDirective.decorators = [
|
|
2112
|
-
{ type: Directive, args: [{
|
|
2113
|
-
selector: '[abpVisibility]',
|
|
2114
|
-
},] }
|
|
2115
|
-
];
|
|
2116
|
-
VisibilityDirective.ctorParameters = () => [
|
|
2117
|
-
{ type: ElementRef, decorators: [{ type: Optional }] },
|
|
2118
|
-
{ type: Renderer2 }
|
|
2119
|
-
];
|
|
2120
|
-
VisibilityDirective.propDecorators = {
|
|
2121
|
-
focusedElement: [{ type: Input, args: ['abpVisibility',] }]
|
|
2122
|
-
};
|
|
2003
|
+
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2004
|
+
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 });
|
|
2005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
2006
|
+
type: Directive,
|
|
2007
|
+
args: [{
|
|
2008
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2009
|
+
selector: '[click.stop]',
|
|
2010
|
+
providers: [SubscriptionService],
|
|
2011
|
+
}]
|
|
2012
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SubscriptionService }]; }, propDecorators: { stopPropEvent: [{
|
|
2013
|
+
type: Output,
|
|
2014
|
+
args: ['click.stop']
|
|
2015
|
+
}] } });
|
|
2123
2016
|
|
|
2124
2017
|
class OAuthConfigurationHandler {
|
|
2125
2018
|
constructor(oAuthService, environmentService, options) {
|
|
@@ -2137,17 +2030,17 @@ class OAuthConfigurationHandler {
|
|
|
2137
2030
|
});
|
|
2138
2031
|
}
|
|
2139
2032
|
}
|
|
2140
|
-
OAuthConfigurationHandler.ɵ
|
|
2141
|
-
OAuthConfigurationHandler
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
];
|
|
2033
|
+
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, deps: [{ token: i1$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2034
|
+
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
|
|
2036
|
+
type: Injectable,
|
|
2037
|
+
args: [{
|
|
2038
|
+
providedIn: 'root',
|
|
2039
|
+
}]
|
|
2040
|
+
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: EnvironmentService }, { type: undefined, decorators: [{
|
|
2041
|
+
type: Inject,
|
|
2042
|
+
args: [CORE_OPTIONS]
|
|
2043
|
+
}] }]; } });
|
|
2151
2044
|
|
|
2152
2045
|
class RoutesHandler {
|
|
2153
2046
|
constructor(routes, router) {
|
|
@@ -2169,16 +2062,16 @@ class RoutesHandler {
|
|
|
2169
2062
|
});
|
|
2170
2063
|
}
|
|
2171
2064
|
}
|
|
2172
|
-
RoutesHandler.ɵ
|
|
2173
|
-
RoutesHandler
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
];
|
|
2065
|
+
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2066
|
+
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
|
|
2067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
2068
|
+
type: Injectable,
|
|
2069
|
+
args: [{
|
|
2070
|
+
providedIn: 'root',
|
|
2071
|
+
}]
|
|
2072
|
+
}], ctorParameters: function () { return [{ type: RoutesService }, { type: i1$1.Router, decorators: [{
|
|
2073
|
+
type: Optional
|
|
2074
|
+
}] }]; } });
|
|
2182
2075
|
function flatRoutes(routes, parent) {
|
|
2183
2076
|
if (!routes)
|
|
2184
2077
|
return [];
|
|
@@ -2266,15 +2159,14 @@ class HttpWaitService {
|
|
|
2266
2159
|
return endpoint === request.endpoint && method === request.method;
|
|
2267
2160
|
}
|
|
2268
2161
|
}
|
|
2269
|
-
HttpWaitService.ɵ
|
|
2270
|
-
HttpWaitService
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
];
|
|
2162
|
+
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2163
|
+
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
|
|
2164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
2165
|
+
type: Injectable,
|
|
2166
|
+
args: [{
|
|
2167
|
+
providedIn: 'root',
|
|
2168
|
+
}]
|
|
2169
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2278
2170
|
|
|
2279
2171
|
const TENANT_KEY = new InjectionToken('TENANT_KEY');
|
|
2280
2172
|
|
|
@@ -2310,18 +2202,17 @@ class ApiInterceptor {
|
|
|
2310
2202
|
return headers;
|
|
2311
2203
|
}
|
|
2312
2204
|
}
|
|
2313
|
-
ApiInterceptor.ɵ
|
|
2314
|
-
ApiInterceptor
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
];
|
|
2205
|
+
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, deps: [{ token: i1$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2206
|
+
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
|
|
2207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
2208
|
+
type: Injectable,
|
|
2209
|
+
args: [{
|
|
2210
|
+
providedIn: 'root',
|
|
2211
|
+
}]
|
|
2212
|
+
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: SessionStateService }, { type: HttpWaitService }, { type: undefined, decorators: [{
|
|
2213
|
+
type: Inject,
|
|
2214
|
+
args: [TENANT_KEY]
|
|
2215
|
+
}] }]; } });
|
|
2325
2216
|
|
|
2326
2217
|
class LocalizationPipe {
|
|
2327
2218
|
constructor(localization) {
|
|
@@ -2331,24 +2222,30 @@ class LocalizationPipe {
|
|
|
2331
2222
|
return this.localization.instant(value, ...interpolateParams.reduce((acc, val) => (Array.isArray(val) ? [...acc, ...val] : [...acc, val]), []));
|
|
2332
2223
|
}
|
|
2333
2224
|
}
|
|
2334
|
-
LocalizationPipe
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2225
|
+
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2226
|
+
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
|
|
2227
|
+
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe });
|
|
2228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
2229
|
+
type: Injectable
|
|
2230
|
+
}, {
|
|
2231
|
+
type: Pipe,
|
|
2232
|
+
args: [{
|
|
2233
|
+
name: 'abpLocalization',
|
|
2234
|
+
}]
|
|
2235
|
+
}], ctorParameters: function () { return [{ type: LocalizationService }]; } });
|
|
2343
2236
|
|
|
2344
2237
|
class LocalizationModule {
|
|
2345
2238
|
}
|
|
2346
|
-
LocalizationModule
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2239
|
+
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2240
|
+
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
|
|
2241
|
+
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule });
|
|
2242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
2243
|
+
type: NgModule,
|
|
2244
|
+
args: [{
|
|
2245
|
+
exports: [LocalizationPipe],
|
|
2246
|
+
declarations: [LocalizationPipe],
|
|
2247
|
+
}]
|
|
2248
|
+
}] });
|
|
2352
2249
|
|
|
2353
2250
|
class SortPipe {
|
|
2354
2251
|
transform(value, sortOrder = 'asc', sortKey) {
|
|
@@ -2385,12 +2282,39 @@ class SortPipe {
|
|
|
2385
2282
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
2386
2283
|
}
|
|
2387
2284
|
}
|
|
2388
|
-
SortPipe
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2285
|
+
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2286
|
+
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, name: "abpSort" });
|
|
2287
|
+
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe });
|
|
2288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: SortPipe, decorators: [{
|
|
2289
|
+
type: Injectable
|
|
2290
|
+
}, {
|
|
2291
|
+
type: Pipe,
|
|
2292
|
+
args: [{
|
|
2293
|
+
name: 'abpSort',
|
|
2294
|
+
}]
|
|
2295
|
+
}] });
|
|
2296
|
+
|
|
2297
|
+
const COOKIE_LANGUAGE_KEY = new InjectionToken('COOKIE_LANGUAGE_KEY', {
|
|
2298
|
+
factory: () => '.AspNetCore.Culture',
|
|
2299
|
+
});
|
|
2300
|
+
|
|
2301
|
+
function setLanguageToCookie(injector) {
|
|
2302
|
+
return () => {
|
|
2303
|
+
const sessionState = injector.get(SessionStateService);
|
|
2304
|
+
const document = injector.get(DOCUMENT);
|
|
2305
|
+
const cookieLanguageKey = injector.get(COOKIE_LANGUAGE_KEY);
|
|
2306
|
+
sessionState.getLanguage$().subscribe(language => {
|
|
2307
|
+
const cookieValue = encodeURIComponent(`c=${language}|uic=${language}`);
|
|
2308
|
+
document.cookie = `${cookieLanguageKey}=${cookieValue}`;
|
|
2309
|
+
});
|
|
2310
|
+
};
|
|
2311
|
+
}
|
|
2312
|
+
const CookieLanguageProvider = {
|
|
2313
|
+
provide: APP_INITIALIZER,
|
|
2314
|
+
useFactory: setLanguageToCookie,
|
|
2315
|
+
deps: [Injector],
|
|
2316
|
+
multi: true,
|
|
2317
|
+
};
|
|
2394
2318
|
|
|
2395
2319
|
class LocaleId extends String {
|
|
2396
2320
|
constructor(localizationService) {
|
|
@@ -2411,96 +2335,6 @@ const LocaleProvider = {
|
|
|
2411
2335
|
deps: [LocalizationService],
|
|
2412
2336
|
};
|
|
2413
2337
|
|
|
2414
|
-
class ProfileService {
|
|
2415
|
-
constructor(rest) {
|
|
2416
|
-
this.rest = rest;
|
|
2417
|
-
this.apiName = 'AbpIdentity';
|
|
2418
|
-
}
|
|
2419
|
-
get() {
|
|
2420
|
-
const request = {
|
|
2421
|
-
method: 'GET',
|
|
2422
|
-
url: '/api/identity/my-profile',
|
|
2423
|
-
};
|
|
2424
|
-
return this.rest.request(request, { apiName: this.apiName });
|
|
2425
|
-
}
|
|
2426
|
-
update(body) {
|
|
2427
|
-
const request = {
|
|
2428
|
-
method: 'PUT',
|
|
2429
|
-
url: '/api/identity/my-profile',
|
|
2430
|
-
body,
|
|
2431
|
-
};
|
|
2432
|
-
return this.rest.request(request, {
|
|
2433
|
-
apiName: this.apiName,
|
|
2434
|
-
});
|
|
2435
|
-
}
|
|
2436
|
-
changePassword(body, skipHandleError = false) {
|
|
2437
|
-
const request = {
|
|
2438
|
-
method: 'POST',
|
|
2439
|
-
url: '/api/identity/my-profile/change-password',
|
|
2440
|
-
body,
|
|
2441
|
-
};
|
|
2442
|
-
return this.rest.request(request, {
|
|
2443
|
-
skipHandleError,
|
|
2444
|
-
apiName: this.apiName,
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
ProfileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(i0.ɵɵinject(RestService)); }, token: ProfileService, providedIn: "root" });
|
|
2449
|
-
ProfileService.decorators = [
|
|
2450
|
-
{ type: Injectable, args: [{
|
|
2451
|
-
providedIn: 'root',
|
|
2452
|
-
},] }
|
|
2453
|
-
];
|
|
2454
|
-
ProfileService.ctorParameters = () => [
|
|
2455
|
-
{ type: RestService }
|
|
2456
|
-
];
|
|
2457
|
-
|
|
2458
|
-
let ProfileState = class ProfileState {
|
|
2459
|
-
constructor(profileService) {
|
|
2460
|
-
this.profileService = profileService;
|
|
2461
|
-
}
|
|
2462
|
-
static getProfile({ profile }) {
|
|
2463
|
-
return profile;
|
|
2464
|
-
}
|
|
2465
|
-
getProfile({ patchState }) {
|
|
2466
|
-
return this.profileService.get().pipe(tap(profile => patchState({
|
|
2467
|
-
profile,
|
|
2468
|
-
})));
|
|
2469
|
-
}
|
|
2470
|
-
updateProfile({ patchState }, { payload }) {
|
|
2471
|
-
return this.profileService.update(payload).pipe(tap(profile => patchState({
|
|
2472
|
-
profile,
|
|
2473
|
-
})));
|
|
2474
|
-
}
|
|
2475
|
-
changePassword(_, { payload }) {
|
|
2476
|
-
return this.profileService.changePassword(payload, true);
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
ProfileState.decorators = [
|
|
2480
|
-
{ type: Injectable }
|
|
2481
|
-
];
|
|
2482
|
-
ProfileState.ctorParameters = () => [
|
|
2483
|
-
{ type: ProfileService }
|
|
2484
|
-
];
|
|
2485
|
-
__decorate([
|
|
2486
|
-
Action(GetProfile)
|
|
2487
|
-
], ProfileState.prototype, "getProfile", null);
|
|
2488
|
-
__decorate([
|
|
2489
|
-
Action(UpdateProfile)
|
|
2490
|
-
], ProfileState.prototype, "updateProfile", null);
|
|
2491
|
-
__decorate([
|
|
2492
|
-
Action(ChangePassword)
|
|
2493
|
-
], ProfileState.prototype, "changePassword", null);
|
|
2494
|
-
__decorate([
|
|
2495
|
-
Selector()
|
|
2496
|
-
], ProfileState, "getProfile", null);
|
|
2497
|
-
ProfileState = __decorate([
|
|
2498
|
-
State({
|
|
2499
|
-
name: 'ProfileState',
|
|
2500
|
-
defaults: {},
|
|
2501
|
-
})
|
|
2502
|
-
], ProfileState);
|
|
2503
|
-
|
|
2504
2338
|
const cookieKey = 'rememberMe';
|
|
2505
2339
|
const storageKey = 'passwordFlow';
|
|
2506
2340
|
function pipeToLogin(params, injector) {
|
|
@@ -2542,8 +2376,11 @@ const oAuthStorage = localStorage;
|
|
|
2542
2376
|
class AuthFlowStrategy {
|
|
2543
2377
|
constructor(injector) {
|
|
2544
2378
|
this.injector = injector;
|
|
2545
|
-
this.catchError = err =>
|
|
2546
|
-
|
|
2379
|
+
this.catchError = err => {
|
|
2380
|
+
this.httpErrorReporter.reportError(err);
|
|
2381
|
+
return of(null);
|
|
2382
|
+
};
|
|
2383
|
+
this.httpErrorReporter = injector.get(HttpErrorReporterService);
|
|
2547
2384
|
this.environment = injector.get(EnvironmentService);
|
|
2548
2385
|
this.configState = injector.get(ConfigStateService);
|
|
2549
2386
|
this.oAuthService = injector.get(OAuthService);
|
|
@@ -2750,12 +2587,6 @@ class AuthService {
|
|
|
2750
2587
|
logout(queryParams) {
|
|
2751
2588
|
return this.strategy.logout(queryParams);
|
|
2752
2589
|
}
|
|
2753
|
-
/**
|
|
2754
|
-
* @deprecated Use navigateToLogin method instead. To be deleted in v5.0
|
|
2755
|
-
*/
|
|
2756
|
-
initLogin() {
|
|
2757
|
-
this.strategy.navigateToLogin();
|
|
2758
|
-
}
|
|
2759
2590
|
navigateToLogin(queryParams) {
|
|
2760
2591
|
this.strategy.navigateToLogin(queryParams);
|
|
2761
2592
|
}
|
|
@@ -2763,15 +2594,14 @@ class AuthService {
|
|
|
2763
2594
|
return this.strategy.login(params);
|
|
2764
2595
|
}
|
|
2765
2596
|
}
|
|
2766
|
-
AuthService.ɵ
|
|
2767
|
-
AuthService
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
];
|
|
2597
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2598
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
2599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthService, decorators: [{
|
|
2600
|
+
type: Injectable,
|
|
2601
|
+
args: [{
|
|
2602
|
+
providedIn: 'root',
|
|
2603
|
+
}]
|
|
2604
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2775
2605
|
|
|
2776
2606
|
const APP_INIT_ERROR_HANDLERS = new InjectionToken('APP_INIT_ERROR_HANDLERS');
|
|
2777
2607
|
|
|
@@ -2782,10 +2612,13 @@ function getRemoteEnv(injector, environment) {
|
|
|
2782
2612
|
if (!url)
|
|
2783
2613
|
return Promise.resolve();
|
|
2784
2614
|
const http = injector.get(HttpClient);
|
|
2785
|
-
const
|
|
2615
|
+
const httpErrorReporter = injector.get(HttpErrorReporterService);
|
|
2786
2616
|
return http
|
|
2787
2617
|
.request(method, url, { headers })
|
|
2788
|
-
.pipe(catchError(err =>
|
|
2618
|
+
.pipe(catchError(err => {
|
|
2619
|
+
httpErrorReporter.reportError(err);
|
|
2620
|
+
return of(null);
|
|
2621
|
+
}), // TODO: Consider get handle function from a provider
|
|
2789
2622
|
tap(env => environmentService.setState(mergeEnvironments(environment, env, remoteEnv))))
|
|
2790
2623
|
.toPromise();
|
|
2791
2624
|
}
|
|
@@ -2818,15 +2651,14 @@ class AbpTenantService {
|
|
|
2818
2651
|
}, { apiName: this.apiName });
|
|
2819
2652
|
}
|
|
2820
2653
|
}
|
|
2821
|
-
AbpTenantService.ɵ
|
|
2822
|
-
AbpTenantService
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
];
|
|
2654
|
+
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2655
|
+
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
|
|
2656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
2657
|
+
type: Injectable,
|
|
2658
|
+
args: [{
|
|
2659
|
+
providedIn: 'root',
|
|
2660
|
+
}]
|
|
2661
|
+
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
2830
2662
|
|
|
2831
2663
|
class MultiTenancyService {
|
|
2832
2664
|
constructor(restService, sessionState, tenantService, configStateService, tenantKey) {
|
|
@@ -2843,22 +2675,6 @@ class MultiTenancyService {
|
|
|
2843
2675
|
return this.configStateService.refreshAppState().pipe(map(_ => tenant));
|
|
2844
2676
|
};
|
|
2845
2677
|
}
|
|
2846
|
-
/**
|
|
2847
|
-
* @deprecated Use AbpTenantService.findTenantByName method instead. To be deleted in v5.0.
|
|
2848
|
-
*/
|
|
2849
|
-
findTenantByName(name, headers) {
|
|
2850
|
-
return this.restService.request({
|
|
2851
|
-
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
|
|
2852
|
-
method: 'GET',
|
|
2853
|
-
headers,
|
|
2854
|
-
}, { apiName: this.apiName });
|
|
2855
|
-
}
|
|
2856
|
-
/**
|
|
2857
|
-
* @deprecated Use AbpTenantService.findTenantById method instead. To be deleted in v5.0.
|
|
2858
|
-
*/
|
|
2859
|
-
findTenantById(id, headers) {
|
|
2860
|
-
return this.restService.request({ url: `/api/abp/multi-tenancy/tenants/by-id/${id}`, method: 'GET', headers }, { apiName: this.apiName });
|
|
2861
|
-
}
|
|
2862
2678
|
setTenantByName(tenantName) {
|
|
2863
2679
|
return this.tenantService
|
|
2864
2680
|
.findTenantByName(tenantName, { [this.tenantKey]: '' })
|
|
@@ -2870,17 +2686,15 @@ class MultiTenancyService {
|
|
|
2870
2686
|
.pipe(switchMap(this.setTenantToState));
|
|
2871
2687
|
}
|
|
2872
2688
|
}
|
|
2873
|
-
MultiTenancyService.ɵ
|
|
2874
|
-
MultiTenancyService
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
{ type: String, decorators: [{ type: Inject, args: [TENANT_KEY,] }] }
|
|
2883
|
-
];
|
|
2689
|
+
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2690
|
+
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
|
|
2691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
2692
|
+
type: Injectable,
|
|
2693
|
+
args: [{ providedIn: 'root' }]
|
|
2694
|
+
}], ctorParameters: function () { return [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
|
|
2695
|
+
type: Inject,
|
|
2696
|
+
args: [TENANT_KEY]
|
|
2697
|
+
}] }]; } });
|
|
2884
2698
|
|
|
2885
2699
|
const tenancyPlaceholder = '{0}';
|
|
2886
2700
|
function getCurrentTenancyName(appBaseUrl) {
|
|
@@ -3020,84 +2834,146 @@ function storageFactory() {
|
|
|
3020
2834
|
*/
|
|
3021
2835
|
class BaseCoreModule {
|
|
3022
2836
|
}
|
|
3023
|
-
BaseCoreModule
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
2837
|
+
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2838
|
+
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
2839
|
+
AutofocusDirective,
|
|
2840
|
+
DynamicLayoutComponent,
|
|
2841
|
+
ForDirective,
|
|
2842
|
+
FormSubmitDirective,
|
|
2843
|
+
InitDirective,
|
|
2844
|
+
InputEventDebounceDirective,
|
|
2845
|
+
PermissionDirective,
|
|
2846
|
+
ReplaceableRouteContainerComponent,
|
|
2847
|
+
ReplaceableTemplateDirective,
|
|
2848
|
+
RouterOutletComponent,
|
|
2849
|
+
SortPipe,
|
|
2850
|
+
StopPropagationDirective], imports: [OAuthModule,
|
|
2851
|
+
CommonModule,
|
|
2852
|
+
HttpClientModule,
|
|
2853
|
+
FormsModule,
|
|
2854
|
+
ReactiveFormsModule,
|
|
2855
|
+
RouterModule,
|
|
2856
|
+
LocalizationModule], exports: [CommonModule,
|
|
2857
|
+
HttpClientModule,
|
|
2858
|
+
FormsModule,
|
|
2859
|
+
ReactiveFormsModule,
|
|
2860
|
+
RouterModule,
|
|
2861
|
+
LocalizationModule,
|
|
2862
|
+
AbstractNgModelComponent,
|
|
2863
|
+
AutofocusDirective,
|
|
2864
|
+
DynamicLayoutComponent,
|
|
2865
|
+
ForDirective,
|
|
2866
|
+
FormSubmitDirective,
|
|
2867
|
+
InitDirective,
|
|
2868
|
+
InputEventDebounceDirective,
|
|
2869
|
+
PermissionDirective,
|
|
2870
|
+
ReplaceableRouteContainerComponent,
|
|
2871
|
+
ReplaceableTemplateDirective,
|
|
2872
|
+
RouterOutletComponent,
|
|
2873
|
+
SortPipe,
|
|
2874
|
+
StopPropagationDirective] });
|
|
2875
|
+
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
2876
|
+
OAuthModule,
|
|
2877
|
+
CommonModule,
|
|
2878
|
+
HttpClientModule,
|
|
2879
|
+
FormsModule,
|
|
2880
|
+
ReactiveFormsModule,
|
|
2881
|
+
RouterModule,
|
|
2882
|
+
LocalizationModule,
|
|
2883
|
+
], CommonModule,
|
|
2884
|
+
HttpClientModule,
|
|
2885
|
+
FormsModule,
|
|
2886
|
+
ReactiveFormsModule,
|
|
2887
|
+
RouterModule,
|
|
2888
|
+
LocalizationModule] });
|
|
2889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
2890
|
+
type: NgModule,
|
|
2891
|
+
args: [{
|
|
2892
|
+
exports: [
|
|
2893
|
+
CommonModule,
|
|
2894
|
+
HttpClientModule,
|
|
2895
|
+
FormsModule,
|
|
2896
|
+
ReactiveFormsModule,
|
|
2897
|
+
RouterModule,
|
|
2898
|
+
LocalizationModule,
|
|
2899
|
+
AbstractNgModelComponent,
|
|
2900
|
+
AutofocusDirective,
|
|
2901
|
+
DynamicLayoutComponent,
|
|
2902
|
+
ForDirective,
|
|
2903
|
+
FormSubmitDirective,
|
|
2904
|
+
InitDirective,
|
|
2905
|
+
InputEventDebounceDirective,
|
|
2906
|
+
PermissionDirective,
|
|
2907
|
+
ReplaceableRouteContainerComponent,
|
|
2908
|
+
ReplaceableTemplateDirective,
|
|
2909
|
+
RouterOutletComponent,
|
|
2910
|
+
SortPipe,
|
|
2911
|
+
StopPropagationDirective,
|
|
2912
|
+
],
|
|
2913
|
+
imports: [
|
|
2914
|
+
OAuthModule,
|
|
2915
|
+
CommonModule,
|
|
2916
|
+
HttpClientModule,
|
|
2917
|
+
FormsModule,
|
|
2918
|
+
ReactiveFormsModule,
|
|
2919
|
+
RouterModule,
|
|
2920
|
+
LocalizationModule,
|
|
2921
|
+
],
|
|
2922
|
+
declarations: [
|
|
2923
|
+
AbstractNgModelComponent,
|
|
2924
|
+
AutofocusDirective,
|
|
2925
|
+
DynamicLayoutComponent,
|
|
2926
|
+
ForDirective,
|
|
2927
|
+
FormSubmitDirective,
|
|
2928
|
+
InitDirective,
|
|
2929
|
+
InputEventDebounceDirective,
|
|
2930
|
+
PermissionDirective,
|
|
2931
|
+
ReplaceableRouteContainerComponent,
|
|
2932
|
+
ReplaceableTemplateDirective,
|
|
2933
|
+
RouterOutletComponent,
|
|
2934
|
+
SortPipe,
|
|
2935
|
+
StopPropagationDirective,
|
|
2936
|
+
],
|
|
2937
|
+
providers: [LocalizationPipe],
|
|
2938
|
+
entryComponents: [
|
|
2939
|
+
RouterOutletComponent,
|
|
2940
|
+
DynamicLayoutComponent,
|
|
2941
|
+
ReplaceableRouteContainerComponent,
|
|
2942
|
+
],
|
|
2943
|
+
}]
|
|
2944
|
+
}] });
|
|
3080
2945
|
/**
|
|
3081
2946
|
* RootCoreModule is the module that will be used at root level
|
|
3082
2947
|
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3083
2948
|
*/
|
|
3084
2949
|
class RootCoreModule {
|
|
3085
2950
|
}
|
|
3086
|
-
RootCoreModule
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
]
|
|
2951
|
+
RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2952
|
+
RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1$3.OAuthModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
|
|
2953
|
+
RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, imports: [[
|
|
2954
|
+
BaseCoreModule,
|
|
2955
|
+
LocalizationModule,
|
|
2956
|
+
OAuthModule.forRoot(),
|
|
2957
|
+
HttpClientXsrfModule.withOptions({
|
|
2958
|
+
cookieName: 'XSRF-TOKEN',
|
|
2959
|
+
headerName: 'RequestVerificationToken',
|
|
2960
|
+
}),
|
|
2961
|
+
], BaseCoreModule, LocalizationModule] });
|
|
2962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
2963
|
+
type: NgModule,
|
|
2964
|
+
args: [{
|
|
2965
|
+
exports: [BaseCoreModule, LocalizationModule],
|
|
2966
|
+
imports: [
|
|
2967
|
+
BaseCoreModule,
|
|
2968
|
+
LocalizationModule,
|
|
2969
|
+
OAuthModule.forRoot(),
|
|
2970
|
+
HttpClientXsrfModule.withOptions({
|
|
2971
|
+
cookieName: 'XSRF-TOKEN',
|
|
2972
|
+
headerName: 'RequestVerificationToken',
|
|
2973
|
+
}),
|
|
2974
|
+
],
|
|
2975
|
+
}]
|
|
2976
|
+
}] });
|
|
3101
2977
|
/**
|
|
3102
2978
|
* CoreModule is the module that is publicly available
|
|
3103
2979
|
*/
|
|
@@ -3107,6 +2983,7 @@ class CoreModule {
|
|
|
3107
2983
|
ngModule: RootCoreModule,
|
|
3108
2984
|
providers: [
|
|
3109
2985
|
LocaleProvider,
|
|
2986
|
+
CookieLanguageProvider,
|
|
3110
2987
|
{
|
|
3111
2988
|
provide: 'CORE_OPTIONS',
|
|
3112
2989
|
useValue: options,
|
|
@@ -3157,12 +3034,16 @@ class CoreModule {
|
|
|
3157
3034
|
};
|
|
3158
3035
|
}
|
|
3159
3036
|
}
|
|
3160
|
-
CoreModule
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3037
|
+
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3038
|
+
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
|
|
3039
|
+
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
|
|
3040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: CoreModule, decorators: [{
|
|
3041
|
+
type: NgModule,
|
|
3042
|
+
args: [{
|
|
3043
|
+
exports: [BaseCoreModule],
|
|
3044
|
+
imports: [BaseCoreModule],
|
|
3045
|
+
}]
|
|
3046
|
+
}] });
|
|
3166
3047
|
function ngxsStoragePluginSerialize(data) {
|
|
3167
3048
|
return data;
|
|
3168
3049
|
}
|
|
@@ -3181,23 +3062,21 @@ class AuthGuard {
|
|
|
3181
3062
|
return false;
|
|
3182
3063
|
}
|
|
3183
3064
|
}
|
|
3184
|
-
AuthGuard.ɵ
|
|
3185
|
-
AuthGuard
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
{ type: AuthService }
|
|
3193
|
-
];
|
|
3065
|
+
AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, deps: [{ token: i1$3.OAuthService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3066
|
+
AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, providedIn: 'root' });
|
|
3067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AuthGuard, decorators: [{
|
|
3068
|
+
type: Injectable,
|
|
3069
|
+
args: [{
|
|
3070
|
+
providedIn: 'root',
|
|
3071
|
+
}]
|
|
3072
|
+
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: AuthService }]; } });
|
|
3194
3073
|
|
|
3195
3074
|
class PermissionGuard {
|
|
3196
|
-
constructor(router, routesService,
|
|
3075
|
+
constructor(router, routesService, permissionService, httpErrorReporter) {
|
|
3197
3076
|
this.router = router;
|
|
3198
3077
|
this.routesService = routesService;
|
|
3199
|
-
this.store = store;
|
|
3200
3078
|
this.permissionService = permissionService;
|
|
3079
|
+
this.httpErrorReporter = httpErrorReporter;
|
|
3201
3080
|
}
|
|
3202
3081
|
canActivate(route, state) {
|
|
3203
3082
|
let { requiredPolicy } = route.data || {};
|
|
@@ -3209,28 +3088,24 @@ class PermissionGuard {
|
|
|
3209
3088
|
return of(true);
|
|
3210
3089
|
return this.permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
3211
3090
|
if (!access) {
|
|
3212
|
-
this.
|
|
3091
|
+
this.httpErrorReporter.reportError({ status: 403 });
|
|
3213
3092
|
}
|
|
3214
3093
|
}));
|
|
3215
3094
|
}
|
|
3216
3095
|
}
|
|
3217
|
-
PermissionGuard.ɵ
|
|
3218
|
-
PermissionGuard
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
{ type: RoutesService },
|
|
3226
|
-
{ type: Store },
|
|
3227
|
-
{ type: PermissionService }
|
|
3228
|
-
];
|
|
3096
|
+
PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, deps: [{ token: i1$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3097
|
+
PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
|
|
3098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
3099
|
+
type: Injectable,
|
|
3100
|
+
args: [{
|
|
3101
|
+
providedIn: 'root',
|
|
3102
|
+
}]
|
|
3103
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: RoutesService }, { type: PermissionService }, { type: HttpErrorReporterService }]; } });
|
|
3229
3104
|
|
|
3230
3105
|
class ListResultDto {
|
|
3231
3106
|
constructor(initialValues = {}) {
|
|
3232
3107
|
for (const key in initialValues) {
|
|
3233
|
-
if (
|
|
3108
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3234
3109
|
this[key] = initialValues[key];
|
|
3235
3110
|
}
|
|
3236
3111
|
}
|
|
@@ -3245,7 +3120,8 @@ class LimitedResultRequestDto {
|
|
|
3245
3120
|
constructor(initialValues = {}) {
|
|
3246
3121
|
this.maxResultCount = 10;
|
|
3247
3122
|
for (const key in initialValues) {
|
|
3248
|
-
if (
|
|
3123
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key) &&
|
|
3124
|
+
initialValues[key] !== undefined) {
|
|
3249
3125
|
this[key] = initialValues[key];
|
|
3250
3126
|
}
|
|
3251
3127
|
}
|
|
@@ -3264,7 +3140,7 @@ class PagedAndSortedResultRequestDto extends PagedResultRequestDto {
|
|
|
3264
3140
|
class EntityDto {
|
|
3265
3141
|
constructor(initialValues = {}) {
|
|
3266
3142
|
for (const key in initialValues) {
|
|
3267
|
-
if (
|
|
3143
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3268
3144
|
this[key] = initialValues[key];
|
|
3269
3145
|
}
|
|
3270
3146
|
}
|
|
@@ -3303,7 +3179,7 @@ class FullAuditedEntityWithUserDto extends FullAuditedEntityDto {
|
|
|
3303
3179
|
class ExtensibleObject {
|
|
3304
3180
|
constructor(initialValues = {}) {
|
|
3305
3181
|
for (const key in initialValues) {
|
|
3306
|
-
if (
|
|
3182
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3307
3183
|
this[key] = initialValues[key];
|
|
3308
3184
|
}
|
|
3309
3185
|
}
|
|
@@ -3345,30 +3221,33 @@ class ExtensibleFullAuditedEntityWithUserDto extends ExtensibleFullAuditedEntity
|
|
|
3345
3221
|
}
|
|
3346
3222
|
}
|
|
3347
3223
|
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
this.rest = rest;
|
|
3354
|
-
}
|
|
3355
|
-
getConfiguration() {
|
|
3356
|
-
const request = {
|
|
3224
|
+
class AbpApiDefinitionService {
|
|
3225
|
+
constructor(restService) {
|
|
3226
|
+
this.restService = restService;
|
|
3227
|
+
this.apiName = 'abp';
|
|
3228
|
+
this.getByModel = (model) => this.restService.request({
|
|
3357
3229
|
method: 'GET',
|
|
3358
|
-
url: '/api/abp/
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3230
|
+
url: '/api/abp/api-definition',
|
|
3231
|
+
params: { includeTypes: model.includeTypes },
|
|
3232
|
+
}, { apiName: this.apiName });
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3236
|
+
AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
|
|
3237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
3238
|
+
type: Injectable,
|
|
3239
|
+
args: [{
|
|
3240
|
+
providedIn: 'root',
|
|
3241
|
+
}]
|
|
3242
|
+
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
3243
|
+
|
|
3244
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3245
|
+
|
|
3246
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3247
|
+
__proto__: null
|
|
3248
|
+
});
|
|
3249
|
+
|
|
3250
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3372
3251
|
|
|
3373
3252
|
class ContentProjectionService {
|
|
3374
3253
|
constructor(injector) {
|
|
@@ -3378,13 +3257,12 @@ class ContentProjectionService {
|
|
|
3378
3257
|
return projectionStrategy.injectContent(injector);
|
|
3379
3258
|
}
|
|
3380
3259
|
}
|
|
3381
|
-
ContentProjectionService.ɵ
|
|
3382
|
-
ContentProjectionService
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
];
|
|
3260
|
+
ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3261
|
+
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
|
|
3262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
3263
|
+
type: Injectable,
|
|
3264
|
+
args: [{ providedIn: 'root' }]
|
|
3265
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3388
3266
|
|
|
3389
3267
|
function getShortDateFormat(configStateService) {
|
|
3390
3268
|
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
@@ -3436,7 +3314,6 @@ function downloadBlob(blob, filename) {
|
|
|
3436
3314
|
}
|
|
3437
3315
|
|
|
3438
3316
|
function isNumber(value) {
|
|
3439
|
-
/* tslint:disable-next-line:triple-equals */
|
|
3440
3317
|
return value == Number(value);
|
|
3441
3318
|
}
|
|
3442
3319
|
|
|
@@ -3451,7 +3328,6 @@ function mapEnumToOptions(_enum) {
|
|
|
3451
3328
|
return options;
|
|
3452
3329
|
}
|
|
3453
3330
|
|
|
3454
|
-
// tslint:disable: no-bitwise
|
|
3455
3331
|
function uuid(a) {
|
|
3456
3332
|
return a
|
|
3457
3333
|
? (a ^ ((Math.random() * 16) >> (a / 4))).toString(16)
|
|
@@ -3561,7 +3437,6 @@ function fromLazyLoad(element, domStrategy = DOM_STRATEGY.AppendToHead(), crossO
|
|
|
3561
3437
|
});
|
|
3562
3438
|
}
|
|
3563
3439
|
function createErrorHandler(observer, element) {
|
|
3564
|
-
/* tslint:disable-next-line:only-arrow-functions */
|
|
3565
3440
|
return function (event) {
|
|
3566
3441
|
clearCallbacks(element);
|
|
3567
3442
|
element.parentNode.removeChild(element);
|
|
@@ -3577,30 +3452,6 @@ function clearCallbacks(element) {
|
|
|
3577
3452
|
element.onsuspend = null;
|
|
3578
3453
|
}
|
|
3579
3454
|
|
|
3580
|
-
// tslint:disable: max-line-length
|
|
3581
|
-
function isFunction(value) {
|
|
3582
|
-
return typeof value === 'function';
|
|
3583
|
-
}
|
|
3584
|
-
/**
|
|
3585
|
-
* @deprecated no longer working, please use SubscriptionService (https://docs.abp.io/en/abp/latest/UI/Angular/Subscription-Service) instead.
|
|
3586
|
-
*/
|
|
3587
|
-
const takeUntilDestroy = (componentInstance, destroyMethodName = 'ngOnDestroy') => (source) => {
|
|
3588
|
-
const originalDestroy = componentInstance[destroyMethodName];
|
|
3589
|
-
if (isFunction(originalDestroy) === false) {
|
|
3590
|
-
throw new Error(`${componentInstance.constructor.name} is using untilDestroyed but doesn't implement ${destroyMethodName}`);
|
|
3591
|
-
}
|
|
3592
|
-
if (!componentInstance['__takeUntilDestroy']) {
|
|
3593
|
-
componentInstance['__takeUntilDestroy'] = new Subject();
|
|
3594
|
-
componentInstance[destroyMethodName] = function () {
|
|
3595
|
-
// tslint:disable-next-line: no-unused-expression
|
|
3596
|
-
isFunction(originalDestroy) && originalDestroy.apply(this, arguments);
|
|
3597
|
-
componentInstance['__takeUntilDestroy'].next(true);
|
|
3598
|
-
componentInstance['__takeUntilDestroy'].complete();
|
|
3599
|
-
};
|
|
3600
|
-
}
|
|
3601
|
-
return source.pipe(takeUntil(componentInstance['__takeUntilDestroy']));
|
|
3602
|
-
};
|
|
3603
|
-
|
|
3604
3455
|
class DomInsertionService {
|
|
3605
3456
|
constructor() {
|
|
3606
3457
|
this.inserted = new Set();
|
|
@@ -3623,10 +3474,12 @@ class DomInsertionService {
|
|
|
3623
3474
|
return this.inserted.has(hash);
|
|
3624
3475
|
}
|
|
3625
3476
|
}
|
|
3626
|
-
DomInsertionService.ɵ
|
|
3627
|
-
DomInsertionService
|
|
3628
|
-
|
|
3629
|
-
|
|
3477
|
+
DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3478
|
+
DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
|
|
3479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
3480
|
+
type: Injectable,
|
|
3481
|
+
args: [{ providedIn: 'root' }]
|
|
3482
|
+
}] });
|
|
3630
3483
|
|
|
3631
3484
|
class ResourceWaitService {
|
|
3632
3485
|
constructor() {
|
|
@@ -3655,12 +3508,14 @@ class ResourceWaitService {
|
|
|
3655
3508
|
this.store.patch({ resources });
|
|
3656
3509
|
}
|
|
3657
3510
|
}
|
|
3658
|
-
ResourceWaitService.ɵ
|
|
3659
|
-
ResourceWaitService
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3511
|
+
ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3512
|
+
ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
|
|
3513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
3514
|
+
type: Injectable,
|
|
3515
|
+
args: [{
|
|
3516
|
+
providedIn: 'root',
|
|
3517
|
+
}]
|
|
3518
|
+
}] });
|
|
3664
3519
|
|
|
3665
3520
|
class LazyLoadService {
|
|
3666
3521
|
constructor(resourceWaitService) {
|
|
@@ -3685,15 +3540,14 @@ class LazyLoadService {
|
|
|
3685
3540
|
return true;
|
|
3686
3541
|
}
|
|
3687
3542
|
}
|
|
3688
|
-
LazyLoadService.ɵ
|
|
3689
|
-
LazyLoadService
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
];
|
|
3543
|
+
LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3544
|
+
LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
|
|
3545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
3546
|
+
type: Injectable,
|
|
3547
|
+
args: [{
|
|
3548
|
+
providedIn: 'root',
|
|
3549
|
+
}]
|
|
3550
|
+
}], ctorParameters: function () { return [{ type: ResourceWaitService }]; } });
|
|
3697
3551
|
|
|
3698
3552
|
const LIST_QUERY_DEBOUNCE_TIME = new InjectionToken('LIST_QUERY_DEBOUNCE_TIME');
|
|
3699
3553
|
|
|
@@ -3789,256 +3643,11 @@ class ListService {
|
|
|
3789
3643
|
});
|
|
3790
3644
|
}
|
|
3791
3645
|
}
|
|
3792
|
-
ListService
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
];
|
|
3798
|
-
|
|
3799
|
-
var ConfigState_1;
|
|
3800
|
-
/**
|
|
3801
|
-
* @deprecated Use ConfigStateService instead. To be deleted in v5.0.
|
|
3802
|
-
*/
|
|
3803
|
-
let ConfigState = ConfigState_1 = class ConfigState {
|
|
3804
|
-
constructor(store, environmentService, configState) {
|
|
3805
|
-
this.store = store;
|
|
3806
|
-
this.environmentService = environmentService;
|
|
3807
|
-
this.configState = configState;
|
|
3808
|
-
this.syncConfigState();
|
|
3809
|
-
this.syncEnvironment();
|
|
3810
|
-
}
|
|
3811
|
-
static getAll(state) {
|
|
3812
|
-
return state;
|
|
3813
|
-
}
|
|
3814
|
-
static getApplicationInfo(state) {
|
|
3815
|
-
return state.environment.application || {};
|
|
3816
|
-
}
|
|
3817
|
-
static getEnvironment(state) {
|
|
3818
|
-
return state.environment;
|
|
3819
|
-
}
|
|
3820
|
-
static getOne(key) {
|
|
3821
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3822
|
-
return state[key];
|
|
3823
|
-
});
|
|
3824
|
-
return selector;
|
|
3825
|
-
}
|
|
3826
|
-
static getDeep(keys) {
|
|
3827
|
-
if (typeof keys === 'string') {
|
|
3828
|
-
keys = keys.split('.');
|
|
3829
|
-
}
|
|
3830
|
-
if (!Array.isArray(keys)) {
|
|
3831
|
-
throw new Error('The argument must be a dot string or an string array.');
|
|
3832
|
-
}
|
|
3833
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3834
|
-
return keys.reduce((acc, val) => {
|
|
3835
|
-
if (acc) {
|
|
3836
|
-
return acc[val];
|
|
3837
|
-
}
|
|
3838
|
-
return undefined;
|
|
3839
|
-
}, state);
|
|
3840
|
-
});
|
|
3841
|
-
return selector;
|
|
3842
|
-
}
|
|
3843
|
-
static getApiUrl(key) {
|
|
3844
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3845
|
-
return (state.environment.apis[key || 'default'] || state.environment.apis.default).url;
|
|
3846
|
-
});
|
|
3847
|
-
return selector;
|
|
3848
|
-
}
|
|
3849
|
-
static getFeature(key) {
|
|
3850
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3851
|
-
return snq(() => state.features.values[key]);
|
|
3852
|
-
});
|
|
3853
|
-
return selector;
|
|
3854
|
-
}
|
|
3855
|
-
static getSetting(key) {
|
|
3856
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3857
|
-
return snq(() => state.setting.values[key]);
|
|
3858
|
-
});
|
|
3859
|
-
return selector;
|
|
3860
|
-
}
|
|
3861
|
-
static getSettings(keyword) {
|
|
3862
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3863
|
-
const settings = snq(() => state.setting.values, {});
|
|
3864
|
-
if (!keyword)
|
|
3865
|
-
return settings;
|
|
3866
|
-
const keysFound = Object.keys(settings).filter(key => key.indexOf(keyword) > -1);
|
|
3867
|
-
return keysFound.reduce((acc, key) => {
|
|
3868
|
-
acc[key] = settings[key];
|
|
3869
|
-
return acc;
|
|
3870
|
-
}, {});
|
|
3871
|
-
});
|
|
3872
|
-
return selector;
|
|
3873
|
-
}
|
|
3874
|
-
/**
|
|
3875
|
-
* @deprecated use PermissionService's getGrantedPolicyStream or getGrantedPolicy methods.
|
|
3876
|
-
*/
|
|
3877
|
-
static getGrantedPolicy(key) {
|
|
3878
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3879
|
-
if (!key)
|
|
3880
|
-
return true;
|
|
3881
|
-
const getPolicy = (k) => snq(() => state.auth.grantedPolicies[k], false);
|
|
3882
|
-
const orRegexp = /\|\|/g;
|
|
3883
|
-
const andRegexp = /&&/g;
|
|
3884
|
-
// TODO: Allow combination of ANDs & ORs
|
|
3885
|
-
if (orRegexp.test(key)) {
|
|
3886
|
-
const keys = key.split('||').filter(Boolean);
|
|
3887
|
-
if (keys.length < 2)
|
|
3888
|
-
return false;
|
|
3889
|
-
return keys.some(k => getPolicy(k.trim()));
|
|
3890
|
-
}
|
|
3891
|
-
else if (andRegexp.test(key)) {
|
|
3892
|
-
const keys = key.split('&&').filter(Boolean);
|
|
3893
|
-
if (keys.length < 2)
|
|
3894
|
-
return false;
|
|
3895
|
-
return keys.every(k => getPolicy(k.trim()));
|
|
3896
|
-
}
|
|
3897
|
-
return getPolicy(key);
|
|
3898
|
-
});
|
|
3899
|
-
return selector;
|
|
3900
|
-
}
|
|
3901
|
-
static getLocalizationResource(resourceName) {
|
|
3902
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3903
|
-
return state.localization.values[resourceName];
|
|
3904
|
-
});
|
|
3905
|
-
return selector;
|
|
3906
|
-
}
|
|
3907
|
-
static getLocalization(key, ...interpolateParams) {
|
|
3908
|
-
if (!key)
|
|
3909
|
-
key = '';
|
|
3910
|
-
let defaultValue;
|
|
3911
|
-
if (typeof key !== 'string') {
|
|
3912
|
-
defaultValue = key.defaultValue;
|
|
3913
|
-
key = key.key;
|
|
3914
|
-
}
|
|
3915
|
-
const keys = key.split('::');
|
|
3916
|
-
const selector = createSelector([ConfigState_1], (state) => {
|
|
3917
|
-
const warn = (message) => {
|
|
3918
|
-
if (!state.environment.production)
|
|
3919
|
-
console.warn(message);
|
|
3920
|
-
};
|
|
3921
|
-
if (keys.length < 2) {
|
|
3922
|
-
warn('The localization source separator (::) not found.');
|
|
3923
|
-
return defaultValue || key;
|
|
3924
|
-
}
|
|
3925
|
-
if (!state.localization)
|
|
3926
|
-
return defaultValue || keys[1];
|
|
3927
|
-
const sourceName = keys[0] ||
|
|
3928
|
-
snq(() => state.environment.localization.defaultResourceName) ||
|
|
3929
|
-
state.localization.defaultResourceName;
|
|
3930
|
-
const sourceKey = keys[1];
|
|
3931
|
-
if (sourceName === '_') {
|
|
3932
|
-
return defaultValue || sourceKey;
|
|
3933
|
-
}
|
|
3934
|
-
if (!sourceName) {
|
|
3935
|
-
warn('Localization source name is not specified and the defaultResourceName was not defined!');
|
|
3936
|
-
return defaultValue || sourceKey;
|
|
3937
|
-
}
|
|
3938
|
-
const source = state.localization.values[sourceName];
|
|
3939
|
-
if (!source) {
|
|
3940
|
-
warn('Could not find localization source: ' + sourceName);
|
|
3941
|
-
return defaultValue || sourceKey;
|
|
3942
|
-
}
|
|
3943
|
-
let localization = source[sourceKey];
|
|
3944
|
-
if (typeof localization === 'undefined') {
|
|
3945
|
-
return defaultValue || sourceKey;
|
|
3946
|
-
}
|
|
3947
|
-
interpolateParams = interpolateParams.filter(params => params != null);
|
|
3948
|
-
if (localization)
|
|
3949
|
-
localization = interpolate(localization, interpolateParams);
|
|
3950
|
-
if (typeof localization !== 'string')
|
|
3951
|
-
localization = '';
|
|
3952
|
-
return localization || defaultValue || key;
|
|
3953
|
-
});
|
|
3954
|
-
return selector;
|
|
3955
|
-
}
|
|
3956
|
-
syncConfigState() {
|
|
3957
|
-
this.configState
|
|
3958
|
-
.createOnUpdateStream(state => state)
|
|
3959
|
-
.pipe(distinctUntilChanged(compare))
|
|
3960
|
-
.subscribe(config => this.store.dispatch(new PatchConfigState(config)));
|
|
3961
|
-
}
|
|
3962
|
-
syncEnvironment() {
|
|
3963
|
-
this.environmentService
|
|
3964
|
-
.createOnUpdateStream(state => state)
|
|
3965
|
-
.pipe(distinctUntilChanged(compare))
|
|
3966
|
-
.subscribe(env => this.store.dispatch(new PatchConfigState({ environment: env })));
|
|
3967
|
-
}
|
|
3968
|
-
addData({ patchState, dispatch }) {
|
|
3969
|
-
const apiName = 'default';
|
|
3970
|
-
const api = this.store.selectSnapshot(ConfigState_1.getApiUrl(apiName));
|
|
3971
|
-
return this.configState.refreshAppState().pipe(catchError((err) => {
|
|
3972
|
-
dispatch(new RestOccurError(err));
|
|
3973
|
-
return throwError(err);
|
|
3974
|
-
}));
|
|
3975
|
-
}
|
|
3976
|
-
setEnvironment(_, { environment }) {
|
|
3977
|
-
return this.environmentService.setState(environment);
|
|
3978
|
-
}
|
|
3979
|
-
setConfig({ patchState, getState }, { state }) {
|
|
3980
|
-
patchState(Object.assign(Object.assign({}, getState()), state));
|
|
3981
|
-
}
|
|
3982
|
-
};
|
|
3983
|
-
ConfigState.decorators = [
|
|
3984
|
-
{ type: Injectable }
|
|
3985
|
-
];
|
|
3986
|
-
ConfigState.ctorParameters = () => [
|
|
3987
|
-
{ type: Store },
|
|
3988
|
-
{ type: EnvironmentService },
|
|
3989
|
-
{ type: ConfigStateService }
|
|
3990
|
-
];
|
|
3991
|
-
__decorate([
|
|
3992
|
-
Action(GetAppConfiguration)
|
|
3993
|
-
], ConfigState.prototype, "addData", null);
|
|
3994
|
-
__decorate([
|
|
3995
|
-
Action(SetEnvironment)
|
|
3996
|
-
], ConfigState.prototype, "setEnvironment", null);
|
|
3997
|
-
__decorate([
|
|
3998
|
-
Action(PatchConfigState)
|
|
3999
|
-
], ConfigState.prototype, "setConfig", null);
|
|
4000
|
-
__decorate([
|
|
4001
|
-
Selector()
|
|
4002
|
-
], ConfigState, "getAll", null);
|
|
4003
|
-
__decorate([
|
|
4004
|
-
Selector()
|
|
4005
|
-
], ConfigState, "getApplicationInfo", null);
|
|
4006
|
-
__decorate([
|
|
4007
|
-
Selector()
|
|
4008
|
-
], ConfigState, "getEnvironment", null);
|
|
4009
|
-
ConfigState = ConfigState_1 = __decorate([
|
|
4010
|
-
State({
|
|
4011
|
-
name: 'ConfigState',
|
|
4012
|
-
defaults: {},
|
|
4013
|
-
})
|
|
4014
|
-
], ConfigState);
|
|
4015
|
-
|
|
4016
|
-
class ProfileStateService {
|
|
4017
|
-
constructor(store) {
|
|
4018
|
-
this.store = store;
|
|
4019
|
-
}
|
|
4020
|
-
getProfile() {
|
|
4021
|
-
return this.store.selectSnapshot(ProfileState.getProfile);
|
|
4022
|
-
}
|
|
4023
|
-
dispatchGetProfile() {
|
|
4024
|
-
return this.store.dispatch(new GetProfile());
|
|
4025
|
-
}
|
|
4026
|
-
dispatchUpdateProfile(...args) {
|
|
4027
|
-
return this.store.dispatch(new UpdateProfile(...args));
|
|
4028
|
-
}
|
|
4029
|
-
dispatchChangePassword(...args) {
|
|
4030
|
-
return this.store.dispatch(new ChangePassword(...args));
|
|
4031
|
-
}
|
|
4032
|
-
}
|
|
4033
|
-
ProfileStateService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProfileStateService_Factory() { return new ProfileStateService(i0.ɵɵinject(i4.Store)); }, token: ProfileStateService, providedIn: "root" });
|
|
4034
|
-
ProfileStateService.decorators = [
|
|
4035
|
-
{ type: Injectable, args: [{
|
|
4036
|
-
providedIn: 'root',
|
|
4037
|
-
},] }
|
|
4038
|
-
];
|
|
4039
|
-
ProfileStateService.ctorParameters = () => [
|
|
4040
|
-
{ type: Store }
|
|
4041
|
-
];
|
|
3646
|
+
ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3647
|
+
ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService });
|
|
3648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ListService, decorators: [{
|
|
3649
|
+
type: Injectable
|
|
3650
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
4042
3651
|
|
|
4043
3652
|
class RouterWaitService {
|
|
4044
3653
|
constructor(routerEvents, injector) {
|
|
@@ -4073,31 +3682,33 @@ class RouterWaitService {
|
|
|
4073
3682
|
this.store.patch({ loading });
|
|
4074
3683
|
}
|
|
4075
3684
|
}
|
|
4076
|
-
RouterWaitService.ɵ
|
|
4077
|
-
RouterWaitService
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
{ type: Injector }
|
|
4085
|
-
];
|
|
3685
|
+
RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3686
|
+
RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
|
|
3687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
3688
|
+
type: Injectable,
|
|
3689
|
+
args: [{
|
|
3690
|
+
providedIn: 'root',
|
|
3691
|
+
}]
|
|
3692
|
+
}], ctorParameters: function () { return [{ type: RouterEvents }, { type: i0.Injector }]; } });
|
|
4086
3693
|
|
|
4087
3694
|
const trackBy = (key) => (_, item) => item[key];
|
|
4088
|
-
const trackByDeep = (
|
|
3695
|
+
const trackByDeep = (
|
|
3696
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3697
|
+
...keys) => (_, item) => keys.reduce((acc, key) => acc[key], item);
|
|
4089
3698
|
class TrackByService {
|
|
4090
3699
|
constructor() {
|
|
4091
3700
|
this.by = trackBy;
|
|
4092
3701
|
this.byDeep = trackByDeep;
|
|
4093
3702
|
}
|
|
4094
3703
|
}
|
|
4095
|
-
TrackByService.ɵ
|
|
4096
|
-
TrackByService
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
3704
|
+
TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3705
|
+
TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, providedIn: 'root' });
|
|
3706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: TrackByService, decorators: [{
|
|
3707
|
+
type: Injectable,
|
|
3708
|
+
args: [{
|
|
3709
|
+
providedIn: 'root',
|
|
3710
|
+
}]
|
|
3711
|
+
}] });
|
|
4101
3712
|
|
|
4102
3713
|
class ContainerStrategy {
|
|
4103
3714
|
constructor(containerRef) {
|
|
@@ -4166,13 +3777,17 @@ const CONTENT_SECURITY_STRATEGY = {
|
|
|
4166
3777
|
};
|
|
4167
3778
|
|
|
4168
3779
|
class ContentStrategy {
|
|
4169
|
-
constructor(content, domStrategy = DOM_STRATEGY.AppendToHead(), contentSecurityStrategy = CONTENT_SECURITY_STRATEGY.None()) {
|
|
3780
|
+
constructor(content, domStrategy = DOM_STRATEGY.AppendToHead(), contentSecurityStrategy = CONTENT_SECURITY_STRATEGY.None(), options = {}) {
|
|
4170
3781
|
this.content = content;
|
|
4171
3782
|
this.domStrategy = domStrategy;
|
|
4172
3783
|
this.contentSecurityStrategy = contentSecurityStrategy;
|
|
3784
|
+
this.options = options;
|
|
4173
3785
|
}
|
|
4174
3786
|
insertElement() {
|
|
4175
3787
|
const element = this.createElement();
|
|
3788
|
+
if (this.options && Object.keys(this.options).length > 0) {
|
|
3789
|
+
Object.keys(this.options).forEach(key => (element[key] = this.options[key]));
|
|
3790
|
+
}
|
|
4176
3791
|
this.contentSecurityStrategy.applyCSP(element);
|
|
4177
3792
|
this.domStrategy.insertElement(element);
|
|
4178
3793
|
return element;
|
|
@@ -4193,17 +3808,17 @@ class ScriptContentStrategy extends ContentStrategy {
|
|
|
4193
3808
|
}
|
|
4194
3809
|
}
|
|
4195
3810
|
const CONTENT_STRATEGY = {
|
|
4196
|
-
AppendScriptToBody(content) {
|
|
4197
|
-
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToBody());
|
|
3811
|
+
AppendScriptToBody(content, options) {
|
|
3812
|
+
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToBody(), undefined, options);
|
|
4198
3813
|
},
|
|
4199
|
-
AppendScriptToHead(content) {
|
|
4200
|
-
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToHead());
|
|
3814
|
+
AppendScriptToHead(content, options) {
|
|
3815
|
+
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToHead(), undefined, options);
|
|
4201
3816
|
},
|
|
4202
|
-
AppendStyleToHead(content) {
|
|
4203
|
-
return new StyleContentStrategy(content, DOM_STRATEGY.AppendToHead());
|
|
3817
|
+
AppendStyleToHead(content, options) {
|
|
3818
|
+
return new StyleContentStrategy(content, DOM_STRATEGY.AppendToHead(), undefined, options);
|
|
4204
3819
|
},
|
|
4205
|
-
PrependStyleToHead(content) {
|
|
4206
|
-
return new StyleContentStrategy(content, DOM_STRATEGY.PrependToHead());
|
|
3820
|
+
PrependStyleToHead(content, options) {
|
|
3821
|
+
return new StyleContentStrategy(content, DOM_STRATEGY.PrependToHead(), undefined, options);
|
|
4207
3822
|
},
|
|
4208
3823
|
};
|
|
4209
3824
|
|
|
@@ -4211,7 +3826,6 @@ class ContextStrategy {
|
|
|
4211
3826
|
constructor(context) {
|
|
4212
3827
|
this.context = context;
|
|
4213
3828
|
}
|
|
4214
|
-
/* tslint:disable-next-line:no-unused-variable */
|
|
4215
3829
|
setContext(componentRef) {
|
|
4216
3830
|
return this.context;
|
|
4217
3831
|
}
|
|
@@ -4413,7 +4027,6 @@ function isValidCreditCard(value) {
|
|
|
4413
4027
|
let multiplier = 1;
|
|
4414
4028
|
for (let i = value.length; i > 0; i--) {
|
|
4415
4029
|
const digit = Number(value[i - 1]) * multiplier;
|
|
4416
|
-
/* tslint:disable-next-line:no-bitwise */
|
|
4417
4030
|
checksum += (digit % 10) + ~~(digit / 10);
|
|
4418
4031
|
multiplier = (multiplier * 2) % 3;
|
|
4419
4032
|
}
|
|
@@ -4479,10 +4092,9 @@ function isValidUrl(value) {
|
|
|
4479
4092
|
return false;
|
|
4480
4093
|
}
|
|
4481
4094
|
|
|
4482
|
-
const ɵ0 = () => Validators.email;
|
|
4483
4095
|
const AbpValidators = {
|
|
4484
4096
|
creditCard: validateCreditCard,
|
|
4485
|
-
emailAddress:
|
|
4097
|
+
emailAddress: () => Validators.email,
|
|
4486
4098
|
minAge: validateMinAge,
|
|
4487
4099
|
range: validateRange,
|
|
4488
4100
|
required: validateRequired,
|
|
@@ -4490,38 +4102,11 @@ const AbpValidators = {
|
|
|
4490
4102
|
url: validateUrl,
|
|
4491
4103
|
};
|
|
4492
4104
|
|
|
4493
|
-
|
|
4494
|
-
constructor(restService) {
|
|
4495
|
-
this.restService = restService;
|
|
4496
|
-
this.apiName = 'abp';
|
|
4497
|
-
this.getByModel = (model) => this.restService.request({
|
|
4498
|
-
method: 'GET',
|
|
4499
|
-
url: '/api/abp/api-definition',
|
|
4500
|
-
params: { includeTypes: model.includeTypes },
|
|
4501
|
-
}, { apiName: this.apiName });
|
|
4502
|
-
}
|
|
4503
|
-
}
|
|
4504
|
-
AbpApiDefinitionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AbpApiDefinitionService_Factory() { return new AbpApiDefinitionService(i0.ɵɵinject(RestService)); }, token: AbpApiDefinitionService, providedIn: "root" });
|
|
4505
|
-
AbpApiDefinitionService.decorators = [
|
|
4506
|
-
{ type: Injectable, args: [{
|
|
4507
|
-
providedIn: 'root',
|
|
4508
|
-
},] }
|
|
4509
|
-
];
|
|
4510
|
-
AbpApiDefinitionService.ctorParameters = () => [
|
|
4511
|
-
{ type: RestService }
|
|
4512
|
-
];
|
|
4513
|
-
|
|
4514
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
4515
|
-
__proto__: null
|
|
4516
|
-
});
|
|
4517
|
-
|
|
4518
|
-
/*
|
|
4519
|
-
* Public API Surface of core
|
|
4520
|
-
*/
|
|
4105
|
+
// export * from './lib/handlers';
|
|
4521
4106
|
|
|
4522
4107
|
/**
|
|
4523
4108
|
* Generated bundle index. Do not edit.
|
|
4524
4109
|
*/
|
|
4525
4110
|
|
|
4526
|
-
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor,
|
|
4111
|
+
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DOM_STRATEGY, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleObject, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, index as ObjectExtending, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TemplateContextStrategy, TemplateProjectionStrategy, TrackByService, WebHttpUrlEncodingCodec, checkAccessToken, coreOptionsFactory, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
|
|
4527
4112
|
//# sourceMappingURL=abp-ng.core.js.map
|