@abp/ng.core 4.4.3 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abp-ng.core.d.ts +1 -41
- package/bundles/abp-ng.core-locale.umd.js +1 -1
- package/bundles/abp-ng.core-locale.umd.js.map +1 -1
- package/bundles/abp-ng.core-testing.umd.js +37 -34
- package/bundles/abp-ng.core-testing.umd.js.map +1 -1
- package/bundles/abp-ng.core.umd.js +1403 -1897
- package/bundles/abp-ng.core.umd.js.map +1 -1
- package/esm2015/abp-ng.core.js +1 -40
- package/esm2015/abp-ng.core.js.map +1 -0
- package/esm2015/lib/abstracts/index.js +1 -1
- package/esm2015/lib/abstracts/index.js.map +1 -0
- package/esm2015/lib/abstracts/ng-model.component.js +18 -16
- package/esm2015/lib/abstracts/ng-model.component.js.map +1 -0
- package/esm2015/lib/components/dynamic-layout.component.js +28 -16
- package/esm2015/lib/components/dynamic-layout.component.js.map +1 -0
- package/esm2015/lib/components/index.js +1 -1
- package/esm2015/lib/components/index.js.map +1 -0
- package/esm2015/lib/components/replaceable-route-container.component.js +19 -15
- package/esm2015/lib/components/replaceable-route-container.component.js.map +1 -0
- package/esm2015/lib/components/router-outlet.component.js +12 -9
- package/esm2015/lib/components/router-outlet.component.js.map +1 -0
- package/esm2015/lib/constants/different-locales.js +1 -1
- package/esm2015/lib/constants/different-locales.js.map +1 -0
- package/esm2015/lib/constants/index.js +1 -1
- package/esm2015/lib/constants/index.js.map +1 -0
- package/esm2015/lib/core.module.js +151 -83
- package/esm2015/lib/core.module.js.map +1 -0
- package/esm2015/lib/directives/autofocus.directive.js +14 -13
- package/esm2015/lib/directives/autofocus.directive.js.map +1 -0
- package/esm2015/lib/directives/debounce.directive.js +18 -16
- package/esm2015/lib/directives/debounce.directive.js.map +1 -0
- package/esm2015/lib/directives/for.directive.js +39 -25
- package/esm2015/lib/directives/for.directive.js.map +1 -0
- package/esm2015/lib/directives/form-submit.directive.js +22 -19
- package/esm2015/lib/directives/form-submit.directive.js.map +1 -0
- package/esm2015/lib/directives/index.js +1 -2
- package/esm2015/lib/directives/index.js.map +1 -0
- package/esm2015/lib/directives/init.directive.js +11 -10
- package/esm2015/lib/directives/init.directive.js.map +1 -0
- package/esm2015/lib/directives/permission.directive.js +19 -34
- package/esm2015/lib/directives/permission.directive.js.map +1 -0
- package/esm2015/lib/directives/replaceable-template.directive.js +24 -20
- package/esm2015/lib/directives/replaceable-template.directive.js.map +1 -0
- package/esm2015/lib/directives/stop-propagation.directive.js +16 -15
- package/esm2015/lib/directives/stop-propagation.directive.js.map +1 -0
- package/esm2015/lib/enums/common.js +1 -1
- package/esm2015/lib/enums/common.js.map +1 -0
- package/esm2015/lib/enums/index.js +1 -1
- package/esm2015/lib/enums/index.js.map +1 -0
- package/esm2015/lib/guards/auth.guard.js +9 -11
- package/esm2015/lib/guards/auth.guard.js.map +1 -0
- package/esm2015/lib/guards/index.js +1 -1
- package/esm2015/lib/guards/index.js.map +1 -0
- package/esm2015/lib/guards/permission.guard.js +16 -21
- package/esm2015/lib/guards/permission.guard.js.map +1 -0
- package/esm2015/lib/handlers/oauth-configuration.handler.js +12 -13
- package/esm2015/lib/handlers/oauth-configuration.handler.js.map +1 -0
- package/esm2015/lib/handlers/routes.handler.js +11 -11
- package/esm2015/lib/handlers/routes.handler.js.map +1 -0
- package/esm2015/lib/interceptors/api.interceptor.js +12 -14
- package/esm2015/lib/interceptors/api.interceptor.js.map +1 -0
- package/esm2015/lib/interceptors/index.js +1 -1
- package/esm2015/lib/interceptors/index.js.map +1 -0
- package/esm2015/lib/localization.module.js +12 -7
- package/esm2015/lib/localization.module.js.map +1 -0
- package/esm2015/lib/models/auth.js +1 -1
- package/esm2015/lib/models/auth.js.map +1 -0
- package/esm2015/lib/models/common.js +1 -1
- package/esm2015/lib/models/common.js.map +1 -0
- package/esm2015/lib/models/dtos.js +6 -5
- package/esm2015/lib/models/dtos.js.map +1 -0
- package/esm2015/lib/models/environment.js +1 -1
- package/esm2015/lib/models/environment.js.map +1 -0
- package/esm2015/lib/models/index.js +1 -4
- package/esm2015/lib/models/index.js.map +1 -0
- package/esm2015/lib/models/localization.js +1 -1
- package/esm2015/lib/models/localization.js.map +1 -0
- package/esm2015/lib/models/replaceable-components.js +1 -1
- package/esm2015/lib/models/replaceable-components.js.map +1 -0
- package/esm2015/lib/models/rest.js +1 -1
- package/esm2015/lib/models/rest.js.map +1 -0
- package/esm2015/lib/models/session.js +1 -1
- package/esm2015/lib/models/session.js.map +1 -0
- package/esm2015/lib/models/utility.js +1 -1
- package/esm2015/lib/models/utility.js.map +1 -0
- package/esm2015/lib/pipes/index.js +1 -1
- package/esm2015/lib/pipes/index.js.map +1 -0
- package/esm2015/lib/pipes/localization.pipe.js +14 -10
- package/esm2015/lib/pipes/localization.pipe.js.map +1 -0
- package/esm2015/lib/pipes/sort.pipe.js +13 -7
- package/esm2015/lib/pipes/sort.pipe.js.map +1 -0
- package/esm2015/lib/providers/cookie-language.provider.js +22 -0
- package/esm2015/lib/providers/cookie-language.provider.js.map +1 -0
- package/esm2015/lib/providers/locale.provider.js +1 -1
- package/esm2015/lib/providers/locale.provider.js.map +1 -0
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js +9 -10
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.js.map +1 -0
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js +1 -1
- package/esm2015/lib/proxy/pages/abp/multi-tenancy/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js +9 -10
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js +9 -10
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js +2 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js +2 -1
- package/esm2015/lib/proxy/volo/abp/http/modeling/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/localization/index.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/index.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/localization/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/localization/models.js.map +1 -0
- package/esm2015/lib/proxy/volo/abp/models.js +1 -1
- package/esm2015/lib/proxy/volo/abp/models.js.map +1 -0
- package/esm2015/lib/services/auth.service.js +9 -16
- package/esm2015/lib/services/auth.service.js.map +1 -0
- package/esm2015/lib/services/config-state.service.js +12 -20
- package/esm2015/lib/services/config-state.service.js.map +1 -0
- package/esm2015/lib/services/content-projection.service.js +7 -8
- package/esm2015/lib/services/content-projection.service.js.map +1 -0
- package/esm2015/lib/services/dom-insertion.service.js +7 -5
- package/esm2015/lib/services/dom-insertion.service.js.map +1 -0
- package/esm2015/lib/services/environment.service.js +7 -7
- package/esm2015/lib/services/environment.service.js.map +1 -0
- package/esm2015/lib/services/http-error-reporter.service.js +29 -0
- package/esm2015/lib/services/http-error-reporter.service.js.map +1 -0
- package/esm2015/lib/services/http-wait.service.js +9 -10
- package/esm2015/lib/services/http-wait.service.js.map +1 -0
- package/esm2015/lib/services/index.js +2 -4
- package/esm2015/lib/services/index.js.map +1 -0
- package/esm2015/lib/services/lazy-load.service.js +9 -10
- package/esm2015/lib/services/lazy-load.service.js.map +1 -0
- package/esm2015/lib/services/list.service.js +7 -7
- package/esm2015/lib/services/list.service.js.map +1 -0
- package/esm2015/lib/services/localization.service.js +11 -11
- package/esm2015/lib/services/localization.service.js.map +1 -0
- package/esm2015/lib/services/multi-tenancy.service.js +15 -34
- package/esm2015/lib/services/multi-tenancy.service.js.map +1 -0
- package/esm2015/lib/services/permission.service.js +10 -11
- package/esm2015/lib/services/permission.service.js.map +1 -0
- package/esm2015/lib/services/replaceable-components.service.js +7 -9
- package/esm2015/lib/services/replaceable-components.service.js.map +1 -0
- package/esm2015/lib/services/resource-wait.service.js +9 -7
- package/esm2015/lib/services/resource-wait.service.js.map +1 -0
- package/esm2015/lib/services/rest.service.js +19 -23
- package/esm2015/lib/services/rest.service.js.map +1 -0
- package/esm2015/lib/services/router-events.service.js +7 -8
- package/esm2015/lib/services/router-events.service.js.map +1 -0
- package/esm2015/lib/services/router-wait.service.js +9 -11
- package/esm2015/lib/services/router-wait.service.js.map +1 -0
- package/esm2015/lib/services/routes.service.js +13 -17
- package/esm2015/lib/services/routes.service.js.map +1 -0
- package/esm2015/lib/services/session-state.service.js +9 -10
- package/esm2015/lib/services/session-state.service.js.map +1 -0
- package/esm2015/lib/services/subscription.service.js +7 -4
- package/esm2015/lib/services/subscription.service.js.map +1 -0
- package/esm2015/lib/services/track-by.service.js +12 -8
- package/esm2015/lib/services/track-by.service.js.map +1 -0
- package/esm2015/lib/strategies/auth-flow.strategy.js +9 -7
- package/esm2015/lib/strategies/auth-flow.strategy.js.map +1 -0
- package/esm2015/lib/strategies/container.strategy.js +1 -1
- package/esm2015/lib/strategies/container.strategy.js.map +1 -0
- package/esm2015/lib/strategies/content-security.strategy.js +1 -1
- package/esm2015/lib/strategies/content-security.strategy.js.map +1 -0
- package/esm2015/lib/strategies/content.strategy.js +14 -10
- package/esm2015/lib/strategies/content.strategy.js.map +1 -0
- package/esm2015/lib/strategies/context.strategy.js +1 -2
- package/esm2015/lib/strategies/context.strategy.js.map +1 -0
- package/esm2015/lib/strategies/cross-origin.strategy.js +1 -1
- package/esm2015/lib/strategies/cross-origin.strategy.js.map +1 -0
- package/esm2015/lib/strategies/dom.strategy.js +1 -1
- package/esm2015/lib/strategies/dom.strategy.js.map +1 -0
- package/esm2015/lib/strategies/index.js +1 -1
- package/esm2015/lib/strategies/index.js.map +1 -0
- package/esm2015/lib/strategies/loading.strategy.js +1 -1
- package/esm2015/lib/strategies/loading.strategy.js.map +1 -0
- package/esm2015/lib/strategies/projection.strategy.js +1 -1
- package/esm2015/lib/strategies/projection.strategy.js.map +1 -0
- package/esm2015/lib/tokens/app-config.token.js +1 -1
- package/esm2015/lib/tokens/app-config.token.js.map +1 -0
- package/esm2015/lib/tokens/cookie-language-key.token.js +5 -0
- package/esm2015/lib/tokens/cookie-language-key.token.js.map +1 -0
- package/esm2015/lib/tokens/index.js +3 -2
- package/esm2015/lib/tokens/index.js.map +1 -0
- package/esm2015/lib/tokens/list.token.js +1 -1
- package/esm2015/lib/tokens/list.token.js.map +1 -0
- package/esm2015/lib/tokens/lodaer-delay.token.js +1 -1
- package/esm2015/lib/tokens/lodaer-delay.token.js.map +1 -0
- package/esm2015/lib/tokens/manage-profile.token.js +1 -1
- package/esm2015/lib/tokens/manage-profile.token.js.map +1 -0
- package/esm2015/lib/tokens/options.token.js +1 -1
- package/esm2015/lib/tokens/options.token.js.map +1 -0
- package/esm2015/lib/tokens/tenant-key.token.js +1 -1
- package/esm2015/lib/tokens/tenant-key.token.js.map +1 -0
- package/esm2015/lib/utils/array-utils.js +1 -1
- package/esm2015/lib/utils/array-utils.js.map +1 -0
- package/esm2015/lib/utils/auth-utils.js +1 -1
- package/esm2015/lib/utils/auth-utils.js.map +1 -0
- package/esm2015/lib/utils/common-utils.js +1 -2
- package/esm2015/lib/utils/common-utils.js.map +1 -0
- package/esm2015/lib/utils/date-extensions.js +1 -1
- package/esm2015/lib/utils/date-extensions.js.map +1 -0
- package/esm2015/lib/utils/date-utils.js +1 -1
- package/esm2015/lib/utils/date-utils.js.map +1 -0
- package/esm2015/lib/utils/environment-utils.js +8 -5
- package/esm2015/lib/utils/environment-utils.js.map +1 -0
- package/esm2015/lib/utils/factory-utils.js +1 -1
- package/esm2015/lib/utils/factory-utils.js.map +1 -0
- package/esm2015/lib/utils/file-utils.js +1 -1
- package/esm2015/lib/utils/file-utils.js.map +1 -0
- package/esm2015/lib/utils/form-utils.js +1 -1
- package/esm2015/lib/utils/form-utils.js.map +1 -0
- package/esm2015/lib/utils/generator-utils.js +1 -2
- package/esm2015/lib/utils/generator-utils.js.map +1 -0
- package/esm2015/lib/utils/http-utils.js +1 -1
- package/esm2015/lib/utils/http-utils.js.map +1 -0
- package/esm2015/lib/utils/index.js +1 -2
- package/esm2015/lib/utils/index.js.map +1 -0
- package/esm2015/lib/utils/initial-utils.js +1 -1
- package/esm2015/lib/utils/initial-utils.js.map +1 -0
- package/esm2015/lib/utils/internal-store-utils.js +1 -1
- package/esm2015/lib/utils/internal-store-utils.js.map +1 -0
- package/esm2015/lib/utils/lazy-load-utils.js +1 -2
- package/esm2015/lib/utils/lazy-load-utils.js.map +1 -0
- package/esm2015/lib/utils/localization-utils.js +3 -3
- package/esm2015/lib/utils/localization-utils.js.map +1 -0
- package/esm2015/lib/utils/multi-tenancy-utils.js +1 -1
- package/esm2015/lib/utils/multi-tenancy-utils.js.map +1 -0
- package/esm2015/lib/utils/number-utils.js +1 -2
- package/esm2015/lib/utils/number-utils.js.map +1 -0
- package/esm2015/lib/utils/object-utils.js +1 -1
- package/esm2015/lib/utils/object-utils.js.map +1 -0
- package/esm2015/lib/utils/route-utils.js +1 -1
- package/esm2015/lib/utils/route-utils.js.map +1 -0
- package/esm2015/lib/utils/string-utils.js +1 -1
- package/esm2015/lib/utils/string-utils.js.map +1 -0
- package/esm2015/lib/utils/tree-utils.js +2 -1
- package/esm2015/lib/utils/tree-utils.js.map +1 -0
- package/esm2015/lib/validators/age.validator.js +1 -1
- package/esm2015/lib/validators/age.validator.js.map +1 -0
- package/esm2015/lib/validators/credit-card.validator.js +1 -2
- package/esm2015/lib/validators/credit-card.validator.js.map +1 -0
- package/esm2015/lib/validators/index.js +2 -4
- package/esm2015/lib/validators/index.js.map +1 -0
- package/esm2015/lib/validators/range.validator.js +1 -1
- package/esm2015/lib/validators/range.validator.js.map +1 -0
- package/esm2015/lib/validators/required.validator.js +1 -1
- package/esm2015/lib/validators/required.validator.js.map +1 -0
- package/esm2015/lib/validators/string-length.validator.js +1 -1
- package/esm2015/lib/validators/string-length.validator.js.map +1 -0
- package/esm2015/lib/validators/url.validator.js +1 -1
- package/esm2015/lib/validators/url.validator.js.map +1 -0
- package/esm2015/locale/abp-ng.core-locale.js +1 -1
- package/esm2015/locale/abp-ng.core-locale.js.map +1 -0
- package/esm2015/locale/public-api.js +1 -1
- package/esm2015/locale/public-api.js.map +1 -0
- package/esm2015/locale/utils/register-locale.js +1 -1
- package/esm2015/locale/utils/register-locale.js.map +1 -0
- package/esm2015/public-api.js +10 -15
- package/esm2015/public-api.js.map +1 -0
- package/esm2015/testing/abp-ng.core-testing.js +1 -3
- package/esm2015/testing/abp-ng.core-testing.js.map +1 -0
- package/esm2015/testing/lib/core-testing.module.js +12 -7
- package/esm2015/testing/lib/core-testing.module.js.map +1 -0
- package/esm2015/testing/lib/services/index.js +1 -1
- package/esm2015/testing/lib/services/index.js.map +1 -0
- package/esm2015/testing/lib/services/mock-permission.service.js +9 -10
- package/esm2015/testing/lib/services/mock-permission.service.js.map +1 -0
- package/esm2015/testing/lib/services/mock-rest.service.js +14 -14
- package/esm2015/testing/lib/services/mock-rest.service.js.map +1 -0
- package/esm2015/testing/lib/utils/clear-page.util.js +1 -1
- package/esm2015/testing/lib/utils/clear-page.util.js.map +1 -0
- package/esm2015/testing/lib/utils/index.js +1 -1
- package/esm2015/testing/lib/utils/index.js.map +1 -0
- package/esm2015/testing/lib/utils/wait.util.js +1 -1
- package/esm2015/testing/lib/utils/wait.util.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/fesm2015/abp-ng.core-locale.js.map +1 -1
- package/fesm2015/abp-ng.core-testing.js +32 -30
- package/fesm2015/abp-ng.core-testing.js.map +1 -1
- package/fesm2015/abp-ng.core.js +723 -1138
- package/fesm2015/abp-ng.core.js.map +1 -1
- package/lib/abstracts/ng-model.component.d.ts +6 -3
- package/lib/components/dynamic-layout.component.d.ts +3 -0
- package/lib/components/replaceable-route-container.component.d.ts +3 -0
- package/lib/components/router-outlet.component.d.ts +3 -0
- package/lib/core.module.d.ts +29 -0
- package/lib/directives/autofocus.directive.d.ts +4 -1
- package/lib/directives/debounce.directive.d.ts +3 -0
- package/lib/directives/for.directive.d.ts +3 -0
- package/lib/directives/form-submit.directive.d.ts +3 -0
- package/lib/directives/index.d.ts +0 -1
- package/lib/directives/init.directive.d.ts +3 -0
- package/lib/directives/permission.directive.d.ts +3 -5
- package/lib/directives/replaceable-template.directive.d.ts +3 -0
- package/lib/directives/stop-propagation.directive.d.ts +3 -0
- package/lib/guards/auth.guard.d.ts +3 -0
- package/lib/guards/permission.guard.d.ts +7 -4
- package/lib/handlers/oauth-configuration.handler.d.ts +3 -0
- package/lib/handlers/routes.handler.d.ts +3 -0
- package/lib/interceptors/api.interceptor.d.ts +3 -0
- package/lib/localization.module.d.ts +5 -0
- package/lib/models/index.d.ts +0 -3
- package/lib/models/replaceable-components.d.ts +2 -2
- package/lib/models/session.d.ts +0 -14
- package/lib/pipes/localization.pipe.d.ts +6 -2
- package/lib/pipes/sort.pipe.d.ts +4 -0
- package/lib/providers/cookie-language.provider.d.ts +3 -0
- package/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.d.ts +3 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.d.ts +3 -0
- package/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.d.ts +3 -0
- package/lib/services/auth.service.d.ts +3 -4
- package/lib/services/config-state.service.d.ts +14 -16
- package/lib/services/content-projection.service.d.ts +3 -0
- package/lib/services/dom-insertion.service.d.ts +3 -0
- package/lib/services/environment.service.d.ts +4 -0
- package/lib/services/http-error-reporter.service.d.ts +12 -0
- package/lib/services/http-wait.service.d.ts +3 -0
- package/lib/services/index.d.ts +1 -3
- package/lib/services/lazy-load.service.d.ts +3 -0
- package/lib/services/list.service.d.ts +4 -1
- package/lib/services/localization.service.d.ts +6 -3
- package/lib/services/multi-tenancy.service.d.ts +7 -14
- package/lib/services/permission.service.d.ts +4 -1
- package/lib/services/replaceable-components.service.d.ts +3 -0
- package/lib/services/resource-wait.service.d.ts +3 -0
- package/lib/services/rest.service.d.ts +6 -3
- package/lib/services/router-events.service.d.ts +3 -0
- package/lib/services/router-wait.service.d.ts +3 -0
- package/lib/services/routes.service.d.ts +5 -2
- package/lib/services/session-state.service.d.ts +3 -0
- package/lib/services/subscription.service.d.ts +3 -0
- package/lib/services/track-by.service.d.ts +3 -0
- package/lib/strategies/auth-flow.strategy.d.ts +12 -12
- package/lib/strategies/content.strategy.d.ts +9 -5
- package/lib/tokens/cookie-language-key.token.d.ts +2 -0
- package/lib/tokens/index.d.ts +2 -1
- package/lib/utils/auth-utils.d.ts +5 -5
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/initial-utils.d.ts +5 -5
- package/lib/utils/tree-utils.d.ts +1 -1
- package/locale/abp-ng.core-locale.d.ts +1 -0
- package/locale/package.json +0 -1
- package/package.json +5 -9
- package/public-api.d.ts +9 -11
- package/testing/abp-ng.core-testing.d.ts +1 -2
- package/testing/lib/core-testing.module.d.ts +7 -0
- package/testing/lib/services/mock-permission.service.d.ts +3 -0
- package/testing/lib/services/mock-rest.service.d.ts +3 -0
- package/testing/package.json +0 -1
- package/abp-ng.core.metadata.json +0 -1
- package/bundles/abp-ng.core-locale.umd.min.js +0 -16
- package/bundles/abp-ng.core-locale.umd.min.js.map +0 -1
- package/bundles/abp-ng.core-testing.umd.min.js +0 -2
- package/bundles/abp-ng.core-testing.umd.min.js.map +0 -1
- package/bundles/abp-ng.core.umd.min.js +0 -17
- package/bundles/abp-ng.core.umd.min.js.map +0 -1
- package/esm2015/lib/actions/config.actions.js +0 -25
- package/esm2015/lib/actions/index.js +0 -5
- package/esm2015/lib/actions/loader.actions.js +0 -13
- package/esm2015/lib/actions/profile.actions.js +0 -16
- package/esm2015/lib/actions/rest.actions.js +0 -7
- package/esm2015/lib/directives/visibility.directive.js +0 -62
- package/esm2015/lib/models/application-configuration.js +0 -2
- package/esm2015/lib/models/config.js +0 -2
- package/esm2015/lib/models/profile.js +0 -2
- package/esm2015/lib/services/application-configuration.service.js +0 -29
- package/esm2015/lib/services/profile-state.service.js +0 -33
- package/esm2015/lib/services/profile.service.js +0 -48
- package/esm2015/lib/states/config.state.js +0 -230
- package/esm2015/lib/states/index.js +0 -3
- package/esm2015/lib/states/profile.state.js +0 -53
- package/esm2015/lib/utils/rxjs-utils.js +0 -26
- package/lib/actions/config.actions.d.ts +0 -23
- package/lib/actions/index.d.ts +0 -4
- package/lib/actions/loader.actions.d.ts +0 -11
- package/lib/actions/profile.actions.d.ts +0 -14
- package/lib/actions/rest.actions.d.ts +0 -6
- package/lib/directives/visibility.directive.d.ts +0 -16
- package/lib/models/application-configuration.d.ts +0 -108
- package/lib/models/config.d.ts +0 -52
- package/lib/models/profile.d.ts +0 -25
- package/lib/services/application-configuration.service.d.ts +0 -11
- package/lib/services/profile-state.service.d.ts +0 -11
- package/lib/services/profile.service.d.ts +0 -11
- package/lib/states/config.state.d.ts +0 -191
- package/lib/states/index.d.ts +0 -2
- package/lib/states/profile.state.d.ts +0 -12
- package/lib/utils/rxjs-utils.d.ts +0 -5
- package/locale/abp-ng.core-locale.metadata.json +0 -1
- package/testing/abp-ng.core-testing.metadata.json +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HttpErrorReporterService {
|
|
4
|
+
private _reporter$;
|
|
5
|
+
private _errors$;
|
|
6
|
+
get reporter$(): import("rxjs").Observable<unknown>;
|
|
7
|
+
get errors$(): import("rxjs").Observable<HttpErrorResponse[]>;
|
|
8
|
+
get errors(): HttpErrorResponse[];
|
|
9
|
+
reportError: (error: HttpErrorResponse) => void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorReporterService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorReporterService>;
|
|
12
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { HttpRequest } from '@angular/common/http';
|
|
3
3
|
import { InternalStore } from '../utils/internal-store-utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export interface HttpWaitState {
|
|
5
6
|
requests: HttpRequest<any>[];
|
|
6
7
|
filteredRequests: Array<HttpRequestInfo>;
|
|
@@ -24,4 +25,6 @@ export declare class HttpWaitService {
|
|
|
24
25
|
removeFilter(request: HttpRequestInfo | HttpRequestInfo[]): void;
|
|
25
26
|
private applyFilter;
|
|
26
27
|
private isSameRequest;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpWaitService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpWaitService>;
|
|
27
30
|
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
export * from './application-configuration.service';
|
|
2
1
|
export * from './auth.service';
|
|
3
2
|
export * from './config-state.service';
|
|
4
3
|
export * from './content-projection.service';
|
|
5
4
|
export * from './dom-insertion.service';
|
|
6
5
|
export * from './environment.service';
|
|
6
|
+
export * from './http-error-reporter.service';
|
|
7
7
|
export * from './http-wait.service';
|
|
8
8
|
export * from './lazy-load.service';
|
|
9
9
|
export * from './list.service';
|
|
10
10
|
export * from './localization.service';
|
|
11
11
|
export * from './multi-tenancy.service';
|
|
12
12
|
export * from './permission.service';
|
|
13
|
-
export * from './profile-state.service';
|
|
14
|
-
export * from './profile.service';
|
|
15
13
|
export * from './replaceable-components.service';
|
|
16
14
|
export * from './resource-wait.service';
|
|
17
15
|
export * from './rest.service';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { LoadingStrategy } from '../strategies';
|
|
3
3
|
import { ResourceWaitService } from './resource-wait.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LazyLoadService {
|
|
5
6
|
private resourceWaitService;
|
|
6
7
|
readonly loaded: Map<string, HTMLScriptElement | HTMLLinkElement>;
|
|
7
8
|
constructor(resourceWaitService: ResourceWaitService);
|
|
8
9
|
load(strategy: LoadingStrategy, retryTimes?: number, retryDelay?: number): Observable<Event>;
|
|
9
10
|
remove(path: string): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LazyLoadService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LazyLoadService>;
|
|
10
13
|
}
|
|
@@ -2,6 +2,7 @@ import { Injector, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ABP } from '../models/common';
|
|
4
4
|
import { PagedResultDto } from '../models/dtos';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ListService<QueryParamsType = ABP.PageQueryParams> implements OnDestroy {
|
|
6
7
|
private _filter;
|
|
7
8
|
set filter(value: string);
|
|
@@ -23,14 +24,16 @@ export declare class ListService<QueryParamsType = ABP.PageQueryParams> implemen
|
|
|
23
24
|
get query$(): Observable<QueryParamsType>;
|
|
24
25
|
private _isLoading$;
|
|
25
26
|
private destroy$;
|
|
27
|
+
private delay;
|
|
26
28
|
get isLoading$(): Observable<boolean>;
|
|
27
29
|
get: () => void;
|
|
28
30
|
getWithoutPageReset: () => void;
|
|
29
|
-
private delay;
|
|
30
31
|
constructor(injector: Injector);
|
|
31
32
|
hookToQuery<T extends any>(streamCreatorCallback: QueryStreamCreatorCallback<T, QueryParamsType>): Observable<PagedResultDto<T>>;
|
|
32
33
|
ngOnDestroy(): void;
|
|
33
34
|
private resetPageWhenUnchanged;
|
|
34
35
|
private next;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListService<any>, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListService<any>>;
|
|
35
38
|
}
|
|
36
39
|
export declare type QueryStreamCreatorCallback<T, QueryParamsType = ABP.PageQueryParams> = (query: QueryParamsType) => Observable<PagedResultDto<T>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { LocalizationWithDefault } from '../models/localization';
|
|
4
4
|
import { ConfigStateService } from './config-state.service';
|
|
5
5
|
import { SessionStateService } from './session-state.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class LocalizationService {
|
|
7
8
|
private sessionState;
|
|
8
9
|
private injector;
|
|
@@ -22,7 +23,7 @@ export declare class LocalizationService {
|
|
|
22
23
|
* @param key Localizaton key to replace with localized text
|
|
23
24
|
* @param interpolateParams Values to interpolate
|
|
24
25
|
*/
|
|
25
|
-
get(key: string |
|
|
26
|
+
get(key: string | LocalizationWithDefault, ...interpolateParams: string[]): Observable<string>;
|
|
26
27
|
getResource(resourceName: string): any;
|
|
27
28
|
getResource$(resourceName: string): Observable<any>;
|
|
28
29
|
/**
|
|
@@ -30,9 +31,11 @@ export declare class LocalizationService {
|
|
|
30
31
|
* @param key Localization key to replace with localized text
|
|
31
32
|
* @param interpolateParams Values to intepolate.
|
|
32
33
|
*/
|
|
33
|
-
instant(key: string |
|
|
34
|
+
instant(key: string | LocalizationWithDefault, ...interpolateParams: string[]): string;
|
|
34
35
|
localize(resourceName: string, key: string, defaultValue: string): Observable<string>;
|
|
35
36
|
localizeSync(resourceName: string, key: string, defaultValue: string): string;
|
|
36
37
|
localizeWithFallback(resourceNames: string[], keys: string[], defaultValue: string): Observable<string>;
|
|
37
38
|
localizeWithFallbackSync(resourceNames: string[], keys: string[], defaultValue: string): string;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, [null, null, { optional: true; skipSelf: true; }, null]>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
|
|
38
41
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ABP } from '../models/common';
|
|
3
|
-
import { FindTenantResultDto, CurrentTenantDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
|
|
4
|
-
import { RestService } from './rest.service';
|
|
5
1
|
import { AbpTenantService } from '../proxy/pages/abp/multi-tenancy';
|
|
2
|
+
import { CurrentTenantDto, FindTenantResultDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
|
|
6
3
|
import { ConfigStateService } from './config-state.service';
|
|
4
|
+
import { RestService } from './rest.service';
|
|
7
5
|
import { SessionStateService } from './session-state.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class MultiTenancyService {
|
|
9
8
|
private restService;
|
|
10
9
|
private sessionState;
|
|
@@ -16,14 +15,8 @@ export declare class MultiTenancyService {
|
|
|
16
15
|
apiName: string;
|
|
17
16
|
private setTenantToState;
|
|
18
17
|
constructor(restService: RestService, sessionState: SessionStateService, tenantService: AbpTenantService, configStateService: ConfigStateService, tenantKey: string);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Use AbpTenantService.findTenantById method instead. To be deleted in v5.0.
|
|
25
|
-
*/
|
|
26
|
-
findTenantById(id: string, headers: ABP.Dictionary<string>): Observable<FindTenantResultDto>;
|
|
27
|
-
setTenantByName(tenantName: string): Observable<FindTenantResultDto>;
|
|
28
|
-
setTenantById(tenantId: string): Observable<FindTenantResultDto>;
|
|
18
|
+
setTenantByName(tenantName: string): import("rxjs").Observable<FindTenantResultDto>;
|
|
19
|
+
setTenantById(tenantId: string): import("rxjs").Observable<FindTenantResultDto>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiTenancyService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MultiTenancyService>;
|
|
29
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ABP } from '../models/common';
|
|
1
2
|
import { ApplicationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
|
|
2
3
|
import { ConfigStateService } from './config-state.service';
|
|
3
|
-
import
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class PermissionService {
|
|
5
6
|
protected configState: ConfigStateService;
|
|
6
7
|
constructor(configState: ConfigStateService);
|
|
@@ -13,4 +14,6 @@ export declare class PermissionService {
|
|
|
13
14
|
protected getSnapshot(): Record<string, boolean>;
|
|
14
15
|
protected mapToPolicies(applicationConfiguration: ApplicationConfigurationDto): Record<string, boolean>;
|
|
15
16
|
protected getPolicy(key: string, grantedPolicies: Record<string, boolean>): boolean;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
|
|
16
19
|
}
|
|
@@ -2,6 +2,7 @@ import { NgZone } from '@angular/core';
|
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ReplaceableComponents } from '../models/replaceable-components';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ReplaceableComponentsService {
|
|
6
7
|
private ngZone;
|
|
7
8
|
private router;
|
|
@@ -13,4 +14,6 @@ export declare class ReplaceableComponentsService {
|
|
|
13
14
|
add(replaceableComponent: ReplaceableComponents.ReplaceableComponent, reload?: boolean): void;
|
|
14
15
|
get(replaceableComponentKey: string): ReplaceableComponents.ReplaceableComponent;
|
|
15
16
|
get$(replaceableComponentKey: string): Observable<ReplaceableComponents.ReplaceableComponent>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceableComponentsService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReplaceableComponentsService>;
|
|
16
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export interface ResourceWaitState {
|
|
2
3
|
resources: Set<string>;
|
|
3
4
|
}
|
|
@@ -9,4 +10,6 @@ export declare class ResourceWaitService {
|
|
|
9
10
|
clearLoading(): void;
|
|
10
11
|
addResource(resource: string): void;
|
|
11
12
|
deleteResource(resource: string): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceWaitService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResourceWaitService>;
|
|
12
15
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { HttpClient, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Store } from '@ngxs/store';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { ABP } from '../models/common';
|
|
5
4
|
import { Rest } from '../models/rest';
|
|
6
5
|
import { EnvironmentService } from './environment.service';
|
|
6
|
+
import { HttpErrorReporterService } from './http-error-reporter.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class RestService {
|
|
8
9
|
protected options: ABP.Root;
|
|
9
10
|
protected http: HttpClient;
|
|
10
11
|
protected environment: EnvironmentService;
|
|
11
|
-
protected
|
|
12
|
-
constructor(options: ABP.Root, http: HttpClient, environment: EnvironmentService,
|
|
12
|
+
protected httpErrorReporter: HttpErrorReporterService;
|
|
13
|
+
constructor(options: ABP.Root, http: HttpClient, environment: EnvironmentService, httpErrorReporter: HttpErrorReporterService);
|
|
13
14
|
protected getApiFromStore(apiName: string): string;
|
|
14
15
|
handleError(err: any): Observable<any>;
|
|
15
16
|
request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
16
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router, RouterEvent } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare const NavigationEvent: {
|
|
4
5
|
Cancel: typeof NavigationCancel;
|
|
5
6
|
End: typeof NavigationEnd;
|
|
@@ -18,6 +19,8 @@ export declare class RouterEvents {
|
|
|
18
19
|
}[Key]> : never : never>;
|
|
19
20
|
getAllEvents(): import("rxjs").Observable<import("@angular/router").Event>;
|
|
20
21
|
getAllNavigationEvents(): import("rxjs").Observable<NavigationCancel | NavigationEnd | NavigationError | NavigationStart>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterEvents, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterEvents>;
|
|
21
24
|
}
|
|
22
25
|
declare type RouterEventConstructors = [Type<RouterEvent>, ...Type<RouterEvent>[]];
|
|
23
26
|
declare type NavigationEventKeys = [NavigationEventKey, ...NavigationEventKey[]];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { RouterEvents } from './router-events.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export interface RouterWaitState {
|
|
4
5
|
loading: boolean;
|
|
5
6
|
}
|
|
@@ -14,4 +15,6 @@ export declare class RouterWaitService {
|
|
|
14
15
|
getLoading$(): import("rxjs").Observable<boolean>;
|
|
15
16
|
updateLoading$(): import("rxjs").Observable<boolean>;
|
|
16
17
|
setLoading(loading: boolean): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterWaitService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterWaitService>;
|
|
17
20
|
}
|
|
@@ -2,6 +2,7 @@ import { Injector, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ABP } from '../models/common';
|
|
4
4
|
import { TreeNode } from '../utils/tree-utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare abstract class AbstractTreeService<T extends object> {
|
|
6
7
|
abstract id: string;
|
|
7
8
|
abstract parentId: string;
|
|
@@ -40,8 +41,10 @@ export declare abstract class AbstractNavTreeService<T extends ABP.Nav> extends
|
|
|
40
41
|
hasChildren(identifier: string): boolean;
|
|
41
42
|
hasInvisibleChild(identifier: string): boolean;
|
|
42
43
|
ngOnDestroy(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNavTreeService<any>, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AbstractNavTreeService<any>>;
|
|
43
46
|
}
|
|
44
47
|
export declare class RoutesService extends AbstractNavTreeService<ABP.Route> {
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoutesService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoutesService>;
|
|
47
50
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CurrentTenantDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
|
|
2
2
|
import { ConfigStateService } from './config-state.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class SessionStateService {
|
|
4
5
|
private configState;
|
|
5
6
|
private readonly store;
|
|
@@ -19,4 +20,6 @@ export declare class SessionStateService {
|
|
|
19
20
|
getTenant$(): import("rxjs").Observable<CurrentTenantDto>;
|
|
20
21
|
setTenant(tenant: CurrentTenantDto): void;
|
|
21
22
|
setLanguage(language: string): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionStateService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionStateService>;
|
|
22
25
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import type { Observable, PartialObserver } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SubscriptionService implements OnDestroy {
|
|
5
6
|
private subscription;
|
|
6
7
|
get isClosed(): boolean;
|
|
@@ -11,4 +12,6 @@ export declare class SubscriptionService implements OnDestroy {
|
|
|
11
12
|
ngOnDestroy(): void;
|
|
12
13
|
removeOne(subscription: Subscription | undefined | null): void;
|
|
13
14
|
reset(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
|
|
14
17
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { TrackByFunction } from '@angular/core';
|
|
2
2
|
import { O } from 'ts-toolbelt';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare const trackBy: <T = any>(key: keyof T) => TrackByFunction<T>;
|
|
4
5
|
export declare const trackByDeep: <T = any>(...keys: T extends object ? O.Paths<T> : never) => TrackByFunction<T>;
|
|
5
6
|
export declare class TrackByService<ItemType = any> {
|
|
6
7
|
by: <T = any>(key: keyof T) => TrackByFunction<T>;
|
|
7
8
|
byDeep: <T = any>(...keys: T extends object ? O.Paths<T> : never) => TrackByFunction<T>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackByService<any>, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TrackByService<any>>;
|
|
8
11
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Params } from '@angular/router';
|
|
3
|
-
import { Store } from '@ngxs/store';
|
|
4
3
|
import { AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import { LoginParams } from '../models/auth';
|
|
7
6
|
import { ConfigStateService } from '../services/config-state.service';
|
|
8
7
|
import { EnvironmentService } from '../services/environment.service';
|
|
8
|
+
import { HttpErrorReporterService } from '../services/http-error-reporter.service';
|
|
9
9
|
import { SessionStateService } from '../services/session-state.service';
|
|
10
10
|
export declare const oAuthStorage: Storage;
|
|
11
11
|
export declare abstract class AuthFlowStrategy {
|
|
12
12
|
protected injector: Injector;
|
|
13
13
|
abstract readonly isInternalAuth: boolean;
|
|
14
|
-
protected
|
|
14
|
+
protected httpErrorReporter: HttpErrorReporterService;
|
|
15
15
|
protected environment: EnvironmentService;
|
|
16
16
|
protected configState: ConfigStateService;
|
|
17
17
|
protected oAuthService: OAuthService;
|
|
@@ -53,7 +53,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
53
53
|
[x: string]: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
languages?: import("
|
|
56
|
+
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
57
57
|
currentCulture?: {
|
|
58
58
|
displayName?: string;
|
|
59
59
|
englishName?: string;
|
|
@@ -75,10 +75,10 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
75
75
|
};
|
|
76
76
|
defaultResourceName?: string;
|
|
77
77
|
languagesMap?: {
|
|
78
|
-
[x: string]: import("
|
|
78
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
79
79
|
};
|
|
80
80
|
languageFilesMap?: {
|
|
81
|
-
[x: string]: import("
|
|
81
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
auth?: {
|
|
@@ -177,7 +177,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
177
177
|
filterParamName?: string;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
-
attributes?: import("
|
|
180
|
+
attributes?: import("@abp/ng.core").ExtensionPropertyAttributeDto[];
|
|
181
181
|
configuration?: {
|
|
182
182
|
[x: string]: object;
|
|
183
183
|
};
|
|
@@ -196,7 +196,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
196
196
|
};
|
|
197
197
|
enums?: {
|
|
198
198
|
[x: string]: {
|
|
199
|
-
fields?: import("
|
|
199
|
+
fields?: import("@abp/ng.core").ExtensionEnumFieldDto[];
|
|
200
200
|
localizationResource?: string;
|
|
201
201
|
};
|
|
202
202
|
};
|
|
@@ -209,7 +209,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
209
209
|
[x: string]: string;
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
|
-
languages?: import("
|
|
212
|
+
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
213
213
|
currentCulture?: {
|
|
214
214
|
displayName?: string;
|
|
215
215
|
englishName?: string;
|
|
@@ -231,10 +231,10 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
231
231
|
};
|
|
232
232
|
defaultResourceName?: string;
|
|
233
233
|
languagesMap?: {
|
|
234
|
-
[x: string]: import("
|
|
234
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
235
235
|
};
|
|
236
236
|
languageFilesMap?: {
|
|
237
|
-
[x: string]: import("
|
|
237
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
auth?: {
|
|
@@ -333,7 +333,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
333
333
|
filterParamName?: string;
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
|
-
attributes?: import("
|
|
336
|
+
attributes?: import("@abp/ng.core").ExtensionPropertyAttributeDto[];
|
|
337
337
|
configuration?: {
|
|
338
338
|
[x: string]: object;
|
|
339
339
|
};
|
|
@@ -352,7 +352,7 @@ export declare class AuthPasswordFlowStrategy extends AuthFlowStrategy {
|
|
|
352
352
|
};
|
|
353
353
|
enums?: {
|
|
354
354
|
[x: string]: {
|
|
355
|
-
fields?: import("
|
|
355
|
+
fields?: import("@abp/ng.core").ExtensionEnumFieldDto[];
|
|
356
356
|
localizationResource?: string;
|
|
357
357
|
};
|
|
358
358
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ContentSecurityStrategy } from './content-security.strategy';
|
|
2
2
|
import { DomStrategy } from './dom.strategy';
|
|
3
|
+
export declare type ElementOptions<T extends HTMLScriptElement | HTMLStyleElement = any> = Partial<{
|
|
4
|
+
[key in keyof T]: T[key];
|
|
5
|
+
}>;
|
|
3
6
|
export declare abstract class ContentStrategy<T extends HTMLScriptElement | HTMLStyleElement = any> {
|
|
4
7
|
content: string;
|
|
5
8
|
protected domStrategy: DomStrategy;
|
|
6
9
|
protected contentSecurityStrategy: ContentSecurityStrategy;
|
|
7
|
-
|
|
10
|
+
protected options: ElementOptions<T>;
|
|
11
|
+
constructor(content: string, domStrategy?: DomStrategy, contentSecurityStrategy?: ContentSecurityStrategy, options?: ElementOptions<T>);
|
|
8
12
|
abstract createElement(): T;
|
|
9
13
|
insertElement(): T;
|
|
10
14
|
}
|
|
@@ -15,8 +19,8 @@ export declare class ScriptContentStrategy extends ContentStrategy<HTMLScriptEle
|
|
|
15
19
|
createElement(): HTMLScriptElement;
|
|
16
20
|
}
|
|
17
21
|
export declare const CONTENT_STRATEGY: {
|
|
18
|
-
AppendScriptToBody(content: string): ScriptContentStrategy;
|
|
19
|
-
AppendScriptToHead(content: string): ScriptContentStrategy;
|
|
20
|
-
AppendStyleToHead(content: string): StyleContentStrategy;
|
|
21
|
-
PrependStyleToHead(content: string): StyleContentStrategy;
|
|
22
|
+
AppendScriptToBody(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
|
|
23
|
+
AppendScriptToHead(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
|
|
24
|
+
AppendStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
|
|
25
|
+
PrependStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
|
|
22
26
|
};
|
package/lib/tokens/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export * from './app-config.token';
|
|
2
|
+
export * from './cookie-language-key.token';
|
|
1
3
|
export * from './list.token';
|
|
2
4
|
export * from './lodaer-delay.token';
|
|
3
5
|
export * from './manage-profile.token';
|
|
4
6
|
export * from './options.token';
|
|
5
|
-
export * from './app-config.token';
|
|
6
7
|
export * from './tenant-key.token';
|
|
@@ -8,7 +8,7 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
8
8
|
[x: string]: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
languages?: import("
|
|
11
|
+
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
12
12
|
currentCulture?: {
|
|
13
13
|
displayName?: string;
|
|
14
14
|
englishName?: string;
|
|
@@ -30,10 +30,10 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
30
30
|
};
|
|
31
31
|
defaultResourceName?: string;
|
|
32
32
|
languagesMap?: {
|
|
33
|
-
[x: string]: import("
|
|
33
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
34
34
|
};
|
|
35
35
|
languageFilesMap?: {
|
|
36
|
-
[x: string]: import("
|
|
36
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
auth?: {
|
|
@@ -132,7 +132,7 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
132
132
|
filterParamName?: string;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
attributes?: import("
|
|
135
|
+
attributes?: import("@abp/ng.core").ExtensionPropertyAttributeDto[];
|
|
136
136
|
configuration?: {
|
|
137
137
|
[x: string]: object;
|
|
138
138
|
};
|
|
@@ -151,7 +151,7 @@ export declare function pipeToLogin(params: Pick<LoginParams, 'redirectUrl' | 'r
|
|
|
151
151
|
};
|
|
152
152
|
enums?: {
|
|
153
153
|
[x: string]: {
|
|
154
|
-
fields?: import("
|
|
154
|
+
fields?: import("@abp/ng.core").ExtensionEnumFieldDto[];
|
|
155
155
|
localizationResource?: string;
|
|
156
156
|
};
|
|
157
157
|
};
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
6
6
|
[x: string]: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
languages?: import("
|
|
9
|
+
languages?: import("@abp/ng.core").LanguageInfo[];
|
|
10
10
|
currentCulture?: {
|
|
11
11
|
displayName?: string;
|
|
12
12
|
englishName?: string;
|
|
@@ -28,10 +28,10 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
28
28
|
};
|
|
29
29
|
defaultResourceName?: string;
|
|
30
30
|
languagesMap?: {
|
|
31
|
-
[x: string]: import("
|
|
31
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
32
32
|
};
|
|
33
33
|
languageFilesMap?: {
|
|
34
|
-
[x: string]: import("
|
|
34
|
+
[x: string]: import("@abp/ng.core").NameValue<string>[];
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
auth?: {
|
|
@@ -130,7 +130,7 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
130
130
|
filterParamName?: string;
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
attributes?: import("
|
|
133
|
+
attributes?: import("@abp/ng.core").ExtensionPropertyAttributeDto[];
|
|
134
134
|
configuration?: {
|
|
135
135
|
[x: string]: object;
|
|
136
136
|
};
|
|
@@ -149,7 +149,7 @@ export declare function getInitialData(injector: Injector): () => Promise<{
|
|
|
149
149
|
};
|
|
150
150
|
enums?: {
|
|
151
151
|
[x: string]: {
|
|
152
|
-
fields?: import("
|
|
152
|
+
fields?: import("@abp/ng.core").ExtensionEnumFieldDto[];
|
|
153
153
|
localizationResource?: string;
|
|
154
154
|
};
|
|
155
155
|
};
|
|
@@ -6,7 +6,7 @@ export declare class BaseTreeNode<T extends object> {
|
|
|
6
6
|
static create<T extends object>(props: T): TreeNode<T>;
|
|
7
7
|
}
|
|
8
8
|
export declare function createTreeFromList<T extends object, R extends unknown>(list: T[], keySelector: (item: T) => NodeKey, parentKeySelector: typeof keySelector, valueMapper: (item: T) => R): R[];
|
|
9
|
-
export declare function createMapFromList<T extends object, R extends unknown>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<
|
|
9
|
+
export declare function createMapFromList<T extends object, R extends unknown>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<NodeKey, R>;
|
|
10
10
|
export declare function createTreeNodeFilterCreator<T extends object>(key: keyof T, mapperFn: (value: any) => string): (search: string) => (nodes: TreeNode<T>[], matches?: any[]) => any[];
|
|
11
11
|
export declare type TreeNode<T extends object> = {
|
|
12
12
|
[K in keyof T]: T[K];
|
package/locale/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/abpframework/abp.git"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@abp/utils": "
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"just-clone": "^3.1.0",
|
|
15
|
-
"just-compare": "^1.3.0",
|
|
16
|
-
"snq": "^1.0.3",
|
|
10
|
+
"@abp/utils": "~5.0.0-beta.3",
|
|
11
|
+
"angular-oauth2-oidc": "^12.1.0",
|
|
12
|
+
"just-clone": "^3.2.1",
|
|
13
|
+
"just-compare": "^1.4.0",
|
|
17
14
|
"ts-toolbelt": "6.15.4",
|
|
18
15
|
"tslib": "^2.0.0"
|
|
19
16
|
},
|
|
@@ -26,6 +23,5 @@
|
|
|
26
23
|
"esm2015": "esm2015/abp-ng.core.js",
|
|
27
24
|
"fesm2015": "fesm2015/abp-ng.core.js",
|
|
28
25
|
"typings": "abp-ng.core.d.ts",
|
|
29
|
-
"metadata": "abp-ng.core.metadata.json",
|
|
30
26
|
"sideEffects": false
|
|
31
27
|
}
|