@abp/ng.core 8.0.0-rc.3 → 8.0.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/abstracts/auth-error-filter.mjs +25 -0
- package/esm2022/lib/abstracts/auth.guard.mjs +3 -3
- package/esm2022/lib/abstracts/auth.service.mjs +4 -5
- package/esm2022/lib/abstracts/index.mjs +2 -1
- package/esm2022/lib/abstracts/ng-model.component.mjs +3 -3
- package/esm2022/lib/clients/http.client.mjs +3 -3
- package/esm2022/lib/components/dynamic-layout.component.mjs +38 -38
- package/esm2022/lib/components/replaceable-route-container.component.mjs +3 -3
- package/esm2022/lib/components/router-outlet.component.mjs +3 -3
- package/esm2022/lib/constants/default-layouts.mjs +6 -0
- package/esm2022/lib/constants/index.mjs +2 -1
- package/esm2022/lib/core.module.mjs +21 -13
- package/esm2022/lib/directives/autofocus.directive.mjs +3 -3
- package/esm2022/lib/directives/caps-lock.directive.mjs +3 -3
- package/esm2022/lib/directives/debounce.directive.mjs +3 -3
- package/esm2022/lib/directives/for.directive.mjs +3 -3
- package/esm2022/lib/directives/form-submit.directive.mjs +3 -3
- package/esm2022/lib/directives/init.directive.mjs +3 -3
- package/esm2022/lib/directives/permission.directive.mjs +3 -3
- package/esm2022/lib/directives/replaceable-template.directive.mjs +3 -3
- package/esm2022/lib/directives/show-password.directive.mjs +3 -3
- package/esm2022/lib/directives/stop-propagation.directive.mjs +3 -3
- package/esm2022/lib/enums/common.mjs +1 -1
- package/esm2022/lib/guards/permission.guard.mjs +3 -3
- package/esm2022/lib/handlers/routes.handler.mjs +3 -3
- package/esm2022/lib/interceptors/api.interceptor.mjs +3 -3
- package/esm2022/lib/localization.module.mjs +4 -4
- package/esm2022/lib/models/auth-events.mjs +29 -0
- package/esm2022/lib/models/auth.mjs +1 -1
- package/esm2022/lib/models/common.mjs +1 -1
- package/esm2022/lib/models/index.mjs +2 -1
- package/esm2022/lib/pipes/localization.pipe.mjs +4 -4
- package/esm2022/lib/pipes/safe-html.pipe.mjs +4 -4
- package/esm2022/lib/pipes/short-date-time.pipe.mjs +3 -3
- package/esm2022/lib/pipes/short-date.pipe.mjs +3 -3
- package/esm2022/lib/pipes/short-time.pipe.mjs +3 -3
- package/esm2022/lib/pipes/sort.pipe.mjs +4 -4
- package/esm2022/lib/pipes/to-injector.pipe.mjs +3 -3
- package/esm2022/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +3 -3
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +3 -3
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +3 -3
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +3 -3
- package/esm2022/lib/services/config-state.service.mjs +3 -3
- package/esm2022/lib/services/content-projection.service.mjs +3 -3
- package/esm2022/lib/services/dom-insertion.service.mjs +3 -3
- package/esm2022/lib/services/environment.service.mjs +3 -3
- package/esm2022/lib/services/http-error-reporter.service.mjs +3 -3
- package/esm2022/lib/services/http-wait.service.mjs +3 -3
- package/esm2022/lib/services/internet-connection-service.mjs +3 -3
- package/esm2022/lib/services/lazy-load.service.mjs +3 -3
- package/esm2022/lib/services/list.service.mjs +3 -3
- package/esm2022/lib/services/local-storage.service.mjs +3 -3
- package/esm2022/lib/services/localization.service.mjs +3 -3
- package/esm2022/lib/services/multi-tenancy.service.mjs +3 -3
- package/esm2022/lib/services/permission.service.mjs +3 -3
- package/esm2022/lib/services/replaceable-components.service.mjs +3 -3
- package/esm2022/lib/services/resource-wait.service.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +3 -3
- package/esm2022/lib/services/router-events.service.mjs +3 -3
- package/esm2022/lib/services/router-wait.service.mjs +3 -3
- package/esm2022/lib/services/routes.service.mjs +6 -6
- package/esm2022/lib/services/session-state.service.mjs +3 -3
- package/esm2022/lib/services/subscription.service.mjs +3 -3
- package/esm2022/lib/services/track-by.service.mjs +3 -3
- package/esm2022/lib/services/window.service.mjs +3 -3
- package/esm2022/lib/tokens/dynamic-layout.token.mjs +3 -0
- package/esm2022/lib/tokens/index.mjs +2 -1
- package/esm2022/testing/lib/core-testing.module.mjs +4 -4
- package/esm2022/testing/lib/services/mock-permission.service.mjs +3 -3
- package/esm2022/testing/lib/services/mock-rest.service.mjs +3 -3
- package/fesm2022/abp-ng.core-testing.mjs +10 -10
- package/fesm2022/abp-ng.core.mjs +419 -350
- package/fesm2022/abp-ng.core.mjs.map +1 -1
- package/lib/abstracts/auth-error-filter.d.ts +16 -0
- package/lib/abstracts/index.d.ts +1 -0
- package/lib/components/dynamic-layout.component.d.ts +11 -14
- package/lib/constants/default-layouts.d.ts +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/enums/common.d.ts +5 -0
- package/lib/models/auth-events.d.ts +21 -0
- package/lib/models/auth.d.ts +7 -1
- package/lib/models/common.d.ts +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/tokens/dynamic-layout.token.d.ts +2 -0
- package/lib/tokens/index.d.ts +1 -0
- package/package.json +4 -5
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuthErrorEvent, AuthErrorFilter } from '../models';
|
|
2
|
+
export declare abstract class AbstractAuthErrorFilter<T, E> {
|
|
3
|
+
abstract get(id: string): T;
|
|
4
|
+
abstract add(filter: T): void;
|
|
5
|
+
abstract patch(item: Partial<T>): void;
|
|
6
|
+
abstract remove(id: string): void;
|
|
7
|
+
abstract run(event: E): boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class AuthErrorFilterService<T = AuthErrorFilter, E = AuthErrorEvent> extends AbstractAuthErrorFilter<T, E> {
|
|
10
|
+
private warningMessage;
|
|
11
|
+
get(id: string): T;
|
|
12
|
+
add(filter: T): void;
|
|
13
|
+
patch(item: Partial<T>): void;
|
|
14
|
+
remove(id: string): void;
|
|
15
|
+
run(event: E): boolean;
|
|
16
|
+
}
|
package/lib/abstracts/index.d.ts
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit, Type } from '@angular/core';
|
|
2
2
|
import { eLayoutType } from '../enums/common';
|
|
3
|
-
import { LocalizationService } from '../services/localization.service';
|
|
4
|
-
import { ReplaceableComponentsService } from '../services/replaceable-components.service';
|
|
5
|
-
import { RouterEvents } from '../services/router-events.service';
|
|
6
|
-
import { SubscriptionService } from '../services/subscription.service';
|
|
7
3
|
import * as i0 from "@angular/core";
|
|
8
4
|
export declare class DynamicLayoutComponent implements OnInit {
|
|
9
|
-
private localizationService;
|
|
10
|
-
private replaceableComponents;
|
|
11
|
-
private subscription;
|
|
12
|
-
private routerEvents;
|
|
13
5
|
layout?: Type<any>;
|
|
14
6
|
layoutKey?: eLayoutType;
|
|
15
7
|
readonly layouts: Map<string, string>;
|
|
16
8
|
isLayoutVisible: boolean;
|
|
17
|
-
private router;
|
|
18
|
-
private route;
|
|
19
|
-
private routes;
|
|
20
|
-
|
|
9
|
+
private readonly router;
|
|
10
|
+
private readonly route;
|
|
11
|
+
private readonly routes;
|
|
12
|
+
private localizationService;
|
|
13
|
+
private replaceableComponents;
|
|
14
|
+
private subscription;
|
|
15
|
+
private routerEvents;
|
|
16
|
+
constructor(dynamicLayoutComponent: DynamicLayoutComponent);
|
|
21
17
|
ngOnInit(): void;
|
|
22
18
|
private checkLayoutOnNavigationEnd;
|
|
23
19
|
private getLayout;
|
|
20
|
+
private getExtractedLayout;
|
|
24
21
|
showLayoutNotFoundError(layoutName: string): void;
|
|
25
22
|
private listenToLanguageChange;
|
|
26
23
|
private getComponent;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicLayoutComponent, [
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicLayoutComponent, [{ optional: true; skipSelf: true; }]>;
|
|
28
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicLayoutComponent, "abp-dynamic-layout", never, {}, {}, never, never, false, never>;
|
|
29
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_DYNAMIC_LAYOUTS: Map<string, string>;
|
package/lib/constants/index.d.ts
CHANGED
package/lib/enums/common.d.ts
CHANGED
|
@@ -3,3 +3,8 @@ export declare const enum eLayoutType {
|
|
|
3
3
|
application = "application",
|
|
4
4
|
empty = "empty"
|
|
5
5
|
}
|
|
6
|
+
export declare const enum eThemeSharedComponents {
|
|
7
|
+
ApplicationLayoutComponent = "Theme.ApplicationLayoutComponent",
|
|
8
|
+
AccountLayoutComponent = "Theme.AccountLayoutComponent",
|
|
9
|
+
EmptyLayoutComponent = "Theme.EmptyLayoutComponent"
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type EventType = 'discovery_document_loaded' | 'jwks_load_error' | 'invalid_nonce_in_state' | 'discovery_document_load_error' | 'discovery_document_validation_error' | 'user_profile_loaded' | 'user_profile_load_error' | 'token_received' | 'token_error' | 'code_error' | 'token_refreshed' | 'token_refresh_error' | 'silent_refresh_error' | 'silently_refreshed' | 'silent_refresh_timeout' | 'token_validation_error' | 'token_expires' | 'session_changed' | 'session_error' | 'session_terminated' | 'session_unchanged' | 'logout' | 'popup_closed' | 'popup_blocked' | 'token_revoke_error';
|
|
2
|
+
export declare abstract class AuthEvent {
|
|
3
|
+
readonly type: EventType;
|
|
4
|
+
constructor(type: EventType);
|
|
5
|
+
}
|
|
6
|
+
export declare class AuthSuccessEvent extends AuthEvent {
|
|
7
|
+
readonly type: EventType;
|
|
8
|
+
readonly info?: any;
|
|
9
|
+
constructor(type: EventType, info?: any);
|
|
10
|
+
}
|
|
11
|
+
export declare class AuthInfoEvent extends AuthEvent {
|
|
12
|
+
readonly type: EventType;
|
|
13
|
+
readonly info?: any;
|
|
14
|
+
constructor(type: EventType, info?: any);
|
|
15
|
+
}
|
|
16
|
+
export declare class AuthErrorEvent extends AuthEvent {
|
|
17
|
+
readonly type: EventType;
|
|
18
|
+
readonly reason: object;
|
|
19
|
+
readonly params?: object;
|
|
20
|
+
constructor(type: EventType, reason: object, params?: object);
|
|
21
|
+
}
|
package/lib/models/auth.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UnaryFunction } from 'rxjs';
|
|
2
1
|
import { Injector } from '@angular/core';
|
|
2
|
+
import { UnaryFunction } from 'rxjs';
|
|
3
|
+
import { AuthErrorEvent } from './auth-events';
|
|
3
4
|
export interface LoginParams {
|
|
4
5
|
username: string;
|
|
5
6
|
password: string;
|
|
@@ -12,3 +13,8 @@ export type PipeToLoginFn = (params: Pick<LoginParams, 'redirectUrl' | 'remember
|
|
|
12
13
|
*/
|
|
13
14
|
export type SetTokenResponseToStorageFn<T = any> = (tokenRes: T) => void;
|
|
14
15
|
export type CheckAuthenticationStateFn = (injector: Injector) => void;
|
|
16
|
+
export interface AuthErrorFilter<T = AuthErrorEvent> {
|
|
17
|
+
id: string;
|
|
18
|
+
executable: boolean;
|
|
19
|
+
execute: (event: T) => boolean;
|
|
20
|
+
}
|
package/lib/models/common.d.ts
CHANGED
package/lib/models/index.d.ts
CHANGED
package/lib/tokens/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.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.0.
|
|
11
|
-
"
|
|
12
|
-
"just-
|
|
13
|
-
"just-compare": "^2.3.0",
|
|
10
|
+
"@abp/utils": "~8.0.1",
|
|
11
|
+
"just-clone": "^6.0.0",
|
|
12
|
+
"just-compare": "^2.0.0",
|
|
14
13
|
"ts-toolbelt": "6.15.4",
|
|
15
14
|
"tslib": "^2.0.0"
|
|
16
15
|
},
|