@abp/ng.theme.shared 8.2.2 → 8.3.0-rc.2
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/adapters/date-time.adapter.mjs +4 -4
- package/esm2022/lib/adapters/date.adapter.mjs +4 -4
- package/esm2022/lib/adapters/time.adapter.mjs +4 -4
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +4 -4
- package/esm2022/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +4 -4
- package/esm2022/lib/components/card/card-body.component.mjs +4 -4
- package/esm2022/lib/components/card/card-footer.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-img-top.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-subtitle.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-title.directive.mjs +4 -4
- package/esm2022/lib/components/card/card.component.mjs +4 -4
- package/esm2022/lib/components/card/card.module.mjs +5 -5
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/lib/components/confirmation/confirmation.component.mjs +4 -4
- package/esm2022/lib/components/form-input/form-input.component.mjs +4 -4
- package/esm2022/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +4 -4
- package/esm2022/lib/components/internet-connection-status/internet-connection-status.component.mjs +4 -4
- package/esm2022/lib/components/loader-bar/loader-bar.component.mjs +4 -4
- package/esm2022/lib/components/loading/loading.component.mjs +4 -4
- package/esm2022/lib/components/modal/modal-close.directive.mjs +4 -4
- package/esm2022/lib/components/modal/modal-ref.service.mjs +4 -4
- package/esm2022/lib/components/modal/modal.component.mjs +58 -107
- package/esm2022/lib/components/password/password.component.mjs +4 -4
- package/esm2022/lib/components/toast/toast.component.mjs +4 -4
- package/esm2022/lib/components/toast-container/toast-container.component.mjs +4 -4
- package/esm2022/lib/directives/disabled.directive.mjs +4 -4
- package/esm2022/lib/directives/ellipsis.directive.mjs +4 -4
- package/esm2022/lib/directives/loading.directive.mjs +4 -4
- package/esm2022/lib/directives/ngx-datatable-default.directive.mjs +4 -4
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +4 -4
- package/esm2022/lib/directives/visible.directive.mjs +4 -4
- package/esm2022/lib/handlers/document-dir.handler.mjs +4 -4
- package/esm2022/lib/handlers/error.handler.mjs +4 -4
- package/esm2022/lib/providers/index.mjs +2 -1
- package/esm2022/lib/providers/theme-shared-config.provider.mjs +117 -0
- package/esm2022/lib/services/abp-format-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/authentication-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/confirmation.service.mjs +4 -4
- package/esm2022/lib/services/create-error-component.service.mjs +4 -4
- package/esm2022/lib/services/nav-items.service.mjs +4 -4
- package/esm2022/lib/services/page-alert.service.mjs +4 -4
- package/esm2022/lib/services/router-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/tenant-resolve-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/toaster.service.mjs +4 -4
- package/esm2022/lib/services/unknown-status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/user-menu.service.mjs +4 -4
- package/esm2022/lib/theme-shared.module.mjs +18 -70
- package/esm2022/lib/tokens/index.mjs +2 -1
- package/esm2022/lib/utils/date-parser-formatter.mjs +4 -4
- package/esm2022/testing/lib/theme-shared-testing.module.mjs +5 -5
- 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 +384 -366
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/lib/components/modal/modal.component.d.ts +22 -32
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/ng-bootstrap-config.provider.d.ts +1 -1
- package/lib/providers/route.provider.d.ts +1 -1
- package/lib/providers/theme-shared-config.provider.d.ts +22 -0
- package/lib/theme-shared.module.d.ts +3 -0
- package/lib/tokens/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,50 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
2
|
import { NgbModal, NgbModalOptions, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
3
|
import { ConfirmationService } from '../../services/confirmation.service';
|
|
6
4
|
import { ButtonComponent } from '../button/button.component';
|
|
7
5
|
import { DismissableModal, ModalDismissMode, ModalRefService } from './modal-ref.service';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
10
8
|
export declare class ModalComponent implements OnInit, OnDestroy, DismissableModal {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
readonly init: EventEmitter<void>;
|
|
29
|
-
readonly appear: EventEmitter<void>;
|
|
30
|
-
readonly disappear: EventEmitter<void>;
|
|
31
|
-
_visible: boolean;
|
|
32
|
-
_busy: boolean;
|
|
9
|
+
protected readonly confirmationService: ConfirmationService;
|
|
10
|
+
protected readonly modal: NgbModal;
|
|
11
|
+
protected readonly modalRefService: ModalRefService;
|
|
12
|
+
protected readonly suppressUnsavedChangesWarningToken: boolean;
|
|
13
|
+
protected readonly destroyRef: DestroyRef;
|
|
14
|
+
visible: import("@angular/core").ModelSignal<boolean>;
|
|
15
|
+
busy: import("@angular/core").InputSignalWithTransform<boolean, boolean>;
|
|
16
|
+
options: import("@angular/core").InputSignal<NgbModalOptions>;
|
|
17
|
+
suppressUnsavedChangesWarning: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
modalContent: import("@angular/core").Signal<TemplateRef<any>>;
|
|
19
|
+
abpHeader: import("@angular/core").Signal<TemplateRef<any>>;
|
|
20
|
+
abpBody: import("@angular/core").Signal<TemplateRef<any>>;
|
|
21
|
+
abpFooter: import("@angular/core").Signal<TemplateRef<any>>;
|
|
22
|
+
abpSubmit: import("@angular/core").Signal<ButtonComponent>;
|
|
23
|
+
readonly init: import("@angular/core").OutputEmitterRef<void>;
|
|
24
|
+
readonly appear: import("@angular/core").OutputEmitterRef<void>;
|
|
25
|
+
readonly disappear: import("@angular/core").OutputEmitterRef<void>;
|
|
33
26
|
modalRef: NgbModalRef;
|
|
34
27
|
isConfirmationOpen: boolean;
|
|
35
|
-
destroy$: Subject<void>;
|
|
36
28
|
modalIdentifier: string;
|
|
37
|
-
private toggle$;
|
|
38
29
|
get modalWindowRef(): Element;
|
|
39
30
|
get isFormDirty(): boolean;
|
|
40
|
-
constructor(
|
|
31
|
+
constructor();
|
|
41
32
|
ngOnInit(): void;
|
|
42
33
|
dismiss(mode: ModalDismissMode): void;
|
|
43
|
-
|
|
44
|
-
private toggle;
|
|
34
|
+
protected toggle(value: boolean): void;
|
|
45
35
|
ngOnDestroy(): void;
|
|
46
36
|
close(): void;
|
|
47
37
|
listen(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent,
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "abp-modal", never, { "visible": { "alias": "visible"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "options": { "alias": "options"; "required": false; }; "suppressUnsavedChangesWarning": { "alias": "suppressUnsavedChangesWarning"; "required": false; }; }, { "
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "abp-modal", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "suppressUnsavedChangesWarning": { "alias": "suppressUnsavedChangesWarning"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "init": "init"; "appear": "appear"; "disappear": "disappear"; }, ["abpHeader", "abpBody", "abpFooter", "abpSubmit"], ["*"], false, never>;
|
|
50
40
|
}
|
package/lib/providers/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgbInputDatepickerConfig, NgbTypeaheadConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
2
2
|
export declare const NG_BOOTSTRAP_CONFIG_PROVIDERS: {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<readonly (() =>
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly (() => import("rxjs").Observable<unknown> | Promise<unknown> | void)[]>;
|
|
4
4
|
useFactory: typeof configureNgBootstrap;
|
|
5
5
|
deps: (typeof NgbInputDatepickerConfig | typeof NgbTypeaheadConfig)[];
|
|
6
6
|
multi: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RoutesService } from '@abp/ng.core';
|
|
2
2
|
export declare const THEME_SHARED_ROUTE_PROVIDERS: {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<readonly (() =>
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly (() => import("rxjs").Observable<unknown> | Promise<unknown> | void)[]>;
|
|
4
4
|
useFactory: typeof configureRoutes;
|
|
5
5
|
deps: (typeof RoutesService)[];
|
|
6
6
|
multi: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
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;
|
|
@@ -32,6 +32,9 @@ export declare class BaseThemeSharedModule {
|
|
|
32
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaseThemeSharedModule>;
|
|
33
33
|
}
|
|
34
34
|
export declare class ThemeSharedModule {
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated forRoot method is deprecated, use `provideAbpThemeShared` *function* for config settings.
|
|
37
|
+
*/
|
|
35
38
|
static forRoot({ httpErrorConfig, validation, confirmationIcons }?: RootParams): ModuleWithProviders<ThemeSharedModule>;
|
|
36
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSharedModule, never>;
|
|
37
40
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ThemeSharedModule, never, [typeof BaseThemeSharedModule], [typeof BaseThemeSharedModule]>;
|
package/lib/tokens/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.theme.shared",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0-rc.2",
|
|
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.
|
|
10
|
+
"@abp/ng.core": "~8.3.0-rc.2",
|
|
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",
|