@abp/ng.core 5.0.0-beta.1-1 → 5.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/abp-ng.core-locale.umd.js +2 -2
- package/bundles/abp-ng.core-testing.umd.js +14 -16
- package/bundles/abp-ng.core-testing.umd.js.map +1 -1
- package/bundles/abp-ng.core.umd.js +341 -238
- package/bundles/abp-ng.core.umd.js.map +1 -1
- package/esm2015/abp-ng.core.js +1 -1
- package/esm2015/lib/abstracts/index.js +1 -1
- package/esm2015/lib/abstracts/ng-model.component.js +4 -4
- package/esm2015/lib/components/dynamic-layout.component.js +4 -5
- package/esm2015/lib/components/index.js +1 -1
- package/esm2015/lib/components/replaceable-route-container.component.js +4 -4
- package/esm2015/lib/components/router-outlet.component.js +4 -4
- package/esm2015/lib/constants/different-locales.js +1 -1
- package/esm2015/lib/constants/index.js +1 -1
- package/esm2015/lib/core.module.js +33 -13
- package/esm2015/lib/directives/autofocus.directive.js +11 -5
- package/esm2015/lib/directives/debounce.directive.js +4 -4
- package/esm2015/lib/directives/for.directive.js +4 -4
- package/esm2015/lib/directives/form-submit.directive.js +4 -4
- package/esm2015/lib/directives/index.js +1 -1
- package/esm2015/lib/directives/init.directive.js +4 -4
- package/esm2015/lib/directives/permission.directive.js +8 -10
- package/esm2015/lib/directives/replaceable-template.directive.js +18 -14
- package/esm2015/lib/directives/stop-propagation.directive.js +4 -4
- package/esm2015/lib/enums/common.js +1 -1
- package/esm2015/lib/enums/index.js +1 -1
- package/esm2015/lib/guards/auth.guard.js +4 -4
- package/esm2015/lib/guards/index.js +1 -1
- package/esm2015/lib/guards/permission.guard.js +4 -4
- package/esm2015/lib/handlers/oauth-configuration.handler.js +4 -4
- package/esm2015/lib/handlers/routes.handler.js +4 -4
- package/esm2015/lib/interceptors/api.interceptor.js +4 -4
- package/esm2015/lib/interceptors/index.js +1 -1
- package/esm2015/lib/localization.module.js +5 -5
- package/esm2015/lib/models/auth.js +1 -1
- package/esm2015/lib/models/common.js +1 -1
- package/esm2015/lib/models/dtos.js +1 -1
- package/esm2015/lib/models/environment.js +1 -1
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/localization.js +1 -1
- package/esm2015/lib/models/replaceable-components.js +1 -1
- package/esm2015/lib/models/rest.js +1 -1
- package/esm2015/lib/models/session.js +1 -1
- package/esm2015/lib/models/utility.js +1 -1
- package/esm2015/lib/pipes/index.js +1 -1
- package/esm2015/lib/pipes/localization.pipe.js +15 -6
- package/esm2015/lib/pipes/sort.pipe.js +5 -5
- package/esm2015/lib/providers/cookie-language.provider.js +1 -1
- package/esm2015/lib/providers/locale.provider.js +1 -1
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js +4 -4
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js +4 -4
- 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/application-configurations/abp-application-configuration.service.js +4 -4
- 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/models.js +1 -1
- 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/models.js +1 -1
- 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/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/models.js +1 -1
- package/esm2015/lib/services/auth.service.js +4 -4
- package/esm2015/lib/services/config-state.service.js +4 -4
- package/esm2015/lib/services/content-projection.service.js +4 -4
- package/esm2015/lib/services/dom-insertion.service.js +4 -4
- package/esm2015/lib/services/environment.service.js +4 -4
- package/esm2015/lib/services/http-error-reporter.service.js +4 -4
- package/esm2015/lib/services/http-wait.service.js +4 -4
- package/esm2015/lib/services/index.js +1 -1
- package/esm2015/lib/services/lazy-load.service.js +4 -4
- package/esm2015/lib/services/list.service.js +4 -4
- package/esm2015/lib/services/localization.service.js +95 -53
- package/esm2015/lib/services/multi-tenancy.service.js +4 -4
- package/esm2015/lib/services/permission.service.js +4 -4
- package/esm2015/lib/services/replaceable-components.service.js +4 -4
- package/esm2015/lib/services/resource-wait.service.js +4 -4
- package/esm2015/lib/services/rest.service.js +4 -4
- package/esm2015/lib/services/router-events.service.js +4 -4
- package/esm2015/lib/services/router-wait.service.js +4 -4
- package/esm2015/lib/services/routes.service.js +7 -7
- package/esm2015/lib/services/session-state.service.js +4 -4
- package/esm2015/lib/services/subscription.service.js +4 -4
- package/esm2015/lib/services/track-by.service.js +4 -4
- package/esm2015/lib/strategies/auth-flow.strategy.js +4 -1
- package/esm2015/lib/strategies/container.strategy.js +1 -1
- package/esm2015/lib/strategies/content-security.strategy.js +1 -1
- package/esm2015/lib/strategies/content.strategy.js +14 -10
- package/esm2015/lib/strategies/context.strategy.js +1 -1
- package/esm2015/lib/strategies/cross-origin.strategy.js +1 -1
- package/esm2015/lib/strategies/dom.strategy.js +1 -1
- package/esm2015/lib/strategies/index.js +1 -1
- package/esm2015/lib/strategies/loading.strategy.js +1 -1
- package/esm2015/lib/strategies/projection.strategy.js +1 -1
- package/esm2015/lib/tokens/app-config.token.js +1 -1
- package/esm2015/lib/tokens/cookie-language-key.token.js +1 -1
- package/esm2015/lib/tokens/index.js +2 -1
- package/esm2015/lib/tokens/list.token.js +1 -1
- package/esm2015/lib/tokens/localization.token.js +10 -0
- package/esm2015/lib/tokens/lodaer-delay.token.js +1 -1
- package/esm2015/lib/tokens/manage-profile.token.js +1 -1
- package/esm2015/lib/tokens/options.token.js +1 -1
- package/esm2015/lib/tokens/tenant-key.token.js +1 -1
- package/esm2015/lib/utils/array-utils.js +1 -1
- package/esm2015/lib/utils/auth-utils.js +1 -1
- package/esm2015/lib/utils/common-utils.js +1 -1
- package/esm2015/lib/utils/date-extensions.js +1 -1
- package/esm2015/lib/utils/date-utils.js +1 -1
- package/esm2015/lib/utils/environment-utils.js +1 -1
- package/esm2015/lib/utils/factory-utils.js +1 -1
- package/esm2015/lib/utils/file-utils.js +1 -1
- package/esm2015/lib/utils/form-utils.js +1 -1
- package/esm2015/lib/utils/generator-utils.js +1 -1
- package/esm2015/lib/utils/http-utils.js +1 -1
- package/esm2015/lib/utils/index.js +1 -1
- package/esm2015/lib/utils/initial-utils.js +1 -1
- package/esm2015/lib/utils/internal-store-utils.js +1 -1
- package/esm2015/lib/utils/lazy-load-utils.js +1 -1
- package/esm2015/lib/utils/localization-utils.js +2 -2
- package/esm2015/lib/utils/multi-tenancy-utils.js +1 -1
- package/esm2015/lib/utils/number-utils.js +1 -1
- package/esm2015/lib/utils/object-utils.js +1 -1
- package/esm2015/lib/utils/route-utils.js +1 -1
- package/esm2015/lib/utils/string-utils.js +1 -1
- package/esm2015/lib/utils/tree-utils.js +1 -1
- package/esm2015/lib/validators/age.validator.js +1 -1
- package/esm2015/lib/validators/credit-card.validator.js +1 -1
- package/esm2015/lib/validators/index.js +1 -1
- package/esm2015/lib/validators/range.validator.js +1 -1
- package/esm2015/lib/validators/required.validator.js +1 -1
- package/esm2015/lib/validators/string-length.validator.js +1 -1
- package/esm2015/lib/validators/url.validator.js +1 -1
- package/esm2015/locale/abp-ng.core-locale.js +1 -1
- package/esm2015/locale/public-api.js +1 -1
- package/esm2015/locale/utils/register-locale.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/testing/abp-ng.core-testing.js +1 -1
- package/esm2015/testing/lib/core-testing.module.js +5 -5
- package/esm2015/testing/lib/services/index.js +1 -1
- package/esm2015/testing/lib/services/mock-permission.service.js +4 -4
- package/esm2015/testing/lib/services/mock-rest.service.js +4 -4
- package/esm2015/testing/lib/utils/clear-page.util.js +1 -1
- package/esm2015/testing/lib/utils/index.js +1 -1
- package/esm2015/testing/lib/utils/wait.util.js +1 -1
- package/esm2015/testing/public-api.js +1 -1
- package/fesm2015/abp-ng.core-testing.js +10 -10
- package/fesm2015/abp-ng.core-testing.js.map +1 -1
- package/fesm2015/abp-ng.core.js +321 -230
- package/fesm2015/abp-ng.core.js.map +1 -1
- package/lib/core.module.d.ts +1 -0
- package/lib/directives/autofocus.directive.d.ts +3 -1
- package/lib/directives/permission.directive.d.ts +4 -6
- package/lib/models/common.d.ts +13 -1
- package/lib/models/replaceable-components.d.ts +2 -2
- package/lib/pipes/localization.pipe.d.ts +1 -1
- package/lib/services/environment.service.d.ts +2 -2
- package/lib/services/http-error-reporter.service.d.ts +1 -1
- package/lib/services/list.service.d.ts +1 -1
- package/lib/services/localization.service.d.ts +8 -2
- package/lib/strategies/content.strategy.d.ts +9 -5
- package/lib/tokens/index.d.ts +1 -0
- package/lib/tokens/localization.token.d.ts +6 -0
- package/lib/utils/localization-utils.d.ts +1 -1
- package/package.json +2 -2
- package/esm2015/abp-ng.core.js.map +0 -1
- package/esm2015/lib/abstracts/index.js.map +0 -1
- package/esm2015/lib/abstracts/ng-model.component.js.map +0 -1
- package/esm2015/lib/components/dynamic-layout.component.js.map +0 -1
- package/esm2015/lib/components/index.js.map +0 -1
- package/esm2015/lib/components/replaceable-route-container.component.js.map +0 -1
- package/esm2015/lib/components/router-outlet.component.js.map +0 -1
- package/esm2015/lib/constants/different-locales.js.map +0 -1
- package/esm2015/lib/constants/index.js.map +0 -1
- package/esm2015/lib/core.module.js.map +0 -1
- package/esm2015/lib/directives/autofocus.directive.js.map +0 -1
- package/esm2015/lib/directives/debounce.directive.js.map +0 -1
- package/esm2015/lib/directives/for.directive.js.map +0 -1
- package/esm2015/lib/directives/form-submit.directive.js.map +0 -1
- package/esm2015/lib/directives/index.js.map +0 -1
- package/esm2015/lib/directives/init.directive.js.map +0 -1
- package/esm2015/lib/directives/permission.directive.js.map +0 -1
- package/esm2015/lib/directives/replaceable-template.directive.js.map +0 -1
- package/esm2015/lib/directives/stop-propagation.directive.js.map +0 -1
- package/esm2015/lib/enums/common.js.map +0 -1
- package/esm2015/lib/enums/index.js.map +0 -1
- package/esm2015/lib/guards/auth.guard.js.map +0 -1
- package/esm2015/lib/guards/index.js.map +0 -1
- package/esm2015/lib/guards/permission.guard.js.map +0 -1
- package/esm2015/lib/handlers/oauth-configuration.handler.js.map +0 -1
- package/esm2015/lib/handlers/routes.handler.js.map +0 -1
- package/esm2015/lib/interceptors/api.interceptor.js.map +0 -1
- package/esm2015/lib/interceptors/index.js.map +0 -1
- package/esm2015/lib/localization.module.js.map +0 -1
- package/esm2015/lib/models/auth.js.map +0 -1
- package/esm2015/lib/models/common.js.map +0 -1
- package/esm2015/lib/models/dtos.js.map +0 -1
- package/esm2015/lib/models/environment.js.map +0 -1
- package/esm2015/lib/models/index.js.map +0 -1
- package/esm2015/lib/models/localization.js.map +0 -1
- package/esm2015/lib/models/replaceable-components.js.map +0 -1
- package/esm2015/lib/models/rest.js.map +0 -1
- package/esm2015/lib/models/session.js.map +0 -1
- package/esm2015/lib/models/utility.js.map +0 -1
- package/esm2015/lib/pipes/index.js.map +0 -1
- package/esm2015/lib/pipes/localization.pipe.js.map +0 -1
- package/esm2015/lib/pipes/sort.pipe.js.map +0 -1
- package/esm2015/lib/providers/cookie-language.provider.js.map +0 -1
- package/esm2015/lib/providers/locale.provider.js.map +0 -1
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js.map +0 -1
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/localization/index.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/localization/models.js.map +0 -1
- package/esm2015/lib/proxy/volo/abp/models.js.map +0 -1
- package/esm2015/lib/services/auth.service.js.map +0 -1
- package/esm2015/lib/services/config-state.service.js.map +0 -1
- package/esm2015/lib/services/content-projection.service.js.map +0 -1
- package/esm2015/lib/services/dom-insertion.service.js.map +0 -1
- package/esm2015/lib/services/environment.service.js.map +0 -1
- package/esm2015/lib/services/http-error-reporter.service.js.map +0 -1
- package/esm2015/lib/services/http-wait.service.js.map +0 -1
- package/esm2015/lib/services/index.js.map +0 -1
- package/esm2015/lib/services/lazy-load.service.js.map +0 -1
- package/esm2015/lib/services/list.service.js.map +0 -1
- package/esm2015/lib/services/localization.service.js.map +0 -1
- package/esm2015/lib/services/multi-tenancy.service.js.map +0 -1
- package/esm2015/lib/services/permission.service.js.map +0 -1
- package/esm2015/lib/services/replaceable-components.service.js.map +0 -1
- package/esm2015/lib/services/resource-wait.service.js.map +0 -1
- package/esm2015/lib/services/rest.service.js.map +0 -1
- package/esm2015/lib/services/router-events.service.js.map +0 -1
- package/esm2015/lib/services/router-wait.service.js.map +0 -1
- package/esm2015/lib/services/routes.service.js.map +0 -1
- package/esm2015/lib/services/session-state.service.js.map +0 -1
- package/esm2015/lib/services/subscription.service.js.map +0 -1
- package/esm2015/lib/services/track-by.service.js.map +0 -1
- package/esm2015/lib/strategies/auth-flow.strategy.js.map +0 -1
- package/esm2015/lib/strategies/container.strategy.js.map +0 -1
- package/esm2015/lib/strategies/content-security.strategy.js.map +0 -1
- package/esm2015/lib/strategies/content.strategy.js.map +0 -1
- package/esm2015/lib/strategies/context.strategy.js.map +0 -1
- package/esm2015/lib/strategies/cross-origin.strategy.js.map +0 -1
- package/esm2015/lib/strategies/dom.strategy.js.map +0 -1
- package/esm2015/lib/strategies/index.js.map +0 -1
- package/esm2015/lib/strategies/loading.strategy.js.map +0 -1
- package/esm2015/lib/strategies/projection.strategy.js.map +0 -1
- package/esm2015/lib/tokens/app-config.token.js.map +0 -1
- package/esm2015/lib/tokens/cookie-language-key.token.js.map +0 -1
- package/esm2015/lib/tokens/index.js.map +0 -1
- package/esm2015/lib/tokens/list.token.js.map +0 -1
- package/esm2015/lib/tokens/lodaer-delay.token.js.map +0 -1
- package/esm2015/lib/tokens/manage-profile.token.js.map +0 -1
- package/esm2015/lib/tokens/options.token.js.map +0 -1
- package/esm2015/lib/tokens/tenant-key.token.js.map +0 -1
- package/esm2015/lib/utils/array-utils.js.map +0 -1
- package/esm2015/lib/utils/auth-utils.js.map +0 -1
- package/esm2015/lib/utils/common-utils.js.map +0 -1
- package/esm2015/lib/utils/date-extensions.js.map +0 -1
- package/esm2015/lib/utils/date-utils.js.map +0 -1
- package/esm2015/lib/utils/environment-utils.js.map +0 -1
- package/esm2015/lib/utils/factory-utils.js.map +0 -1
- package/esm2015/lib/utils/file-utils.js.map +0 -1
- package/esm2015/lib/utils/form-utils.js.map +0 -1
- package/esm2015/lib/utils/generator-utils.js.map +0 -1
- package/esm2015/lib/utils/http-utils.js.map +0 -1
- package/esm2015/lib/utils/index.js.map +0 -1
- package/esm2015/lib/utils/initial-utils.js.map +0 -1
- package/esm2015/lib/utils/internal-store-utils.js.map +0 -1
- package/esm2015/lib/utils/lazy-load-utils.js.map +0 -1
- package/esm2015/lib/utils/localization-utils.js.map +0 -1
- package/esm2015/lib/utils/multi-tenancy-utils.js.map +0 -1
- package/esm2015/lib/utils/number-utils.js.map +0 -1
- package/esm2015/lib/utils/object-utils.js.map +0 -1
- package/esm2015/lib/utils/route-utils.js.map +0 -1
- package/esm2015/lib/utils/string-utils.js.map +0 -1
- package/esm2015/lib/utils/tree-utils.js.map +0 -1
- package/esm2015/lib/validators/age.validator.js.map +0 -1
- package/esm2015/lib/validators/credit-card.validator.js.map +0 -1
- package/esm2015/lib/validators/index.js.map +0 -1
- package/esm2015/lib/validators/range.validator.js.map +0 -1
- package/esm2015/lib/validators/required.validator.js.map +0 -1
- package/esm2015/lib/validators/string-length.validator.js.map +0 -1
- package/esm2015/lib/validators/url.validator.js.map +0 -1
- package/esm2015/locale/abp-ng.core-locale.js.map +0 -1
- package/esm2015/locale/public-api.js.map +0 -1
- package/esm2015/locale/utils/register-locale.js.map +0 -1
- package/esm2015/public-api.js.map +0 -1
- package/esm2015/testing/abp-ng.core-testing.js.map +0 -1
- package/esm2015/testing/lib/core-testing.module.js.map +0 -1
- package/esm2015/testing/lib/services/index.js.map +0 -1
- package/esm2015/testing/lib/services/mock-permission.service.js.map +0 -1
- package/esm2015/testing/lib/services/mock-rest.service.js.map +0 -1
- package/esm2015/testing/lib/utils/clear-page.util.js.map +0 -1
- package/esm2015/testing/lib/utils/index.js.map +0 -1
- package/esm2015/testing/lib/utils/wait.util.js.map +0 -1
- package/esm2015/testing/public-api.js.map +0 -1
package/fesm2015/abp-ng.core.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject, Optional, SkipSelf,
|
|
2
|
+
import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject, isDevMode, Optional, SkipSelf, Directive, EventEmitter, Output, Self, Injector, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, NgModuleFactory, Compiler, ComponentFactoryResolver, ApplicationRef, inject } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/router';
|
|
4
4
|
import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
5
5
|
import * as i5 from '@angular/common';
|
|
6
6
|
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
7
|
-
import { BehaviorSubject, Subject, throwError, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
|
|
7
|
+
import { BehaviorSubject, Subject, throwError, combineLatest, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
|
|
8
8
|
import { map, distinctUntilChanged, filter, catchError, switchMap, take, mapTo, debounceTime, takeUntil, tap, finalize, retryWhen, delay, shareReplay } from 'rxjs/operators';
|
|
9
9
|
import { __rest, __awaiter } from 'tslib';
|
|
10
10
|
import * as i1 from '@angular/common/http';
|
|
@@ -56,9 +56,9 @@ class AbstractNgModelComponent {
|
|
|
56
56
|
this.disabled = isDisabled;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
60
|
-
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
59
|
+
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{ template: '' }]
|
|
64
64
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { disabled: [{
|
|
@@ -73,6 +73,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
73
73
|
type: Input
|
|
74
74
|
}] } });
|
|
75
75
|
|
|
76
|
+
const LOCALIZATIONS = new InjectionToken('LOCALIZATIONS');
|
|
77
|
+
function localizationContributor(localizations) {
|
|
78
|
+
if (localizations) {
|
|
79
|
+
localizations$.next([...localizations$.value, ...localizations]);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const localizations$ = new BehaviorSubject([]);
|
|
83
|
+
|
|
76
84
|
const CORE_OPTIONS = new InjectionToken('CORE_OPTIONS');
|
|
77
85
|
function coreOptionsFactory(_a) {
|
|
78
86
|
var options = __rest(_a, []);
|
|
@@ -113,7 +121,7 @@ function createLocalizationPipeKeyGenerator(localization) {
|
|
|
113
121
|
function createLocalizationFinder(localization) {
|
|
114
122
|
const localize = createLocalizer(localization);
|
|
115
123
|
return (resourceNames, keys) => {
|
|
116
|
-
resourceNames = resourceNames.concat(localization.defaultResourceName).filter(Boolean);
|
|
124
|
+
resourceNames = resourceNames.concat(localization.defaultResourceName || '').filter(Boolean);
|
|
117
125
|
const resourceCount = resourceNames.length;
|
|
118
126
|
const keyCount = keys.length;
|
|
119
127
|
for (let i = 0; i < resourceCount; i++) {
|
|
@@ -271,9 +279,9 @@ class EnvironmentService {
|
|
|
271
279
|
this.store.set(environment);
|
|
272
280
|
}
|
|
273
281
|
}
|
|
274
|
-
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
275
|
-
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
282
|
+
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
+
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
277
285
|
type: Injectable,
|
|
278
286
|
args: [{ providedIn: 'root' }]
|
|
279
287
|
}] });
|
|
@@ -297,9 +305,9 @@ class HttpErrorReporterService {
|
|
|
297
305
|
return this._errors$.value;
|
|
298
306
|
}
|
|
299
307
|
}
|
|
300
|
-
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
301
|
-
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
308
|
+
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
309
|
+
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
|
|
310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
303
311
|
type: Injectable,
|
|
304
312
|
args: [{ providedIn: 'root' }]
|
|
305
313
|
}] });
|
|
@@ -338,9 +346,9 @@ class RestService {
|
|
|
338
346
|
.pipe(catchError(err => (skipHandleError ? throwError(err) : this.handleError(err))));
|
|
339
347
|
}
|
|
340
348
|
}
|
|
341
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
342
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
349
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
350
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RestService, decorators: [{
|
|
344
352
|
type: Injectable,
|
|
345
353
|
args: [{
|
|
346
354
|
providedIn: 'root',
|
|
@@ -362,9 +370,9 @@ class AbpApplicationConfigurationService {
|
|
|
362
370
|
}, { apiName: this.apiName });
|
|
363
371
|
}
|
|
364
372
|
}
|
|
365
|
-
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
366
|
-
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
373
|
+
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
374
|
+
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
|
|
375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
368
376
|
type: Injectable,
|
|
369
377
|
args: [{
|
|
370
378
|
providedIn: 'root',
|
|
@@ -476,9 +484,9 @@ class ConfigStateService {
|
|
|
476
484
|
}));
|
|
477
485
|
}
|
|
478
486
|
}
|
|
479
|
-
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
480
|
-
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
487
|
+
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
488
|
+
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
482
490
|
type: Injectable,
|
|
483
491
|
args: [{
|
|
484
492
|
providedIn: 'root',
|
|
@@ -554,9 +562,9 @@ class SessionStateService {
|
|
|
554
562
|
document.documentElement.setAttribute('lang', language);
|
|
555
563
|
}
|
|
556
564
|
}
|
|
557
|
-
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
558
|
-
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
565
|
+
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
566
|
+
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, providedIn: 'root' });
|
|
567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SessionStateService, decorators: [{
|
|
560
568
|
type: Injectable,
|
|
561
569
|
args: [{
|
|
562
570
|
providedIn: 'root',
|
|
@@ -570,9 +578,12 @@ class LocalizationService {
|
|
|
570
578
|
this.configState = configState;
|
|
571
579
|
this.latestLang = this.sessionState.getLanguage();
|
|
572
580
|
this._languageChange$ = new Subject();
|
|
581
|
+
this.uiLocalizations$ = new BehaviorSubject(new Map());
|
|
582
|
+
this.localizations$ = new BehaviorSubject(new Map());
|
|
573
583
|
if (otherInstance)
|
|
574
584
|
throw new Error('LocalizationService should have only one instance.');
|
|
575
585
|
this.listenToSetLanguage();
|
|
586
|
+
this.initLocalizationValues();
|
|
576
587
|
}
|
|
577
588
|
/**
|
|
578
589
|
* Returns currently selected language
|
|
@@ -583,6 +594,44 @@ class LocalizationService {
|
|
|
583
594
|
get languageChange$() {
|
|
584
595
|
return this._languageChange$.asObservable();
|
|
585
596
|
}
|
|
597
|
+
initLocalizationValues() {
|
|
598
|
+
localizations$.subscribe(val => this.addLocalization(val));
|
|
599
|
+
const remoteLocalizations$ = this.configState.getDeep$('localization.values');
|
|
600
|
+
const currentLanguage$ = this.sessionState.getLanguage$();
|
|
601
|
+
const uiLocalizations$ = combineLatest([currentLanguage$, this.uiLocalizations$]).pipe(map(([currentLang, localizations]) => localizations.get(currentLang)));
|
|
602
|
+
combineLatest([remoteLocalizations$, uiLocalizations$])
|
|
603
|
+
.pipe(map(([remote, local]) => {
|
|
604
|
+
if (remote) {
|
|
605
|
+
if (!local) {
|
|
606
|
+
local = new Map();
|
|
607
|
+
}
|
|
608
|
+
Object.entries(remote).forEach(entry => {
|
|
609
|
+
const resourceName = entry[0];
|
|
610
|
+
const remoteTexts = entry[1];
|
|
611
|
+
let resource = local.get(resourceName) || {};
|
|
612
|
+
resource = Object.assign(Object.assign({}, resource), remoteTexts);
|
|
613
|
+
local.set(resourceName, resource);
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
return local;
|
|
617
|
+
}))
|
|
618
|
+
.subscribe(val => this.localizations$.next(val));
|
|
619
|
+
}
|
|
620
|
+
addLocalization(localizations) {
|
|
621
|
+
if (!localizations)
|
|
622
|
+
return;
|
|
623
|
+
const localizationMap = this.uiLocalizations$.value;
|
|
624
|
+
localizations.forEach(loc => {
|
|
625
|
+
const cultureMap = localizationMap.get(loc.culture) || new Map();
|
|
626
|
+
loc.resources.forEach(res => {
|
|
627
|
+
let resource = cultureMap.get(res.resourceName) || {};
|
|
628
|
+
resource = Object.assign(Object.assign({}, resource), res.texts);
|
|
629
|
+
cultureMap.set(res.resourceName, resource);
|
|
630
|
+
});
|
|
631
|
+
localizationMap.set(loc.culture, cultureMap);
|
|
632
|
+
});
|
|
633
|
+
this.uiLocalizations$.next(localizationMap);
|
|
634
|
+
}
|
|
586
635
|
listenToSetLanguage() {
|
|
587
636
|
this.sessionState
|
|
588
637
|
.onLanguageChange$()
|
|
@@ -605,13 +654,13 @@ class LocalizationService {
|
|
|
605
654
|
get(key, ...interpolateParams) {
|
|
606
655
|
return this.configState
|
|
607
656
|
.getAll$()
|
|
608
|
-
.pipe(map(state => getLocalization(state, key, ...interpolateParams)));
|
|
657
|
+
.pipe(map(state => this.getLocalization(state, key, ...interpolateParams)));
|
|
609
658
|
}
|
|
610
659
|
getResource(resourceName) {
|
|
611
|
-
return this.
|
|
660
|
+
return this.localizations$.value.get(resourceName);
|
|
612
661
|
}
|
|
613
662
|
getResource$(resourceName) {
|
|
614
|
-
return this.
|
|
663
|
+
return this.localizations$.pipe(map(res => res.get(resourceName)));
|
|
615
664
|
}
|
|
616
665
|
/**
|
|
617
666
|
* Returns localized text with the given interpolation parameters in current language.
|
|
@@ -619,7 +668,7 @@ class LocalizationService {
|
|
|
619
668
|
* @param interpolateParams Values to intepolate.
|
|
620
669
|
*/
|
|
621
670
|
instant(key, ...interpolateParams) {
|
|
622
|
-
return getLocalization(this.configState.getAll(), key, ...interpolateParams);
|
|
671
|
+
return this.getLocalization(this.configState.getAll(), key, ...interpolateParams);
|
|
623
672
|
}
|
|
624
673
|
localize(resourceName, key, defaultValue) {
|
|
625
674
|
return this.configState.getOne$('localization').pipe(map(createLocalizer), map(localize => localize(resourceName, key, defaultValue)));
|
|
@@ -635,61 +684,61 @@ class LocalizationService {
|
|
|
635
684
|
const localization = this.configState.getOne('localization');
|
|
636
685
|
return createLocalizerWithFallback(localization)(resourceNames, keys, defaultValue);
|
|
637
686
|
}
|
|
687
|
+
getLocalization(state, key, ...interpolateParams) {
|
|
688
|
+
if (!key)
|
|
689
|
+
key = '';
|
|
690
|
+
let defaultValue;
|
|
691
|
+
if (typeof key !== 'string') {
|
|
692
|
+
defaultValue = key.defaultValue;
|
|
693
|
+
key = key.key;
|
|
694
|
+
}
|
|
695
|
+
const keys = key.split('::');
|
|
696
|
+
const warn = (message) => {
|
|
697
|
+
if (isDevMode)
|
|
698
|
+
console.warn(message);
|
|
699
|
+
};
|
|
700
|
+
if (keys.length < 2) {
|
|
701
|
+
warn('The localization source separator (::) not found.');
|
|
702
|
+
return defaultValue || key;
|
|
703
|
+
}
|
|
704
|
+
if (!state.localization)
|
|
705
|
+
return defaultValue || keys[1];
|
|
706
|
+
const sourceName = keys[0] || state.localization.defaultResourceName;
|
|
707
|
+
const sourceKey = keys[1];
|
|
708
|
+
if (sourceName === '_') {
|
|
709
|
+
return defaultValue || sourceKey;
|
|
710
|
+
}
|
|
711
|
+
if (!sourceName) {
|
|
712
|
+
warn('Localization source name is not specified and the defaultResourceName was not defined!');
|
|
713
|
+
return defaultValue || sourceKey;
|
|
714
|
+
}
|
|
715
|
+
const source = this.localizations$.value.get(sourceName);
|
|
716
|
+
if (!source) {
|
|
717
|
+
warn('Could not find localization source: ' + sourceName);
|
|
718
|
+
return defaultValue || sourceKey;
|
|
719
|
+
}
|
|
720
|
+
let localization = source[sourceKey];
|
|
721
|
+
if (typeof localization === 'undefined') {
|
|
722
|
+
return defaultValue || sourceKey;
|
|
723
|
+
}
|
|
724
|
+
interpolateParams = interpolateParams.filter(params => params != null);
|
|
725
|
+
if (localization)
|
|
726
|
+
localization = interpolate(localization, interpolateParams);
|
|
727
|
+
if (typeof localization !== 'string')
|
|
728
|
+
localization = '';
|
|
729
|
+
return localization || defaultValue || key;
|
|
730
|
+
}
|
|
638
731
|
}
|
|
639
|
-
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
640
|
-
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
732
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
733
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, providedIn: 'root' });
|
|
734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationService, decorators: [{
|
|
642
735
|
type: Injectable,
|
|
643
736
|
args: [{ providedIn: 'root' }]
|
|
644
737
|
}], ctorParameters: function () { return [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
|
|
645
738
|
type: Optional
|
|
646
739
|
}, {
|
|
647
740
|
type: SkipSelf
|
|
648
|
-
}] }, { type: ConfigStateService }]; } });
|
|
649
|
-
function getLocalization(state, key, ...interpolateParams) {
|
|
650
|
-
if (!key)
|
|
651
|
-
key = '';
|
|
652
|
-
let defaultValue;
|
|
653
|
-
if (typeof key !== 'string') {
|
|
654
|
-
defaultValue = key.defaultValue;
|
|
655
|
-
key = key.key;
|
|
656
|
-
}
|
|
657
|
-
const keys = key.split('::');
|
|
658
|
-
const warn = (message) => {
|
|
659
|
-
if (isDevMode)
|
|
660
|
-
console.warn(message);
|
|
661
|
-
};
|
|
662
|
-
if (keys.length < 2) {
|
|
663
|
-
warn('The localization source separator (::) not found.');
|
|
664
|
-
return defaultValue || key;
|
|
665
|
-
}
|
|
666
|
-
if (!state.localization)
|
|
667
|
-
return defaultValue || keys[1];
|
|
668
|
-
const sourceName = keys[0] || state.localization.defaultResourceName;
|
|
669
|
-
const sourceKey = keys[1];
|
|
670
|
-
if (sourceName === '_') {
|
|
671
|
-
return defaultValue || sourceKey;
|
|
672
|
-
}
|
|
673
|
-
if (!sourceName) {
|
|
674
|
-
warn('Localization source name is not specified and the defaultResourceName was not defined!');
|
|
675
|
-
return defaultValue || sourceKey;
|
|
676
|
-
}
|
|
677
|
-
const source = state.localization.values[sourceName];
|
|
678
|
-
if (!source) {
|
|
679
|
-
warn('Could not find localization source: ' + sourceName);
|
|
680
|
-
return defaultValue || sourceKey;
|
|
681
|
-
}
|
|
682
|
-
let localization = source[sourceKey];
|
|
683
|
-
if (typeof localization === 'undefined') {
|
|
684
|
-
return defaultValue || sourceKey;
|
|
685
|
-
}
|
|
686
|
-
interpolateParams = interpolateParams.filter(params => params != null);
|
|
687
|
-
if (localization)
|
|
688
|
-
localization = interpolate(localization, interpolateParams);
|
|
689
|
-
if (typeof localization !== 'string')
|
|
690
|
-
localization = '';
|
|
691
|
-
return localization || defaultValue || key;
|
|
692
|
-
}
|
|
741
|
+
}] }, { type: ConfigStateService }]; } });
|
|
693
742
|
|
|
694
743
|
function findRoute(routesService, path) {
|
|
695
744
|
const node = routesService.find(route => route.path === path);
|
|
@@ -750,9 +799,9 @@ class ReplaceableComponentsService {
|
|
|
750
799
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
751
800
|
}
|
|
752
801
|
}
|
|
753
|
-
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
754
|
-
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
802
|
+
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
803
|
+
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
|
|
804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
756
805
|
type: Injectable,
|
|
757
806
|
args: [{ providedIn: 'root' }]
|
|
758
807
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.Router }]; } });
|
|
@@ -783,9 +832,9 @@ class RouterEvents {
|
|
|
783
832
|
return this.getNavigationEvents(...keys);
|
|
784
833
|
}
|
|
785
834
|
}
|
|
786
|
-
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
787
|
-
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
835
|
+
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
836
|
+
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, providedIn: 'root' });
|
|
837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterEvents, decorators: [{
|
|
789
838
|
type: Injectable,
|
|
790
839
|
args: [{ providedIn: 'root' }]
|
|
791
840
|
}], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
|
|
@@ -903,9 +952,9 @@ class PermissionService {
|
|
|
903
952
|
return grantedPolicies[key] || false;
|
|
904
953
|
}
|
|
905
954
|
}
|
|
906
|
-
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
907
|
-
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
955
|
+
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
956
|
+
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, providedIn: 'root' });
|
|
957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionService, decorators: [{
|
|
909
958
|
type: Injectable,
|
|
910
959
|
args: [{ providedIn: 'root' }]
|
|
911
960
|
}], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
|
|
@@ -1036,16 +1085,16 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
1036
1085
|
this.subscription.unsubscribe();
|
|
1037
1086
|
}
|
|
1038
1087
|
}
|
|
1039
|
-
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1040
|
-
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1088
|
+
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1089
|
+
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService });
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
1042
1091
|
type: Injectable
|
|
1043
1092
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1044
1093
|
class RoutesService extends AbstractNavTreeService {
|
|
1045
1094
|
}
|
|
1046
|
-
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1047
|
-
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1095
|
+
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1096
|
+
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, providedIn: 'root' });
|
|
1097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesService, decorators: [{
|
|
1049
1098
|
type: Injectable,
|
|
1050
1099
|
args: [{ providedIn: 'root' }]
|
|
1051
1100
|
}] });
|
|
@@ -1082,9 +1131,9 @@ class SubscriptionService {
|
|
|
1082
1131
|
this.subscription = new Subscription();
|
|
1083
1132
|
}
|
|
1084
1133
|
}
|
|
1085
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1086
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1134
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1135
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService });
|
|
1136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
1088
1137
|
type: Injectable
|
|
1089
1138
|
}] });
|
|
1090
1139
|
|
|
@@ -1106,7 +1155,6 @@ class DynamicLayoutComponent {
|
|
|
1106
1155
|
this.route = injector.get(ActivatedRoute);
|
|
1107
1156
|
this.router = injector.get(Router);
|
|
1108
1157
|
this.routes = injector.get(RoutesService);
|
|
1109
|
-
this.getLayout();
|
|
1110
1158
|
this.checkLayoutOnNavigationEnd();
|
|
1111
1159
|
this.listenToLanguageChange();
|
|
1112
1160
|
}
|
|
@@ -1146,15 +1194,15 @@ class DynamicLayoutComponent {
|
|
|
1146
1194
|
return this.replaceableComponents.get(key);
|
|
1147
1195
|
}
|
|
1148
1196
|
}
|
|
1149
|
-
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1150
|
-
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1197
|
+
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1198
|
+
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1151
1199
|
<ng-container *ngTemplateOutlet="layout ? componentOutlet : routerOutlet"></ng-container>
|
|
1152
1200
|
<ng-template #routerOutlet><router-outlet></router-outlet></ng-template>
|
|
1153
1201
|
<ng-template #componentOutlet
|
|
1154
1202
|
><ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container
|
|
1155
1203
|
></ng-template>
|
|
1156
1204
|
`, 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.
|
|
1205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
1158
1206
|
type: Component,
|
|
1159
1207
|
args: [{
|
|
1160
1208
|
selector: 'abp-dynamic-layout',
|
|
@@ -1190,11 +1238,11 @@ class ReplaceableRouteContainerComponent {
|
|
|
1190
1238
|
});
|
|
1191
1239
|
}
|
|
1192
1240
|
}
|
|
1193
|
-
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1194
|
-
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1241
|
+
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1242
|
+
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1195
1243
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
1196
1244
|
`, isInline: true, directives: [{ type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
1198
1246
|
type: Component,
|
|
1199
1247
|
args: [{
|
|
1200
1248
|
selector: 'abp-replaceable-route-container',
|
|
@@ -1207,9 +1255,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
1207
1255
|
|
|
1208
1256
|
class RouterOutletComponent {
|
|
1209
1257
|
}
|
|
1210
|
-
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1211
|
-
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1258
|
+
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1259
|
+
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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"] }] });
|
|
1260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
1213
1261
|
type: Component,
|
|
1214
1262
|
args: [{
|
|
1215
1263
|
selector: 'abp-router-outlet',
|
|
@@ -1557,15 +1605,21 @@ const differentLocales = {
|
|
|
1557
1605
|
class AutofocusDirective {
|
|
1558
1606
|
constructor(elRef) {
|
|
1559
1607
|
this.elRef = elRef;
|
|
1560
|
-
this.
|
|
1608
|
+
this._delay = 0;
|
|
1609
|
+
}
|
|
1610
|
+
set delay(val) {
|
|
1611
|
+
this._delay = Number(val) || 0;
|
|
1612
|
+
}
|
|
1613
|
+
get delay() {
|
|
1614
|
+
return this._delay;
|
|
1561
1615
|
}
|
|
1562
1616
|
ngAfterViewInit() {
|
|
1563
1617
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
1564
1618
|
}
|
|
1565
1619
|
}
|
|
1566
|
-
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1567
|
-
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1620
|
+
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1621
|
+
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
1569
1623
|
type: Directive,
|
|
1570
1624
|
args: [{
|
|
1571
1625
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1590,9 +1644,9 @@ class InputEventDebounceDirective {
|
|
|
1590
1644
|
});
|
|
1591
1645
|
}
|
|
1592
1646
|
}
|
|
1593
|
-
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1594
|
-
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1647
|
+
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1648
|
+
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
1596
1650
|
type: Directive,
|
|
1597
1651
|
args: [{
|
|
1598
1652
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1720,9 +1774,9 @@ class ForDirective {
|
|
|
1720
1774
|
}
|
|
1721
1775
|
}
|
|
1722
1776
|
}
|
|
1723
|
-
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1724
|
-
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1777
|
+
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1778
|
+
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ForDirective, decorators: [{
|
|
1726
1780
|
type: Directive,
|
|
1727
1781
|
args: [{
|
|
1728
1782
|
selector: '[abpFor]',
|
|
@@ -1783,9 +1837,9 @@ class FormSubmitDirective {
|
|
|
1783
1837
|
this.cdRef.detectChanges();
|
|
1784
1838
|
}
|
|
1785
1839
|
}
|
|
1786
|
-
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1787
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1840
|
+
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1841
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1789
1843
|
type: Directive,
|
|
1790
1844
|
args: [{
|
|
1791
1845
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1823,9 +1877,9 @@ class InitDirective {
|
|
|
1823
1877
|
this.init.emit(this.elRef);
|
|
1824
1878
|
}
|
|
1825
1879
|
}
|
|
1826
|
-
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1827
|
-
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1880
|
+
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1881
|
+
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
|
|
1882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: InitDirective, decorators: [{
|
|
1829
1883
|
type: Directive,
|
|
1830
1884
|
args: [{ selector: '[abpInit]' }]
|
|
1831
1885
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { init: [{
|
|
@@ -1834,9 +1888,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
1834
1888
|
}] } });
|
|
1835
1889
|
|
|
1836
1890
|
class PermissionDirective {
|
|
1837
|
-
constructor(
|
|
1838
|
-
this.elRef = elRef;
|
|
1839
|
-
this.renderer = renderer;
|
|
1891
|
+
constructor(templateRef, vcRef, permissionService, cdRef) {
|
|
1840
1892
|
this.templateRef = templateRef;
|
|
1841
1893
|
this.vcRef = vcRef;
|
|
1842
1894
|
this.permissionService = permissionService;
|
|
@@ -1847,7 +1899,7 @@ class PermissionDirective {
|
|
|
1847
1899
|
this.subscription.unsubscribe();
|
|
1848
1900
|
}
|
|
1849
1901
|
this.subscription = this.permissionService
|
|
1850
|
-
.getGrantedPolicy$(this.condition)
|
|
1902
|
+
.getGrantedPolicy$(this.condition || '')
|
|
1851
1903
|
.pipe(distinctUntilChanged())
|
|
1852
1904
|
.subscribe(isGranted => {
|
|
1853
1905
|
this.vcRef.clear();
|
|
@@ -1864,14 +1916,14 @@ class PermissionDirective {
|
|
|
1864
1916
|
this.check();
|
|
1865
1917
|
}
|
|
1866
1918
|
}
|
|
1867
|
-
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1868
|
-
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1919
|
+
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1920
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
|
|
1921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1870
1922
|
type: Directive,
|
|
1871
1923
|
args: [{
|
|
1872
1924
|
selector: '[abpPermission]',
|
|
1873
1925
|
}]
|
|
1874
|
-
}], ctorParameters: function () { return [{ type: i0.
|
|
1926
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1875
1927
|
type: Optional
|
|
1876
1928
|
}] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { condition: [{
|
|
1877
1929
|
type: Input,
|
|
@@ -1894,7 +1946,7 @@ class ReplaceableTemplateDirective {
|
|
|
1894
1946
|
this.defaultComponentSubscriptions = {};
|
|
1895
1947
|
this.initialized = false;
|
|
1896
1948
|
this.context = {
|
|
1897
|
-
initTemplate: ref => {
|
|
1949
|
+
initTemplate: (ref) => {
|
|
1898
1950
|
this.resetDefaultComponent();
|
|
1899
1951
|
this.defaultComponentRef = ref;
|
|
1900
1952
|
this.setDefaultComponentInputs();
|
|
@@ -1947,8 +1999,9 @@ class ReplaceableTemplateDirective {
|
|
|
1947
1999
|
for (const key in this.data.outputs) {
|
|
1948
2000
|
if (Object.prototype.hasOwnProperty.call(this.data.outputs, key)) {
|
|
1949
2001
|
if (!this.defaultComponentSubscriptions[key]) {
|
|
1950
|
-
this.defaultComponentSubscriptions[key] = this.defaultComponentRef[key].subscribe(value => {
|
|
1951
|
-
|
|
2002
|
+
this.defaultComponentSubscriptions[key] = this.defaultComponentRef[key].subscribe((value) => {
|
|
2003
|
+
var _a;
|
|
2004
|
+
(_a = this.data.outputs) === null || _a === void 0 ? void 0 : _a[key](value);
|
|
1952
2005
|
});
|
|
1953
2006
|
}
|
|
1954
2007
|
}
|
|
@@ -1956,15 +2009,18 @@ class ReplaceableTemplateDirective {
|
|
|
1956
2009
|
}
|
|
1957
2010
|
}
|
|
1958
2011
|
setProvidedData() {
|
|
1959
|
-
this.providedData = Object.assign(Object.assign({}, this.data), { inputs: {} });
|
|
2012
|
+
this.providedData = Object.assign(Object.assign({ outputs: {} }, this.data), { inputs: {} });
|
|
1960
2013
|
if (!this.data.inputs)
|
|
1961
2014
|
return;
|
|
1962
|
-
Object.defineProperties(this.providedData.inputs, Object.assign({}, Object.keys(this.data.inputs).reduce((acc, key) =>
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
2015
|
+
Object.defineProperties(this.providedData.inputs, Object.assign({}, Object.keys(this.data.inputs).reduce((acc, key) => {
|
|
2016
|
+
var _a;
|
|
2017
|
+
return (Object.assign(Object.assign({}, acc), { [key]: Object.assign({ enumerable: true, configurable: true, get: () => { var _a; return (_a = this.data.inputs[key]) === null || _a === void 0 ? void 0 : _a.value; } }, (((_a = this.data.inputs[key]) === null || _a === void 0 ? void 0 : _a.twoWay) && {
|
|
2018
|
+
set: (newValue) => {
|
|
2019
|
+
this.data.inputs[key].value = newValue;
|
|
2020
|
+
this.data.outputs[`${key}Change`](newValue);
|
|
2021
|
+
},
|
|
2022
|
+
})) }));
|
|
2023
|
+
}, {})));
|
|
1968
2024
|
}
|
|
1969
2025
|
resetDefaultComponent() {
|
|
1970
2026
|
Object.keys(this.defaultComponentSubscriptions).forEach(key => {
|
|
@@ -1974,9 +2030,9 @@ class ReplaceableTemplateDirective {
|
|
|
1974
2030
|
this.defaultComponentRef = null;
|
|
1975
2031
|
}
|
|
1976
2032
|
}
|
|
1977
|
-
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1978
|
-
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
1979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2033
|
+
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2034
|
+
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
1980
2036
|
type: Directive,
|
|
1981
2037
|
args: [{
|
|
1982
2038
|
selector: '[abpReplaceableTemplate]',
|
|
@@ -2000,9 +2056,9 @@ class StopPropagationDirective {
|
|
|
2000
2056
|
});
|
|
2001
2057
|
}
|
|
2002
2058
|
}
|
|
2003
|
-
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2004
|
-
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
2005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2059
|
+
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2060
|
+
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 });
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
2006
2062
|
type: Directive,
|
|
2007
2063
|
args: [{
|
|
2008
2064
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -2030,9 +2086,9 @@ class OAuthConfigurationHandler {
|
|
|
2030
2086
|
});
|
|
2031
2087
|
}
|
|
2032
2088
|
}
|
|
2033
|
-
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2034
|
-
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2089
|
+
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, deps: [{ token: i1$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2090
|
+
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
|
|
2091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
|
|
2036
2092
|
type: Injectable,
|
|
2037
2093
|
args: [{
|
|
2038
2094
|
providedIn: 'root',
|
|
@@ -2062,9 +2118,9 @@ class RoutesHandler {
|
|
|
2062
2118
|
});
|
|
2063
2119
|
}
|
|
2064
2120
|
}
|
|
2065
|
-
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2066
|
-
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2121
|
+
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2122
|
+
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
|
|
2123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
2068
2124
|
type: Injectable,
|
|
2069
2125
|
args: [{
|
|
2070
2126
|
providedIn: 'root',
|
|
@@ -2159,9 +2215,9 @@ class HttpWaitService {
|
|
|
2159
2215
|
return endpoint === request.endpoint && method === request.method;
|
|
2160
2216
|
}
|
|
2161
2217
|
}
|
|
2162
|
-
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2163
|
-
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2218
|
+
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2219
|
+
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
|
|
2220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
2165
2221
|
type: Injectable,
|
|
2166
2222
|
args: [{
|
|
2167
2223
|
providedIn: 'root',
|
|
@@ -2202,9 +2258,9 @@ class ApiInterceptor {
|
|
|
2202
2258
|
return headers;
|
|
2203
2259
|
}
|
|
2204
2260
|
}
|
|
2205
|
-
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2206
|
-
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2261
|
+
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, deps: [{ token: i1$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2262
|
+
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
|
|
2263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
2208
2264
|
type: Injectable,
|
|
2209
2265
|
args: [{
|
|
2210
2266
|
providedIn: 'root',
|
|
@@ -2219,13 +2275,22 @@ class LocalizationPipe {
|
|
|
2219
2275
|
this.localization = localization;
|
|
2220
2276
|
}
|
|
2221
2277
|
transform(value = '', ...interpolateParams) {
|
|
2222
|
-
|
|
2278
|
+
const params = interpolateParams.reduce((acc, val) => {
|
|
2279
|
+
if (!acc) {
|
|
2280
|
+
return val;
|
|
2281
|
+
}
|
|
2282
|
+
if (!val) {
|
|
2283
|
+
return acc;
|
|
2284
|
+
}
|
|
2285
|
+
return Array.isArray(val) ? [...acc, ...val] : [...acc, val];
|
|
2286
|
+
}, []) || [];
|
|
2287
|
+
return this.localization.instant(value, ...params);
|
|
2223
2288
|
}
|
|
2224
2289
|
}
|
|
2225
|
-
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2226
|
-
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
|
2227
|
-
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2290
|
+
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2291
|
+
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
|
|
2292
|
+
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe });
|
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
2229
2294
|
type: Injectable
|
|
2230
2295
|
}, {
|
|
2231
2296
|
type: Pipe,
|
|
@@ -2236,10 +2301,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
2236
2301
|
|
|
2237
2302
|
class LocalizationModule {
|
|
2238
2303
|
}
|
|
2239
|
-
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2240
|
-
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2241
|
-
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2304
|
+
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2305
|
+
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
|
|
2306
|
+
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule });
|
|
2307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
2243
2308
|
type: NgModule,
|
|
2244
2309
|
args: [{
|
|
2245
2310
|
exports: [LocalizationPipe],
|
|
@@ -2282,10 +2347,10 @@ class SortPipe {
|
|
|
2282
2347
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
2283
2348
|
}
|
|
2284
2349
|
}
|
|
2285
|
-
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2286
|
-
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.
|
|
2287
|
-
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2350
|
+
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2351
|
+
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, name: "abpSort" });
|
|
2352
|
+
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe });
|
|
2353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SortPipe, decorators: [{
|
|
2289
2354
|
type: Injectable
|
|
2290
2355
|
}, {
|
|
2291
2356
|
type: Pipe,
|
|
@@ -2395,6 +2460,9 @@ class AuthFlowStrategy {
|
|
|
2395
2460
|
if (shouldClear)
|
|
2396
2461
|
clearOAuthStorage(oAuthStorage);
|
|
2397
2462
|
this.oAuthService.configure(this.oAuthConfig);
|
|
2463
|
+
this.oAuthService.events
|
|
2464
|
+
.pipe(filter(event => event.type === 'token_refresh_error'))
|
|
2465
|
+
.subscribe(() => this.navigateToLogin());
|
|
2398
2466
|
return this.oAuthService
|
|
2399
2467
|
.loadDiscoveryDocument()
|
|
2400
2468
|
.then(() => {
|
|
@@ -2594,9 +2662,9 @@ class AuthService {
|
|
|
2594
2662
|
return this.strategy.login(params);
|
|
2595
2663
|
}
|
|
2596
2664
|
}
|
|
2597
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2598
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2665
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2666
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
2667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthService, decorators: [{
|
|
2600
2668
|
type: Injectable,
|
|
2601
2669
|
args: [{
|
|
2602
2670
|
providedIn: 'root',
|
|
@@ -2651,9 +2719,9 @@ class AbpTenantService {
|
|
|
2651
2719
|
}, { apiName: this.apiName });
|
|
2652
2720
|
}
|
|
2653
2721
|
}
|
|
2654
|
-
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2655
|
-
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2722
|
+
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2723
|
+
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
|
|
2724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
2657
2725
|
type: Injectable,
|
|
2658
2726
|
args: [{
|
|
2659
2727
|
providedIn: 'root',
|
|
@@ -2686,9 +2754,9 @@ class MultiTenancyService {
|
|
|
2686
2754
|
.pipe(switchMap(this.setTenantToState));
|
|
2687
2755
|
}
|
|
2688
2756
|
}
|
|
2689
|
-
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2690
|
-
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2757
|
+
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2758
|
+
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
|
|
2759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
2692
2760
|
type: Injectable,
|
|
2693
2761
|
args: [{ providedIn: 'root' }]
|
|
2694
2762
|
}], ctorParameters: function () { return [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
|
|
@@ -2834,8 +2902,8 @@ function storageFactory() {
|
|
|
2834
2902
|
*/
|
|
2835
2903
|
class BaseCoreModule {
|
|
2836
2904
|
}
|
|
2837
|
-
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2838
|
-
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2905
|
+
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2906
|
+
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
2839
2907
|
AutofocusDirective,
|
|
2840
2908
|
DynamicLayoutComponent,
|
|
2841
2909
|
ForDirective,
|
|
@@ -2872,7 +2940,7 @@ BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2872
2940
|
RouterOutletComponent,
|
|
2873
2941
|
SortPipe,
|
|
2874
2942
|
StopPropagationDirective] });
|
|
2875
|
-
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2943
|
+
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
2876
2944
|
OAuthModule,
|
|
2877
2945
|
CommonModule,
|
|
2878
2946
|
HttpClientModule,
|
|
@@ -2886,7 +2954,7 @@ BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2886
2954
|
ReactiveFormsModule,
|
|
2887
2955
|
RouterModule,
|
|
2888
2956
|
LocalizationModule] });
|
|
2889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
2890
2958
|
type: NgModule,
|
|
2891
2959
|
args: [{
|
|
2892
2960
|
exports: [
|
|
@@ -2948,9 +3016,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
2948
3016
|
*/
|
|
2949
3017
|
class RootCoreModule {
|
|
2950
3018
|
}
|
|
2951
|
-
RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2952
|
-
RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2953
|
-
RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
3019
|
+
RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3020
|
+
RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1$3.OAuthModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
|
|
3021
|
+
RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, imports: [[
|
|
2954
3022
|
BaseCoreModule,
|
|
2955
3023
|
LocalizationModule,
|
|
2956
3024
|
OAuthModule.forRoot(),
|
|
@@ -2959,7 +3027,7 @@ RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2959
3027
|
headerName: 'RequestVerificationToken',
|
|
2960
3028
|
}),
|
|
2961
3029
|
], BaseCoreModule, LocalizationModule] });
|
|
2962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
2963
3031
|
type: NgModule,
|
|
2964
3032
|
args: [{
|
|
2965
3033
|
exports: [BaseCoreModule, LocalizationModule],
|
|
@@ -3030,14 +3098,33 @@ class CoreModule {
|
|
|
3030
3098
|
},
|
|
3031
3099
|
{ provide: OAuthStorage, useFactory: storageFactory },
|
|
3032
3100
|
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
|
|
3101
|
+
{
|
|
3102
|
+
provide: LOCALIZATIONS,
|
|
3103
|
+
multi: true,
|
|
3104
|
+
useValue: localizationContributor(options.localizations),
|
|
3105
|
+
deps: [LocalizationService],
|
|
3106
|
+
},
|
|
3107
|
+
],
|
|
3108
|
+
};
|
|
3109
|
+
}
|
|
3110
|
+
static forChild(options = {}) {
|
|
3111
|
+
return {
|
|
3112
|
+
ngModule: RootCoreModule,
|
|
3113
|
+
providers: [
|
|
3114
|
+
{
|
|
3115
|
+
provide: LOCALIZATIONS,
|
|
3116
|
+
multi: true,
|
|
3117
|
+
useValue: localizationContributor(options.localizations),
|
|
3118
|
+
deps: [LocalizationService],
|
|
3119
|
+
},
|
|
3033
3120
|
],
|
|
3034
3121
|
};
|
|
3035
3122
|
}
|
|
3036
3123
|
}
|
|
3037
|
-
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3038
|
-
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
3039
|
-
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
3040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3124
|
+
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3125
|
+
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
|
|
3126
|
+
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
|
|
3127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: CoreModule, decorators: [{
|
|
3041
3128
|
type: NgModule,
|
|
3042
3129
|
args: [{
|
|
3043
3130
|
exports: [BaseCoreModule],
|
|
@@ -3062,9 +3149,9 @@ class AuthGuard {
|
|
|
3062
3149
|
return false;
|
|
3063
3150
|
}
|
|
3064
3151
|
}
|
|
3065
|
-
AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3066
|
-
AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3152
|
+
AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, deps: [{ token: i1$3.OAuthService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3153
|
+
AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, providedIn: 'root' });
|
|
3154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AuthGuard, decorators: [{
|
|
3068
3155
|
type: Injectable,
|
|
3069
3156
|
args: [{
|
|
3070
3157
|
providedIn: 'root',
|
|
@@ -3093,9 +3180,9 @@ class PermissionGuard {
|
|
|
3093
3180
|
}));
|
|
3094
3181
|
}
|
|
3095
3182
|
}
|
|
3096
|
-
PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3097
|
-
PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3098
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3183
|
+
PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, deps: [{ token: i1$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3184
|
+
PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
|
|
3185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
3099
3186
|
type: Injectable,
|
|
3100
3187
|
args: [{
|
|
3101
3188
|
providedIn: 'root',
|
|
@@ -3232,9 +3319,9 @@ class AbpApiDefinitionService {
|
|
|
3232
3319
|
}, { apiName: this.apiName });
|
|
3233
3320
|
}
|
|
3234
3321
|
}
|
|
3235
|
-
AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3236
|
-
AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3322
|
+
AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3323
|
+
AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
|
|
3324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
3238
3325
|
type: Injectable,
|
|
3239
3326
|
args: [{
|
|
3240
3327
|
providedIn: 'root',
|
|
@@ -3257,9 +3344,9 @@ class ContentProjectionService {
|
|
|
3257
3344
|
return projectionStrategy.injectContent(injector);
|
|
3258
3345
|
}
|
|
3259
3346
|
}
|
|
3260
|
-
ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3261
|
-
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3347
|
+
ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3348
|
+
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
|
|
3349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
3263
3350
|
type: Injectable,
|
|
3264
3351
|
args: [{ providedIn: 'root' }]
|
|
3265
3352
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
@@ -3474,9 +3561,9 @@ class DomInsertionService {
|
|
|
3474
3561
|
return this.inserted.has(hash);
|
|
3475
3562
|
}
|
|
3476
3563
|
}
|
|
3477
|
-
DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3478
|
-
DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3564
|
+
DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3565
|
+
DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
|
|
3566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
3480
3567
|
type: Injectable,
|
|
3481
3568
|
args: [{ providedIn: 'root' }]
|
|
3482
3569
|
}] });
|
|
@@ -3508,9 +3595,9 @@ class ResourceWaitService {
|
|
|
3508
3595
|
this.store.patch({ resources });
|
|
3509
3596
|
}
|
|
3510
3597
|
}
|
|
3511
|
-
ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3512
|
-
ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3598
|
+
ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3599
|
+
ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
|
|
3600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
3514
3601
|
type: Injectable,
|
|
3515
3602
|
args: [{
|
|
3516
3603
|
providedIn: 'root',
|
|
@@ -3540,9 +3627,9 @@ class LazyLoadService {
|
|
|
3540
3627
|
return true;
|
|
3541
3628
|
}
|
|
3542
3629
|
}
|
|
3543
|
-
LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3544
|
-
LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3630
|
+
LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3631
|
+
LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
|
|
3632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
3546
3633
|
type: Injectable,
|
|
3547
3634
|
args: [{
|
|
3548
3635
|
providedIn: 'root',
|
|
@@ -3643,9 +3730,9 @@ class ListService {
|
|
|
3643
3730
|
});
|
|
3644
3731
|
}
|
|
3645
3732
|
}
|
|
3646
|
-
ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3647
|
-
ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3733
|
+
ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3734
|
+
ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService });
|
|
3735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: ListService, decorators: [{
|
|
3649
3736
|
type: Injectable
|
|
3650
3737
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3651
3738
|
|
|
@@ -3682,9 +3769,9 @@ class RouterWaitService {
|
|
|
3682
3769
|
this.store.patch({ loading });
|
|
3683
3770
|
}
|
|
3684
3771
|
}
|
|
3685
|
-
RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3686
|
-
RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3772
|
+
RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3773
|
+
RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
|
|
3774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
3688
3775
|
type: Injectable,
|
|
3689
3776
|
args: [{
|
|
3690
3777
|
providedIn: 'root',
|
|
@@ -3701,9 +3788,9 @@ class TrackByService {
|
|
|
3701
3788
|
this.byDeep = trackByDeep;
|
|
3702
3789
|
}
|
|
3703
3790
|
}
|
|
3704
|
-
TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3705
|
-
TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
3706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3791
|
+
TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3792
|
+
TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, providedIn: 'root' });
|
|
3793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: TrackByService, decorators: [{
|
|
3707
3794
|
type: Injectable,
|
|
3708
3795
|
args: [{
|
|
3709
3796
|
providedIn: 'root',
|
|
@@ -3777,13 +3864,17 @@ const CONTENT_SECURITY_STRATEGY = {
|
|
|
3777
3864
|
};
|
|
3778
3865
|
|
|
3779
3866
|
class ContentStrategy {
|
|
3780
|
-
constructor(content, domStrategy = DOM_STRATEGY.AppendToHead(), contentSecurityStrategy = CONTENT_SECURITY_STRATEGY.None()) {
|
|
3867
|
+
constructor(content, domStrategy = DOM_STRATEGY.AppendToHead(), contentSecurityStrategy = CONTENT_SECURITY_STRATEGY.None(), options = {}) {
|
|
3781
3868
|
this.content = content;
|
|
3782
3869
|
this.domStrategy = domStrategy;
|
|
3783
3870
|
this.contentSecurityStrategy = contentSecurityStrategy;
|
|
3871
|
+
this.options = options;
|
|
3784
3872
|
}
|
|
3785
3873
|
insertElement() {
|
|
3786
3874
|
const element = this.createElement();
|
|
3875
|
+
if (this.options && Object.keys(this.options).length > 0) {
|
|
3876
|
+
Object.keys(this.options).forEach(key => (element[key] = this.options[key]));
|
|
3877
|
+
}
|
|
3787
3878
|
this.contentSecurityStrategy.applyCSP(element);
|
|
3788
3879
|
this.domStrategy.insertElement(element);
|
|
3789
3880
|
return element;
|
|
@@ -3804,17 +3895,17 @@ class ScriptContentStrategy extends ContentStrategy {
|
|
|
3804
3895
|
}
|
|
3805
3896
|
}
|
|
3806
3897
|
const CONTENT_STRATEGY = {
|
|
3807
|
-
AppendScriptToBody(content) {
|
|
3808
|
-
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToBody());
|
|
3898
|
+
AppendScriptToBody(content, options) {
|
|
3899
|
+
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToBody(), undefined, options);
|
|
3809
3900
|
},
|
|
3810
|
-
AppendScriptToHead(content) {
|
|
3811
|
-
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToHead());
|
|
3901
|
+
AppendScriptToHead(content, options) {
|
|
3902
|
+
return new ScriptContentStrategy(content, DOM_STRATEGY.AppendToHead(), undefined, options);
|
|
3812
3903
|
},
|
|
3813
|
-
AppendStyleToHead(content) {
|
|
3814
|
-
return new StyleContentStrategy(content, DOM_STRATEGY.AppendToHead());
|
|
3904
|
+
AppendStyleToHead(content, options) {
|
|
3905
|
+
return new StyleContentStrategy(content, DOM_STRATEGY.AppendToHead(), undefined, options);
|
|
3815
3906
|
},
|
|
3816
|
-
PrependStyleToHead(content) {
|
|
3817
|
-
return new StyleContentStrategy(content, DOM_STRATEGY.PrependToHead());
|
|
3907
|
+
PrependStyleToHead(content, options) {
|
|
3908
|
+
return new StyleContentStrategy(content, DOM_STRATEGY.PrependToHead(), undefined, options);
|
|
3818
3909
|
},
|
|
3819
3910
|
};
|
|
3820
3911
|
|
|
@@ -4104,5 +4195,5 @@ const AbpValidators = {
|
|
|
4104
4195
|
* Generated bundle index. Do not edit.
|
|
4105
4196
|
*/
|
|
4106
4197
|
|
|
4107
|
-
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 };
|
|
4198
|
+
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, LOCALIZATIONS, 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, localizationContributor, localizations$, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
|
|
4108
4199
|
//# sourceMappingURL=abp-ng.core.js.map
|