@abp/ng.theme.shared 9.3.0-rc.2 → 9.3.0-rc.4
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/fesm2022/abp-ng.theme.shared-testing.mjs +4 -4
- package/fesm2022/abp-ng.theme.shared-testing.mjs.map +1 -1
- package/fesm2022/abp-ng.theme.shared.mjs +162 -160
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/index.d.ts +1071 -3
- package/package.json +5 -5
- package/testing/index.d.ts +24 -3
- package/lib/adapters/date-time.adapter.d.ts +0 -11
- package/lib/adapters/date.adapter.d.ts +0 -9
- package/lib/adapters/index.d.ts +0 -3
- package/lib/adapters/time.adapter.d.ts +0 -8
- package/lib/animations/bounce.animations.d.ts +0 -1
- package/lib/animations/collapse.animations.d.ts +0 -9
- package/lib/animations/fade.animations.d.ts +0 -10
- package/lib/animations/index.d.ts +0 -6
- package/lib/animations/modal.animations.d.ts +0 -2
- package/lib/animations/slide.animations.d.ts +0 -1
- package/lib/animations/toast.animations.d.ts +0 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -16
- package/lib/components/breadcrumb-items/breadcrumb-items.component.d.ts +0 -7
- package/lib/components/button/button.component.d.ts +0 -26
- package/lib/components/card/card-body.component.d.ts +0 -8
- package/lib/components/card/card-footer.component.d.ts +0 -8
- package/lib/components/card/card-header.component.d.ts +0 -8
- package/lib/components/card/card-header.directive.d.ts +0 -6
- package/lib/components/card/card-img-top.directive.d.ts +0 -6
- package/lib/components/card/card-subtitle.directive.d.ts +0 -6
- package/lib/components/card/card-title.directive.d.ts +0 -6
- package/lib/components/card/card.component.d.ts +0 -7
- package/lib/components/card/card.module.d.ts +0 -21
- package/lib/components/card/index.d.ts +0 -9
- package/lib/components/checkbox/checkbox.component.d.ts +0 -17
- package/lib/components/confirmation/confirmation.component.d.ts +0 -19
- package/lib/components/form-input/form-input.component.d.ts +0 -18
- package/lib/components/http-error-wrapper/http-error-wrapper.component.d.ts +0 -31
- package/lib/components/index.d.ts +0 -18
- package/lib/components/internet-connection-status/internet-connection-status.component.d.ts +0 -8
- package/lib/components/loader-bar/loader-bar.component.d.ts +0 -33
- package/lib/components/loading/loading.component.d.ts +0 -5
- package/lib/components/modal/modal-close.directive.d.ts +0 -9
- package/lib/components/modal/modal-ref.service.d.ts +0 -13
- package/lib/components/modal/modal.component.d.ts +0 -40
- package/lib/components/password/password.component.d.ts +0 -14
- package/lib/components/spinner/spinner.component.d.ts +0 -5
- package/lib/components/toast/toast.component.d.ts +0 -14
- package/lib/components/toast-container/toast-container.component.d.ts +0 -22
- package/lib/constants/default-errors.d.ts +0 -63
- package/lib/constants/index.d.ts +0 -4
- package/lib/constants/scripts.d.ts +0 -2
- package/lib/constants/styles.d.ts +0 -2
- package/lib/constants/validation.d.ts +0 -20
- package/lib/directives/disabled.directive.d.ts +0 -11
- package/lib/directives/ellipsis.directive.d.ts +0 -16
- package/lib/directives/index.d.ts +0 -6
- package/lib/directives/loading.directive.d.ts +0 -25
- package/lib/directives/ngx-datatable-default.directive.d.ts +0 -30
- package/lib/directives/ngx-datatable-list.directive.d.ts +0 -29
- package/lib/directives/visible.directive.d.ts +0 -18
- package/lib/enums/form.d.ts +0 -4
- package/lib/enums/index.d.ts +0 -2
- package/lib/enums/route-names.d.ts +0 -3
- package/lib/handlers/document-dir.handler.d.ts +0 -13
- package/lib/handlers/error.handler.d.ts +0 -28
- package/lib/handlers/index.d.ts +0 -2
- package/lib/models/common.d.ts +0 -26
- package/lib/models/confirmation.d.ts +0 -27
- package/lib/models/index.d.ts +0 -7
- package/lib/models/nav-item.d.ts +0 -22
- package/lib/models/statistics.d.ts +0 -12
- package/lib/models/toaster.d.ts +0 -31
- package/lib/models/user-menu.d.ts +0 -8
- package/lib/models/validation.d.ts +0 -1
- package/lib/providers/error-handlers.provider.d.ts +0 -2
- package/lib/providers/index.d.ts +0 -5
- package/lib/providers/ng-bootstrap-config.provider.d.ts +0 -2
- package/lib/providers/route.provider.d.ts +0 -2
- package/lib/providers/tenant-not-found.provider.d.ts +0 -2
- package/lib/providers/theme-shared-config.provider.d.ts +0 -22
- package/lib/services/abp-format-error-handler.service.d.ts +0 -13
- package/lib/services/abstract-menu.service.d.ts +0 -16
- package/lib/services/authentication-error-handler.service.d.ts +0 -12
- package/lib/services/confirmation.service.d.ts +0 -21
- package/lib/services/create-error-component.service.d.ts +0 -22
- package/lib/services/index.d.ts +0 -12
- package/lib/services/nav-items.service.d.ts +0 -8
- package/lib/services/page-alert.service.d.ts +0 -17
- package/lib/services/router-error-handler.service.d.ts +0 -14
- package/lib/services/status-code-error-handler.service.d.ts +0 -21
- package/lib/services/tenant-resolve-error-handler.service.d.ts +0 -13
- package/lib/services/toaster.service.d.ts +0 -60
- package/lib/services/unknown-status-code-error-handler.service.d.ts +0 -16
- package/lib/services/user-menu.service.d.ts +0 -8
- package/lib/theme-shared.module.d.ts +0 -42
- package/lib/tokens/append-content.token.d.ts +0 -2
- package/lib/tokens/confirmation-icons.token.d.ts +0 -11
- package/lib/tokens/http-error.token.d.ts +0 -8
- package/lib/tokens/index.d.ts +0 -5
- package/lib/tokens/ngx-datatable-messages.token.d.ts +0 -14
- package/lib/tokens/suppress-unsaved-changes-warning.token.d.ts +0 -2
- package/lib/utils/date-parser-formatter.d.ts +0 -12
- package/lib/utils/error.utils.d.ts +0 -8
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/validation-utils.d.ts +0 -5
- package/public-api.d.ts +0 -13
- package/testing/lib/models/config.d.ts +0 -4
- package/testing/lib/models/index.d.ts +0 -1
- package/testing/lib/theme-shared-testing.module.d.ts +0 -14
- package/testing/public-api.d.ts +0 -3
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_ERROR_MESSAGES: {
|
|
2
|
-
defaultError: {
|
|
3
|
-
title: string;
|
|
4
|
-
details: string;
|
|
5
|
-
};
|
|
6
|
-
defaultError401: {
|
|
7
|
-
title: string;
|
|
8
|
-
details: string;
|
|
9
|
-
};
|
|
10
|
-
defaultError403: {
|
|
11
|
-
title: string;
|
|
12
|
-
details: string;
|
|
13
|
-
};
|
|
14
|
-
defaultError404: {
|
|
15
|
-
title: string;
|
|
16
|
-
details: string;
|
|
17
|
-
};
|
|
18
|
-
defaultError500: {
|
|
19
|
-
title: string;
|
|
20
|
-
details: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const DEFAULT_ERROR_LOCALIZATIONS: {
|
|
24
|
-
defaultError: {
|
|
25
|
-
title: string;
|
|
26
|
-
details: string;
|
|
27
|
-
};
|
|
28
|
-
defaultError401: {
|
|
29
|
-
title: string;
|
|
30
|
-
details: string;
|
|
31
|
-
};
|
|
32
|
-
defaultError403: {
|
|
33
|
-
title: string;
|
|
34
|
-
details: string;
|
|
35
|
-
};
|
|
36
|
-
defaultError404: {
|
|
37
|
-
title: string;
|
|
38
|
-
details: string;
|
|
39
|
-
};
|
|
40
|
-
defaultError500: {
|
|
41
|
-
title: string;
|
|
42
|
-
details: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export declare const CUSTOM_HTTP_ERROR_HANDLER_PRIORITY: Readonly<{
|
|
46
|
-
veryLow: -99;
|
|
47
|
-
low: -9;
|
|
48
|
-
normal: 0;
|
|
49
|
-
high: 9;
|
|
50
|
-
veryHigh: 99;
|
|
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
|
-
};
|
package/lib/constants/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n.is-invalid .form-control {\n border-color: #dc3545;\n border-style: solid !important;\n padding-right: calc(1.5em + .75rem);\n background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);\n background-repeat: no-repeat;\n background-position: right calc(.375em + .1875rem) center;\n background-size: calc(.75em + .375rem) calc(.75em + .375rem);\n}\n\n.is-invalid .invalid-feedback,\n.is-invalid + * .invalid-feedback {\n display: block;\n}\n\n.data-tables-filter {\n text-align: right;\n}\n\n[dir=rtl] .data-tables-filter {\n text-align: left;\n}\n\n.pointer {\n cursor: pointer;\n}\n\n.navbar .dropdown-submenu a::after {\n transform: rotate(-90deg);\n position: absolute;\n right: 16px;\n top: 18px;\n}\n\n.navbar .dropdown-menu {\n min-width: 215px;\n}\n\n.datatable-scroll {\n margin-bottom: 5px !important;\n width: unset !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar {\n height: 5px !important;\n width: 5px !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-track {\n background: #ddd;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-thumb {\n background: #8a8686;\n}\n\n.abp-ellipsis-inline {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.abp-ellipsis {\n overflow: hidden !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ui-widget-overlay {\n z-index: 1000;\n}\n\n.color-white {\n color: #FFF !important;\n}\n\n.custom-checkbox > label {\n cursor: pointer;\n}\n\n/* <animations */\n\n.fade-in-top {\n animation: fadeInTop 0.2s ease-in-out;\n}\n\n.fade-out-top {\n animation: fadeOutTop 0.2s ease-in-out;\n}\n\n.abp-collapsed-height {\n -moz-transition: max-height linear 0.35s;\n -ms-transition: max-height linear 0.35s;\n -o-transition: max-height linear 0.35s;\n -webkit-transition: max-height linear 0.35s;\n overflow:hidden;\n transition:max-height 0.35s linear;\n height:auto;\n max-height: 0;\n}\n\n.abp-mh-25 {\n max-height: 25vh;\n}\n\n.abp-mh-50 {\n transition:max-height 0.65s linear;\n max-height: 50vh;\n}\n\n.abp-mh-75 {\n transition:max-height 0.85s linear;\n max-height: 75vh;\n}\n\n.abp-mh-100 {\n transition:max-height 1s linear;\n max-height: 100vh;\n}\n\n[class^=\"sorting\"] {\n opacity: .3;\n cursor: pointer;\n}\n[class^=\"sorting\"]:before {\n right: 0.5rem;\n content: \"↑\";\n}\n[class^=\"sorting\"]:after {\n right: 0.5rem;\n content: \"↓\";\n}\n\n.sorting_desc {\n opacity: 1;\n}\n.sorting_desc:before {\n opacity: .3;\n}\n\n.sorting_asc {\n opacity: 1;\n}\n.sorting_asc:after {\n opacity: .3;\n}\n.ngx-datatable.material {\n box-shadow: none;\n}\nngb-typeahead-window, ngb-typeahead-window.dropdown-menu {\n max-height: 25em;\n overflow-y: scroll !important;\n z-index: 1050;\n}\n\n.abp-modal-header {\n word-break: break-word;\n}\n\n\n@keyframes fadeInTop {\n from {\n transform: translateY(-5px);\n opacity: 0;\n }\n\n to {\n transform: translateY(0px);\n opacity: 1;\n }\n}\n\n@keyframes fadeOutTop {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n\n/* </animations */\n.ngb-dp-body {\n z-index: 1055 !important;\n}\n";
|
|
2
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_VALIDATION_BLUEPRINTS: {
|
|
2
|
-
creditCard: string;
|
|
3
|
-
email: string;
|
|
4
|
-
invalid: string;
|
|
5
|
-
max: string;
|
|
6
|
-
maxlength: string;
|
|
7
|
-
min: string;
|
|
8
|
-
minlength: string;
|
|
9
|
-
ngbDate: string;
|
|
10
|
-
passwordMismatch: string;
|
|
11
|
-
range: string;
|
|
12
|
-
required: string;
|
|
13
|
-
url: string;
|
|
14
|
-
passwordRequiresLower: string;
|
|
15
|
-
passwordRequiresUpper: string;
|
|
16
|
-
passwordRequiresDigit: string;
|
|
17
|
-
passwordRequiresNonAlphanumeric: string;
|
|
18
|
-
usernamePattern: string;
|
|
19
|
-
customMessage: string;
|
|
20
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DisabledDirective implements OnChanges {
|
|
5
|
-
private ngControl;
|
|
6
|
-
abpDisabled: boolean;
|
|
7
|
-
constructor(ngControl: NgControl);
|
|
8
|
-
ngOnChanges({ abpDisabled }: SimpleChanges): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledDirective, [{ host: true; }]>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DisabledDirective, "[abpDisabled]", never, { "abpDisabled": { "alias": "abpDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EllipsisDirective implements AfterViewInit {
|
|
4
|
-
private cdRef;
|
|
5
|
-
private elRef;
|
|
6
|
-
width?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
get inlineClass(): string;
|
|
10
|
-
get class(): boolean;
|
|
11
|
-
get maxWidth(): string;
|
|
12
|
-
constructor(cdRef: ChangeDetectorRef, elRef: ElementRef);
|
|
13
|
-
ngAfterViewInit(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EllipsisDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EllipsisDirective, "[abpEllipsis]", never, { "width": { "alias": "abpEllipsis"; "required": false; }; "title": { "alias": "title"; "required": false; }; "enabled": { "alias": "abpEllipsisEnabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, ComponentRef, ElementRef, Injector, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
import { LoadingComponent } from '../components';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoadingDirective implements OnInit, OnDestroy {
|
|
6
|
-
private elRef;
|
|
7
|
-
private vcRef;
|
|
8
|
-
private cdRes;
|
|
9
|
-
private injector;
|
|
10
|
-
private renderer;
|
|
11
|
-
private _loading;
|
|
12
|
-
position: string;
|
|
13
|
-
get loading(): boolean;
|
|
14
|
-
set loading(newValue: boolean);
|
|
15
|
-
targetElement: HTMLElement | undefined;
|
|
16
|
-
delay: number;
|
|
17
|
-
componentRef: ComponentRef<LoadingComponent>;
|
|
18
|
-
rootNode: HTMLDivElement | null;
|
|
19
|
-
timerSubscription: Subscription | null;
|
|
20
|
-
constructor(elRef: ElementRef<HTMLElement>, vcRef: ViewContainerRef, cdRes: ComponentFactoryResolver, injector: Injector, renderer: Renderer2);
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadingDirective, "[abpLoading]", never, { "loading": { "alias": "abpLoading"; "required": false; }; "targetElement": { "alias": "abpLoadingTargetElement"; "required": false; }; "delay": { "alias": "abpLoadingDelay"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { DatatableComponent } from '@swimlane/ngx-datatable';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgxDatatableDefaultDirective implements AfterViewInit, OnDestroy {
|
|
5
|
-
private table;
|
|
6
|
-
private document;
|
|
7
|
-
private subscription;
|
|
8
|
-
private resizeDiff;
|
|
9
|
-
class: string;
|
|
10
|
-
get classes(): string;
|
|
11
|
-
constructor(table: DatatableComponent, document: MockDocument);
|
|
12
|
-
private fixHorizontalGap;
|
|
13
|
-
private fixStyleOnWindowResize;
|
|
14
|
-
ngAfterViewInit(): void;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDatatableDefaultDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxDatatableDefaultDirective, "ngx-datatable[default]", ["ngxDatatableDefault"], { "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
19
|
-
interface MockDocument {
|
|
20
|
-
body: MockBody;
|
|
21
|
-
documentElement: MockDocumentElement;
|
|
22
|
-
}
|
|
23
|
-
interface MockBody {
|
|
24
|
-
offsetWidth: number;
|
|
25
|
-
}
|
|
26
|
-
interface MockDocumentElement {
|
|
27
|
-
clientHeight: number;
|
|
28
|
-
scrollHeight: number;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnChanges, OnInit, DoCheck, SimpleChanges, DestroyRef, ViewContainerRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { DatatableComponent } from '@swimlane/ngx-datatable';
|
|
3
|
-
import { ListService, LocalizationService } from '@abp/ng.core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgxDatatableListDirective implements OnChanges, OnInit, DoCheck {
|
|
6
|
-
protected readonly table: DatatableComponent;
|
|
7
|
-
protected readonly cdRef: ChangeDetectorRef;
|
|
8
|
-
protected readonly destroyRef: DestroyRef;
|
|
9
|
-
protected readonly localizationService: LocalizationService;
|
|
10
|
-
protected readonly ngxDatatableMessages: Partial<import("../tokens/ngx-datatable-messages.token").NgxDatatableMessages>;
|
|
11
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
12
|
-
protected readonly renderer: Renderer2;
|
|
13
|
-
list: ListService;
|
|
14
|
-
constructor();
|
|
15
|
-
ngDoCheck(): void;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnChanges({ list }: SimpleChanges): void;
|
|
18
|
-
protected subscribeToRequestStatus(): void;
|
|
19
|
-
protected updateLoadingIndicator(): void;
|
|
20
|
-
protected replaceLoadingIndicator(parent: Element, placeholder: Element): void;
|
|
21
|
-
protected setInitialValues(): void;
|
|
22
|
-
protected subscribeToSort(): void;
|
|
23
|
-
protected subscribeToPage(): void;
|
|
24
|
-
protected subscribeToQuery(): void;
|
|
25
|
-
protected setTablePage(pageNum: number): void;
|
|
26
|
-
protected refreshPageIfDataExist(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDatatableListDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxDatatableListDirective, "ngx-datatable[list]", ["ngxDatatableList"], { "list": { "alias": "list"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, ViewContainerRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Observable, Subscription } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AbpVisibleDirective implements OnDestroy, OnInit {
|
|
5
|
-
private viewContainerRef;
|
|
6
|
-
private templateRef;
|
|
7
|
-
conditionSubscription: Subscription | undefined;
|
|
8
|
-
isVisible: boolean | undefined;
|
|
9
|
-
set abpVisible(value: boolean | Promise<boolean> | Observable<boolean> | undefined | null);
|
|
10
|
-
private condition$;
|
|
11
|
-
constructor(viewContainerRef: ViewContainerRef, templateRef: TemplateRef<unknown>);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
private subscribeToCondition;
|
|
15
|
-
private updateVisibility;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbpVisibleDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbpVisibleDirective, "[abpVisible]", never, { "abpVisible": { "alias": "abpVisible"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
package/lib/enums/form.d.ts
DELETED
package/lib/enums/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { LocaleDirection } from '../models/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DocumentDirHandlerService {
|
|
5
|
-
protected injector: Injector;
|
|
6
|
-
private dir;
|
|
7
|
-
dir$: import("rxjs").Observable<LocaleDirection>;
|
|
8
|
-
constructor(injector: Injector);
|
|
9
|
-
private listenToLanguageChanges;
|
|
10
|
-
private setBodyDir;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentDirHandlerService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentDirHandlerService>;
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { HttpErrorReporterService } from '@abp/ng.core';
|
|
5
|
-
import { CustomHttpErrorHandlerService } from '../models/common';
|
|
6
|
-
import { Confirmation } from '../models/confirmation';
|
|
7
|
-
import { ConfirmationService } from '../services/confirmation.service';
|
|
8
|
-
import { RouterErrorHandlerService } from '../services/router-error-handler.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ErrorHandler {
|
|
11
|
-
protected injector: Injector;
|
|
12
|
-
protected readonly httpErrorReporter: HttpErrorReporterService;
|
|
13
|
-
protected readonly confirmationService: ConfirmationService;
|
|
14
|
-
protected readonly routerErrorHandlerService: RouterErrorHandlerService;
|
|
15
|
-
protected readonly httpErrorConfig: import("../models/common").HttpErrorConfig;
|
|
16
|
-
protected readonly customErrorHandlers: CustomHttpErrorHandlerService[];
|
|
17
|
-
protected readonly httpErrorHandler: import("../models/common").HttpErrorHandler;
|
|
18
|
-
constructor(injector: Injector);
|
|
19
|
-
protected listenToRouterError(): void;
|
|
20
|
-
protected listenToRestError(): void;
|
|
21
|
-
protected executeErrorHandler: (error: HttpErrorResponse) => Observable<any>;
|
|
22
|
-
protected sortHttpErrorHandlers(a: CustomHttpErrorHandlerService, b: CustomHttpErrorHandlerService): number;
|
|
23
|
-
protected handleError(err: unknown): void;
|
|
24
|
-
protected showError(): Observable<Confirmation.Status>;
|
|
25
|
-
protected filterRestErrors: ({ status }: HttpErrorResponse) => boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandler, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorHandler>;
|
|
28
|
-
}
|
package/lib/handlers/index.d.ts
DELETED
package/lib/models/common.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { Injector, Type } from '@angular/core';
|
|
3
|
-
import { Validation } from '@ngx-validate/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ConfirmationIcons } from '../tokens/confirmation-icons.token';
|
|
6
|
-
export interface RootParams {
|
|
7
|
-
httpErrorConfig?: HttpErrorConfig;
|
|
8
|
-
validation?: Partial<Validation.Config>;
|
|
9
|
-
confirmationIcons?: Partial<ConfirmationIcons>;
|
|
10
|
-
}
|
|
11
|
-
export type ErrorScreenErrorCodes = 0 | 401 | 403 | 404 | 500;
|
|
12
|
-
export interface HttpErrorConfig {
|
|
13
|
-
skipHandledErrorCodes?: ErrorScreenErrorCodes[] | number[];
|
|
14
|
-
errorScreen?: {
|
|
15
|
-
component: Type<any>;
|
|
16
|
-
forWhichErrors?: ErrorScreenErrorCodes[];
|
|
17
|
-
hideCloseIcon?: boolean;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export type HttpErrorHandler<T = any> = (injector: Injector, httpError: HttpErrorResponse) => Observable<T>;
|
|
21
|
-
export type LocaleDirection = 'ltr' | 'rtl';
|
|
22
|
-
export interface CustomHttpErrorHandlerService {
|
|
23
|
-
readonly priority: number;
|
|
24
|
-
canHandle(error: unknown): boolean;
|
|
25
|
-
execute(): void;
|
|
26
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
export declare namespace Confirmation {
|
|
3
|
-
interface Options {
|
|
4
|
-
id?: any;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
messageLocalizationParams?: string[];
|
|
7
|
-
titleLocalizationParams?: string[];
|
|
8
|
-
hideCancelBtn?: boolean;
|
|
9
|
-
hideYesBtn?: boolean;
|
|
10
|
-
cancelText?: LocalizationParam;
|
|
11
|
-
yesText?: LocalizationParam;
|
|
12
|
-
icon?: string;
|
|
13
|
-
iconTemplate?: string;
|
|
14
|
-
}
|
|
15
|
-
interface DialogData {
|
|
16
|
-
message: LocalizationParam;
|
|
17
|
-
title?: LocalizationParam;
|
|
18
|
-
severity?: Severity;
|
|
19
|
-
options?: Partial<Options>;
|
|
20
|
-
}
|
|
21
|
-
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
22
|
-
enum Status {
|
|
23
|
-
confirm = "confirm",
|
|
24
|
-
reject = "reject",
|
|
25
|
-
dismiss = "dismiss"
|
|
26
|
-
}
|
|
27
|
-
}
|
package/lib/models/index.d.ts
DELETED
package/lib/models/nav-item.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Injector, Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface Badge {
|
|
4
|
-
count?: number | Observable<number>;
|
|
5
|
-
color?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class NavItem {
|
|
9
|
-
id?: string | number;
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
badge?: Badge;
|
|
13
|
-
component?: Type<any>;
|
|
14
|
-
html?: string;
|
|
15
|
-
action?: () => void;
|
|
16
|
-
order?: number;
|
|
17
|
-
requiredPolicy?: string;
|
|
18
|
-
visible?: NavBarPropPredicate<NavItem>;
|
|
19
|
-
icon?: string;
|
|
20
|
-
constructor(props: Partial<NavItem>);
|
|
21
|
-
}
|
|
22
|
-
export type NavBarPropPredicate<T> = (prop?: T, injector?: Injector) => boolean | Promise<boolean> | Observable<boolean>;
|
package/lib/models/toaster.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
export declare namespace Toaster {
|
|
3
|
-
interface ToastOptions {
|
|
4
|
-
life?: number;
|
|
5
|
-
sticky?: boolean;
|
|
6
|
-
closable?: boolean;
|
|
7
|
-
tapToDismiss?: boolean;
|
|
8
|
-
messageLocalizationParams?: string[];
|
|
9
|
-
titleLocalizationParams?: string[];
|
|
10
|
-
id: any;
|
|
11
|
-
containerKey?: string;
|
|
12
|
-
iconClass?: string;
|
|
13
|
-
}
|
|
14
|
-
interface Toast {
|
|
15
|
-
message: LocalizationParam;
|
|
16
|
-
title?: LocalizationParam;
|
|
17
|
-
severity?: string;
|
|
18
|
-
options?: ToastOptions;
|
|
19
|
-
}
|
|
20
|
-
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
21
|
-
type ToasterId = string | number;
|
|
22
|
-
interface Service {
|
|
23
|
-
show: (message: LocalizationParam, title: LocalizationParam, severity: Toaster.Severity, options: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
24
|
-
remove: (id: number) => void;
|
|
25
|
-
clear: (containerKey?: string) => void;
|
|
26
|
-
info: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
27
|
-
success: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
28
|
-
warn: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
29
|
-
error: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PasswordRule = 'small' | 'capital' | 'number' | 'special';
|
package/lib/providers/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import { Validation } from '@ngx-validate/core';
|
|
3
|
-
import { HttpErrorConfig } from '../models';
|
|
4
|
-
import { ConfirmationIcons } from '../tokens';
|
|
5
|
-
export declare enum ThemeSharedFeatureKind {
|
|
6
|
-
HttpErrorConfig = 0,
|
|
7
|
-
ValidationBluePrint = 1,
|
|
8
|
-
ValidationErrorsFn = 2,
|
|
9
|
-
ValidateOnSubmit = 3,
|
|
10
|
-
Validation = 4,
|
|
11
|
-
ConfirmationIcons = 5
|
|
12
|
-
}
|
|
13
|
-
export interface ThemeSharedFeature<KindT extends ThemeSharedFeatureKind> {
|
|
14
|
-
ɵkind: KindT;
|
|
15
|
-
ɵproviders: Provider[];
|
|
16
|
-
}
|
|
17
|
-
export declare function withHttpErrorConfig(httpErrorConfig: HttpErrorConfig): ThemeSharedFeature<ThemeSharedFeatureKind.HttpErrorConfig>;
|
|
18
|
-
export declare function withValidationBluePrint(bluePrints: Validation.Blueprints): ThemeSharedFeature<ThemeSharedFeatureKind.ValidationBluePrint>;
|
|
19
|
-
export declare function withValidationMapErrorsFn(mapErrorsFn: Validation.MapErrorsFn): ThemeSharedFeature<ThemeSharedFeatureKind.ValidationErrorsFn>;
|
|
20
|
-
export declare function withValidateOnSubmit(validateOnSubmit: boolean): ThemeSharedFeature<ThemeSharedFeatureKind.ValidateOnSubmit>;
|
|
21
|
-
export declare function withConfirmationIcon(confirmationIcons: Partial<ConfirmationIcons>): ThemeSharedFeature<ThemeSharedFeatureKind.HttpErrorConfig>;
|
|
22
|
-
export declare function provideAbpThemeShared(...features: ThemeSharedFeature<ThemeSharedFeatureKind>[]): import("@angular/core").EnvironmentProviders;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomHttpErrorHandlerService } from '../models/common';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AbpFormatErrorHandlerService implements CustomHttpErrorHandlerService {
|
|
4
|
-
readonly priority: 9;
|
|
5
|
-
private confirmationService;
|
|
6
|
-
private authService;
|
|
7
|
-
private error;
|
|
8
|
-
private navigateToLogin;
|
|
9
|
-
canHandle(error: unknown): boolean;
|
|
10
|
-
execute(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbpFormatErrorHandlerService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AbpFormatErrorHandlerService>;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { NavItem } from '../models/nav-item';
|
|
3
|
-
import { Type } from '@angular/core';
|
|
4
|
-
import { SortableItem } from '@abp/ng.core';
|
|
5
|
-
export declare abstract class AbstractMenuService<T extends NavItem> {
|
|
6
|
-
protected abstract baseClass: Type<any>;
|
|
7
|
-
protected readonly sortFn: (a: SortableItem, b: SortableItem) => number;
|
|
8
|
-
protected _items$: BehaviorSubject<T[]>;
|
|
9
|
-
get items(): T[];
|
|
10
|
-
get items$(): Observable<T[]>;
|
|
11
|
-
constructor();
|
|
12
|
-
addItems(newItems: T[]): void;
|
|
13
|
-
removeItem(id: string | number): void;
|
|
14
|
-
patchItem(id: string | number, item: Partial<Omit<T, 'id'>>): void;
|
|
15
|
-
sortItems: (a: T, b: T) => number;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AuthService, ConfigStateService } from '@abp/ng.core';
|
|
2
|
-
import { CustomHttpErrorHandlerService } from '../models/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AbpAuthenticationErrorHandler implements CustomHttpErrorHandlerService {
|
|
5
|
-
readonly priority: 99;
|
|
6
|
-
protected readonly authService: AuthService;
|
|
7
|
-
protected readonly configStateService: ConfigStateService;
|
|
8
|
-
canHandle(error: unknown): boolean;
|
|
9
|
-
execute(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbpAuthenticationErrorHandler, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AbpAuthenticationErrorHandler>;
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ContentProjectionService, LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
import { Observable, ReplaySubject, Subject } from 'rxjs';
|
|
3
|
-
import { Confirmation } from '../models/confirmation';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ConfirmationService {
|
|
6
|
-
private contentProjectionService;
|
|
7
|
-
status$: Subject<Confirmation.Status>;
|
|
8
|
-
confirmation$: ReplaySubject<Confirmation.DialogData>;
|
|
9
|
-
private containerComponentRef;
|
|
10
|
-
clear: (status?: Confirmation.Status) => void;
|
|
11
|
-
constructor(contentProjectionService: ContentProjectionService);
|
|
12
|
-
private setContainer;
|
|
13
|
-
info(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
14
|
-
success(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
15
|
-
warn(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
16
|
-
error(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
17
|
-
show(message: LocalizationParam, title: LocalizationParam, severity?: Confirmation.Severity, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
18
|
-
private listenToEscape;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentRef, EnvironmentInjector, Injector, RendererFactory2 } from '@angular/core';
|
|
2
|
-
import { RouterEvents } from '@abp/ng.core';
|
|
3
|
-
import { HttpErrorWrapperComponent } from '../components/http-error-wrapper/http-error-wrapper.component';
|
|
4
|
-
import { ErrorScreenErrorCodes } from '../models/common';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CreateErrorComponentService {
|
|
7
|
-
protected readonly document: Document;
|
|
8
|
-
protected readonly rendererFactory: RendererFactory2;
|
|
9
|
-
protected readonly routerEvents: RouterEvents;
|
|
10
|
-
protected readonly injector: Injector;
|
|
11
|
-
protected readonly envInjector: EnvironmentInjector;
|
|
12
|
-
protected readonly httpErrorConfig: import("../models/common").HttpErrorConfig;
|
|
13
|
-
componentRef: ComponentRef<HttpErrorWrapperComponent> | null;
|
|
14
|
-
constructor();
|
|
15
|
-
protected listenToRouterDataResolved(): void;
|
|
16
|
-
protected getErrorHostElement(): HTMLElement;
|
|
17
|
-
protected isCloseIconHidden(): boolean;
|
|
18
|
-
canCreateCustomError(status: ErrorScreenErrorCodes): boolean;
|
|
19
|
-
execute(instance: Partial<HttpErrorWrapperComponent>): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CreateErrorComponentService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CreateErrorComponentService>;
|
|
22
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './confirmation.service';
|
|
2
|
-
export * from './nav-items.service';
|
|
3
|
-
export * from './page-alert.service';
|
|
4
|
-
export * from './toaster.service';
|
|
5
|
-
export * from './user-menu.service';
|
|
6
|
-
export * from './create-error-component.service';
|
|
7
|
-
export * from './abp-format-error-handler.service';
|
|
8
|
-
export * from './tenant-resolve-error-handler.service';
|
|
9
|
-
export * from './status-code-error-handler.service';
|
|
10
|
-
export * from './unknown-status-code-error-handler.service';
|
|
11
|
-
export * from './router-error-handler.service';
|
|
12
|
-
export * from './authentication-error-handler.service';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { NavItem } from '../models/nav-item';
|
|
2
|
-
import { AbstractMenuService } from './abstract-menu.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NavItemsService extends AbstractMenuService<NavItem> {
|
|
5
|
-
protected baseClass: typeof NavItem;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavItemsService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NavItemsService>;
|
|
8
|
-
}
|