@abp/ng.core 8.2.1 → 8.3.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/esm2022/lib/core.module.mjs +12 -102
- package/esm2022/lib/handlers/index.mjs +2 -0
- package/esm2022/lib/models/common.mjs +1 -1
- package/esm2022/lib/providers/core-module-config.provider.mjs +130 -0
- package/esm2022/lib/providers/index.mjs +5 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/title-strategy.service.mjs +14 -11
- package/esm2022/lib/tokens/index.mjs +3 -1
- package/esm2022/lib/tokens/title-strategy-disable-project-name.token.mjs +3 -0
- package/esm2022/lib/utils/generator-utils.mjs +5 -5
- package/esm2022/locale/utils/register-locale.mjs +55 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/abp-ng.core-locale.mjs +55 -1
- package/fesm2022/abp-ng.core-locale.mjs.map +1 -1
- package/fesm2022/abp-ng.core.mjs +257 -203
- package/fesm2022/abp-ng.core.mjs.map +1 -1
- package/lib/core.module.d.ts +6 -0
- package/lib/handlers/index.d.ts +1 -0
- package/lib/models/common.d.ts +1 -0
- package/lib/providers/core-module-config.provider.d.ts +16 -0
- package/lib/providers/index.d.ts +4 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/title-strategy.service.d.ts +1 -3
- package/lib/tokens/index.d.ts +2 -0
- package/lib/tokens/title-strategy-disable-project-name.token.d.ts +2 -0
- package/locale/utils/register-locale.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
package/lib/core.module.d.ts
CHANGED
|
@@ -49,7 +49,13 @@ export declare class RootCoreModule {
|
|
|
49
49
|
* CoreModule is the module that is publicly available
|
|
50
50
|
*/
|
|
51
51
|
export declare class CoreModule {
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated forRoot method is deprecated, use `provideAbpCore` *function* for config settings.
|
|
54
|
+
*/
|
|
52
55
|
static forRoot(options?: ABP.Root): ModuleWithProviders<RootCoreModule>;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated forChild method is deprecated, use `provideAbpCoreChild` *function* for config settings.
|
|
58
|
+
*/
|
|
53
59
|
static forChild(options?: ABP.Child): ModuleWithProviders<RootCoreModule>;
|
|
54
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
|
55
61
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof BaseCoreModule], [typeof BaseCoreModule]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './routes.handler';
|
package/lib/models/common.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { ABP, SortableItem } from '../models';
|
|
3
|
+
export declare enum CoreFeatureKind {
|
|
4
|
+
Options = 0,
|
|
5
|
+
CompareFunctionFactory = 1,
|
|
6
|
+
TitleStrategy = 2
|
|
7
|
+
}
|
|
8
|
+
export interface CoreFeature<KindT extends CoreFeatureKind> {
|
|
9
|
+
ɵkind: KindT;
|
|
10
|
+
ɵproviders: Provider[];
|
|
11
|
+
}
|
|
12
|
+
export declare function withOptions(options?: ABP.Root): CoreFeature<CoreFeatureKind.Options>;
|
|
13
|
+
export declare function withTitleStrategy(strategy: unknown): CoreFeature<CoreFeatureKind.TitleStrategy>;
|
|
14
|
+
export declare function withCompareFuncFactory(factory: (a: SortableItem, b: SortableItem) => 1 | -1 | 0): CoreFeature<CoreFeatureKind.CompareFunctionFactory>;
|
|
15
|
+
export declare function provideAbpCore(...features: CoreFeature<CoreFeatureKind>[]): import("@angular/core").EnvironmentProviders;
|
|
16
|
+
export declare function provideAbpCoreChild(options?: ABP.Child): import("@angular/core").EnvironmentProviders;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { TitleStrategy, RouterStateSnapshot } from '@angular/router';
|
|
2
2
|
import { Title } from '@angular/platform-browser';
|
|
3
|
-
import { ConfigStateService } from './config-state.service';
|
|
4
3
|
import { LocalizationService } from './localization.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class AbpTitleStrategy extends TitleStrategy {
|
|
7
6
|
protected readonly title: Title;
|
|
8
|
-
protected readonly configState: ConfigStateService;
|
|
9
7
|
protected readonly localizationService: LocalizationService;
|
|
8
|
+
protected readonly disableProjectName: boolean;
|
|
10
9
|
protected routerState: RouterStateSnapshot;
|
|
11
|
-
projectName: import("@angular/core").Signal<any>;
|
|
12
10
|
langugageChange: import("@angular/core").Signal<string>;
|
|
13
11
|
constructor();
|
|
14
12
|
updateTitle(routerState: RouterStateSnapshot): void;
|
package/lib/tokens/index.d.ts
CHANGED
|
@@ -15,3 +15,5 @@ export * from './http-context.token';
|
|
|
15
15
|
export * from './others-group.token';
|
|
16
16
|
export * from './tenant-not-found-by-name';
|
|
17
17
|
export * from './compare-func.token';
|
|
18
|
+
export * from './dynamic-layout.token';
|
|
19
|
+
export * from './title-strategy-disable-project-name.token';
|
|
@@ -8,6 +8,7 @@ export interface RegisterLocaleData {
|
|
|
8
8
|
cultureNameLocaleFileMap?: Record<string, string>;
|
|
9
9
|
errorHandlerFn?: (data: LocaleErrorHandlerData) => any;
|
|
10
10
|
}
|
|
11
|
+
export declare function registerLocaleForEsBuild({ cultureNameLocaleFileMap, errorHandlerFn, }?: RegisterLocaleData): (locale: string) => Promise<any>;
|
|
11
12
|
export declare function registerLocale({ cultureNameLocaleFileMap, errorHandlerFn, }?: RegisterLocaleData): (locale: string) => Promise<any>;
|
|
12
13
|
export declare function storeLocaleData(data: any, localeId: string): void;
|
|
13
14
|
export declare function defaultLocalErrorHandlerFn({ locale, resolve }: LocaleErrorHandlerData): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0-rc.1",
|
|
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": "~8.
|
|
10
|
+
"@abp/utils": "~8.3.0-rc.1",
|
|
11
11
|
"just-clone": "^6.0.0",
|
|
12
12
|
"just-compare": "^2.0.0",
|
|
13
13
|
"ts-toolbelt": "6.15.4",
|
package/public-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './lib/guards';
|
|
|
8
8
|
export * from './lib/localization.module';
|
|
9
9
|
export * from './lib/models';
|
|
10
10
|
export * from './lib/pipes';
|
|
11
|
+
export * from './lib/providers';
|
|
11
12
|
export * from './lib/proxy/pages/abp/multi-tenancy';
|
|
12
13
|
export * from './lib/proxy/volo/abp/asp-net-core/mvc/api-exploring';
|
|
13
14
|
export * from './lib/proxy/volo/abp/asp-net-core/mvc/application-configurations';
|