@abp/ng.theme.shared 8.1.0-rc.3 → 8.1.0
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/components/http-error-wrapper/http-error-wrapper.component.mjs +35 -22
- package/esm2022/lib/components/internet-connection-status/internet-connection-status.component.mjs +28 -14
- package/esm2022/lib/constants/default-errors.mjs +13 -1
- package/esm2022/lib/constants/index.mjs +5 -0
- package/esm2022/lib/constants/scripts.mjs +2 -0
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +53 -38
- package/esm2022/lib/services/create-error-component.service.mjs +7 -8
- package/esm2022/public-api.mjs +2 -3
- package/fesm2022/abp-ng.theme.shared.mjs +205 -146
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/lib/components/http-error-wrapper/http-error-wrapper.component.d.ts +8 -7
- package/lib/constants/default-errors.d.ts +12 -0
- package/lib/constants/index.d.ts +4 -0
- package/lib/constants/scripts.d.ts +2 -0
- package/lib/directives/ngx-datatable-list.directive.d.ts +18 -17
- package/lib/services/create-error-component.service.d.ts +2 -2
- package/package.json +2 -2
- package/public-api.d.ts +1 -2
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ApplicationRef,
|
|
1
|
+
import { ApplicationRef, OnInit, ElementRef, Type, AfterViewInit, OnDestroy, EnvironmentInjector, DestroyRef } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { Subject } from 'rxjs';
|
|
3
|
-
import { LocalizationParam
|
|
4
|
+
import { LocalizationParam } from '@abp/ng.core';
|
|
4
5
|
import { ErrorScreenErrorCodes } from '../../models';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class HttpErrorWrapperComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
7
|
-
|
|
8
|
+
protected readonly destroyRef: DestroyRef;
|
|
8
9
|
protected readonly document: Document;
|
|
9
10
|
protected readonly window: Window & typeof globalThis;
|
|
11
|
+
protected readonly router: Router;
|
|
10
12
|
appRef: ApplicationRef;
|
|
11
|
-
|
|
12
|
-
injector: Injector;
|
|
13
|
+
environmentInjector: EnvironmentInjector;
|
|
13
14
|
status: ErrorScreenErrorCodes;
|
|
14
15
|
title: LocalizationParam;
|
|
15
16
|
details: LocalizationParam;
|
|
@@ -20,11 +21,11 @@ export declare class HttpErrorWrapperComponent implements OnInit, AfterViewInit,
|
|
|
20
21
|
isHomeShow: boolean;
|
|
21
22
|
containerRef?: ElementRef<HTMLDivElement>;
|
|
22
23
|
get statusText(): string;
|
|
23
|
-
constructor(subscription: SubscriptionService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
ngAfterViewInit(): void;
|
|
26
|
-
|
|
26
|
+
goHome(): void;
|
|
27
27
|
destroy(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorWrapperComponent, never>;
|
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<HttpErrorWrapperComponent, "abp-http-error-wrapper", never, {}, {}, never, never, false, never>;
|
|
30
31
|
}
|
|
@@ -49,3 +49,15 @@ export declare const CUSTOM_HTTP_ERROR_HANDLER_PRIORITY: Readonly<{
|
|
|
49
49
|
high: 9;
|
|
50
50
|
veryHigh: 99;
|
|
51
51
|
}>;
|
|
52
|
+
export declare const HTTP_ERROR_STATUS: {
|
|
53
|
+
'401': string;
|
|
54
|
+
'403': string;
|
|
55
|
+
'404': string;
|
|
56
|
+
'500': string;
|
|
57
|
+
};
|
|
58
|
+
export declare const HTTP_ERROR_DETAIL: {
|
|
59
|
+
'401': string;
|
|
60
|
+
'403': string;
|
|
61
|
+
'404': string;
|
|
62
|
+
'500': string;
|
|
63
|
+
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, DoCheck, SimpleChanges, DestroyRef } from '@angular/core';
|
|
3
2
|
import { DatatableComponent } from '@swimlane/ngx-datatable';
|
|
4
|
-
import {
|
|
3
|
+
import { ListService, LocalizationService } from '@abp/ng.core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NgxDatatableListDirective implements OnChanges,
|
|
7
|
-
private table;
|
|
8
|
-
private cdRef;
|
|
9
|
-
private localizationService;
|
|
10
|
-
private ngxDatatableMessages;
|
|
11
|
-
private subscription;
|
|
12
|
-
private querySubscription;
|
|
5
|
+
export declare class NgxDatatableListDirective implements OnChanges, OnInit, DoCheck {
|
|
13
6
|
list: ListService;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
protected readonly table: DatatableComponent;
|
|
8
|
+
protected readonly cdRef: ChangeDetectorRef;
|
|
9
|
+
protected readonly destroyRef: DestroyRef;
|
|
10
|
+
protected readonly localizationService: LocalizationService;
|
|
11
|
+
protected readonly ngxDatatableMessages: Partial<import("../tokens/ngx-datatable-messages.token").NgxDatatableMessages>;
|
|
12
|
+
constructor();
|
|
13
|
+
ngDoCheck(): void;
|
|
20
14
|
ngOnInit(): void;
|
|
21
|
-
|
|
15
|
+
ngOnChanges({ list }: SimpleChanges): void;
|
|
16
|
+
protected setInitialValues(): void;
|
|
17
|
+
protected subscribeToSort(): void;
|
|
18
|
+
protected subscribeToPage(): void;
|
|
19
|
+
protected subscribeToQuery(): void;
|
|
20
|
+
protected setTablePage(pageNum: number): void;
|
|
21
|
+
protected refreshPageIfDataExist(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDatatableListDirective, never>;
|
|
22
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxDatatableListDirective, "ngx-datatable[list]", ["ngxDatatableList"], { "list": { "alias": "list"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentRef, EnvironmentInjector, Injector, RendererFactory2 } from '@angular/core';
|
|
2
2
|
import { RouterEvents } from '@abp/ng.core';
|
|
3
3
|
import { HttpErrorWrapperComponent } from '../components/http-error-wrapper/http-error-wrapper.component';
|
|
4
4
|
import { ErrorScreenErrorCodes } from '../models/common';
|
|
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class CreateErrorComponentService {
|
|
7
7
|
protected readonly document: Document;
|
|
8
8
|
protected readonly rendererFactory: RendererFactory2;
|
|
9
|
-
protected readonly cfRes: ComponentFactoryResolver;
|
|
10
9
|
protected readonly routerEvents: RouterEvents;
|
|
11
10
|
protected readonly injector: Injector;
|
|
11
|
+
protected readonly envInjector: EnvironmentInjector;
|
|
12
12
|
protected readonly httpErrorConfig: import("../models/common").HttpErrorConfig;
|
|
13
13
|
componentRef: ComponentRef<HttpErrorWrapperComponent> | null;
|
|
14
14
|
constructor();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.theme.shared",
|
|
3
|
-
"version": "8.1.0
|
|
3
|
+
"version": "8.1.0",
|
|
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/ng.core": "~8.1.0
|
|
10
|
+
"@abp/ng.core": "~8.1.0",
|
|
11
11
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
|
12
12
|
"@ng-bootstrap/ng-bootstrap": "~16.0.0",
|
|
13
13
|
"@ngx-validate/core": "^0.2.0",
|
package/public-api.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './lib/adapters';
|
|
2
2
|
export * from './lib/animations';
|
|
3
3
|
export * from './lib/components';
|
|
4
|
-
export * from './lib/constants/validation';
|
|
5
|
-
export * from './lib/constants/default-errors';
|
|
6
4
|
export * from './lib/directives';
|
|
7
5
|
export * from './lib/enums';
|
|
8
6
|
export * from './lib/handlers';
|
|
@@ -12,3 +10,4 @@ export * from './lib/services';
|
|
|
12
10
|
export * from './lib/theme-shared.module';
|
|
13
11
|
export * from './lib/tokens';
|
|
14
12
|
export * from './lib/utils';
|
|
13
|
+
export * from './lib/constants';
|