angular-toolbox 1.4.5 → 1.4.6
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/README.md +1 -1
- package/esm2022/lib/component/layout/border-layout/util/border-layout-renderer.mjs +1 -1
- package/esm2022/lib/component/layout/border-layout-container/border-layout-container.component.mjs +1 -1
- package/esm2022/lib/framework/dialog/dialog-backdrop-type.enum.mjs +23 -0
- package/esm2022/lib/framework/dialog/dialog-backdrop.type.mjs +9 -0
- package/esm2022/lib/framework/dialog/dialog-default-config.mjs +15 -0
- package/esm2022/lib/framework/dialog/dialog-outlet-event-type.mjs +9 -0
- package/esm2022/lib/framework/dialog/dialog-outlet.event.mjs +33 -0
- package/esm2022/lib/framework/dialog/dialog-service.error.mjs +27 -0
- package/esm2022/lib/framework/dialog/dialog-service.mjs +67 -0
- package/esm2022/lib/framework/dialog/dialog.config.mjs +9 -0
- package/esm2022/lib/framework/dialog/dialog.outlet.mjs +94 -0
- package/esm2022/lib/framework/dialog/index.mjs +16 -0
- package/esm2022/lib/framework/index.mjs +2 -1
- package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
- package/fesm2022/angular-toolbox.mjs +296 -16
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/lib/framework/dialog/dialog-backdrop-type.enum.d.ts +20 -0
- package/lib/framework/dialog/dialog-backdrop.type.d.ts +11 -0
- package/lib/framework/dialog/dialog-default-config.d.ts +12 -0
- package/lib/framework/dialog/dialog-outlet-event-type.d.ts +11 -0
- package/lib/framework/dialog/dialog-outlet.event.d.ts +40 -0
- package/lib/framework/dialog/dialog-service.d.ts +47 -0
- package/lib/framework/dialog/dialog-service.error.d.ts +19 -0
- package/lib/framework/dialog/dialog.config.d.ts +18 -0
- package/lib/framework/dialog/dialog.outlet.d.ts +59 -0
- package/lib/framework/dialog/index.d.ts +15 -0
- package/lib/framework/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Defines the possible values used to assign properties of type of `DialogBackdrop`.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum DialogBackdropType {
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that the dialog element is of type of "static".
|
|
14
|
+
*/
|
|
15
|
+
STATIC = "static",
|
|
16
|
+
/**
|
|
17
|
+
* Indicates that the dialog element is of type of "modal".
|
|
18
|
+
*/
|
|
19
|
+
MODAL = "modal"
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Indicates the type of a dialog backdrop element.
|
|
10
|
+
*/
|
|
11
|
+
export type DialogBackdrop = "modal" | "static";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { DialogConfig } from './dialog.config';
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_CONFIG: DialogConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the event type of `DialogOutletEvent` instances.
|
|
10
|
+
*/
|
|
11
|
+
export type DialogOutletEventType = "show" | "hide";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { DialogOutletEventType } from "./dialog-outlet-event-type";
|
|
9
|
+
import { DialogConfig } from "./dialog.config";
|
|
10
|
+
/**
|
|
11
|
+
* Event that indicates the state changes of components managed by the `DialogService` service singleton.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DialogOutletEvent {
|
|
14
|
+
/**
|
|
15
|
+
* The type of event dispatched each time the dialog element is displayed.
|
|
16
|
+
*/
|
|
17
|
+
static readonly SHOW: DialogOutletEventType;
|
|
18
|
+
/**
|
|
19
|
+
* The type of event dispatched each time the dialog element is removed.
|
|
20
|
+
*/
|
|
21
|
+
static readonly HIDE: DialogOutletEventType;
|
|
22
|
+
/**
|
|
23
|
+
* A `DialogOutletEventType` value that indicates the state of the dialog element.
|
|
24
|
+
*/
|
|
25
|
+
readonly state: DialogOutletEventType;
|
|
26
|
+
/**
|
|
27
|
+
* The dialog element config associated with an event of type of `"show"`.
|
|
28
|
+
* `config` is set to `null` when the event is of type of `"hide"`.
|
|
29
|
+
*/
|
|
30
|
+
readonly config: DialogConfig | null;
|
|
31
|
+
/**
|
|
32
|
+
* @private
|
|
33
|
+
*
|
|
34
|
+
* Creates a new `DialogOutletEvent` instance.
|
|
35
|
+
*
|
|
36
|
+
* @param state The state of the dialog element.
|
|
37
|
+
* @param config The dialog element config associated with this event.
|
|
38
|
+
*/
|
|
39
|
+
constructor(state: DialogOutletEventType, config?: DialogConfig | null);
|
|
40
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { ComponentRef, EventEmitter, ViewContainerRef } from "@angular/core";
|
|
9
|
+
import { DialogOutletEvent } from "./dialog-outlet.event";
|
|
10
|
+
import { DialogConfig } from "./dialog.config";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* The `DialogService` class manages injection of customs component into the
|
|
14
|
+
* HTML dialog element created by the ATX framework.
|
|
15
|
+
*/
|
|
16
|
+
export declare class DialogService {
|
|
17
|
+
/**
|
|
18
|
+
* Dispatches an event that indicates the state of the dialog element when a custom
|
|
19
|
+
* component is added to, or remove from it.
|
|
20
|
+
*/
|
|
21
|
+
readonly dialogStateChange: EventEmitter<DialogOutletEvent>;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
protected viewContainerRef: ViewContainerRef;
|
|
26
|
+
/**
|
|
27
|
+
* Creates an instance of the `compRef` class, adds this instance to the HTML dialog element
|
|
28
|
+
* and displays the dialog element in front of all other components in the application.
|
|
29
|
+
*
|
|
30
|
+
* @param compRef The class that represents the component to display as a popup element.
|
|
31
|
+
* @param config The dialog element config associated with the new component instance to display.
|
|
32
|
+
*
|
|
33
|
+
* @returns The new `ComponentRef` which contains the component instance and the host view.
|
|
34
|
+
*/
|
|
35
|
+
show<T>(compRef: any, config?: DialogConfig | null): ComponentRef<T>;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates to the ATX framework to remove component instances previously created with
|
|
38
|
+
* the `show()` method.
|
|
39
|
+
*/
|
|
40
|
+
hide(): void;
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
__init__(viewContainerRef: ViewContainerRef): boolean;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The `DialogServiceError` class represents errors thrown by the ATX framework
|
|
10
|
+
* when a dialog error occurs.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DialogServiceError extends Error {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new `DialogServiceError` instance.
|
|
15
|
+
*
|
|
16
|
+
* @param message The `message` data property is a human-readable description of this `DialogServiceError` instance.
|
|
17
|
+
*/
|
|
18
|
+
constructor(message: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { DialogBackdropType } from "./dialog-backdrop-type.enum";
|
|
9
|
+
import { DialogBackdrop } from "./dialog-backdrop.type";
|
|
10
|
+
/**
|
|
11
|
+
* Defines the configuration associated with a custom component displayed through the Dialog API.
|
|
12
|
+
*/
|
|
13
|
+
export interface DialogConfig {
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the dialog is modal, or static.
|
|
16
|
+
*/
|
|
17
|
+
backdrop?: DialogBackdrop | DialogBackdropType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { OnInit } from '@angular/core';
|
|
9
|
+
import { DialogService } from './dialog-service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* Acts as a placeholder that the ATX framework dynamically fills based on the component specified
|
|
13
|
+
* by the dialog service `show()` method.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DialogOutlet implements OnInit {
|
|
16
|
+
private dialogSvc;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
private _dialog;
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
private renderer;
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
private _config;
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
constructor(dialogSvc: DialogService);
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
protected mouseupHandler(event: MouseEvent): void;
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
protected onClose(event: Event): void;
|
|
45
|
+
/**
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
private stateChange;
|
|
49
|
+
/**
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
private show;
|
|
53
|
+
/**
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
private hide;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogOutlet, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogOutlet, "atx-dialog-outlet", never, {}, {}, never, never, true, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
export * from "./dialog-backdrop-type.enum";
|
|
9
|
+
export * from "./dialog-backdrop.type";
|
|
10
|
+
export * from "./dialog-outlet-event-type";
|
|
11
|
+
export * from "./dialog-outlet.event";
|
|
12
|
+
export * from "./dialog.config";
|
|
13
|
+
export * from "./dialog.outlet";
|
|
14
|
+
export * from "./dialog-service";
|
|
15
|
+
export * from "./dialog-service.error";
|
package/lib/framework/index.d.ts
CHANGED