angular-toolbox 1.3.0 → 1.3.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/README.md +1 -1
- package/esm2022/lib/component/dropdown/dropdown.component.mjs +111 -0
- package/esm2022/lib/component/index.mjs +2 -1
- package/esm2022/lib/component/layout/border-layout/border-layout.component.mjs +2 -1
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.mjs +1 -1
- package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.mjs +1 -1
- package/esm2022/lib/model/business/ui/dropdown/dropdown-event-type.enum.mjs +22 -0
- package/esm2022/lib/model/business/ui/dropdown/dropdown-position.mjs +9 -0
- package/esm2022/lib/model/business/ui/dropdown/dropdown-state.mjs +9 -0
- package/esm2022/lib/model/business/ui/dropdown/dropdown.event.mjs +27 -0
- package/esm2022/lib/model/business/ui/dropdown/index.mjs +5 -0
- package/esm2022/lib/model/business/ui/index.mjs +2 -1
- package/esm2022/lib/model/business/ui/layout/layout-drag.event.mjs +1 -1
- package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
- package/fesm2022/angular-toolbox.mjs +177 -4
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/lib/component/dropdown/dropdown.component.d.ts +82 -0
- package/lib/component/index.d.ts +1 -0
- package/lib/component/layout/border-layout/border-layout.component.d.ts +1 -0
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +1 -1
- package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +1 -1
- package/lib/model/business/ui/dropdown/dropdown-event-type.enum.d.ts +20 -0
- package/lib/model/business/ui/dropdown/dropdown-position.d.ts +15 -0
- package/lib/model/business/ui/dropdown/dropdown-state.d.ts +11 -0
- package/lib/model/business/ui/dropdown/dropdown.event.d.ts +40 -0
- package/lib/model/business/ui/dropdown/index.d.ts +4 -0
- package/lib/model/business/ui/index.d.ts +1 -0
- package/lib/model/business/ui/layout/layout-drag.event.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
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 { EventEmitter } from '@angular/core';
|
|
9
|
+
import { IdentifiableComponent } from '../../core';
|
|
10
|
+
import { DropdownEvent, DropdownHorizontalPosition, DropdownVerticalPosition } from '../../model';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* The ATX dropdown component allows to create popup containers that are displayed by clicking on a button.
|
|
14
|
+
* The content of the container is defined by Developer.
|
|
15
|
+
* This component is part of the LAF-less API.
|
|
16
|
+
*/
|
|
17
|
+
export declare class DropdownComponent extends IdentifiableComponent {
|
|
18
|
+
/**
|
|
19
|
+
* An event fired on the dropdown component just after it is shown or hidden.
|
|
20
|
+
*/
|
|
21
|
+
readonly toggle: EventEmitter<DropdownEvent>;
|
|
22
|
+
/**
|
|
23
|
+
* An event fired on the dropdown component just before it is shown or hidden.
|
|
24
|
+
*/
|
|
25
|
+
readonly beforeToggle: EventEmitter<DropdownEvent>;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the dropdown button CSS class.
|
|
28
|
+
*/
|
|
29
|
+
buttonClass: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the dropdown conpoment CSS class.
|
|
32
|
+
*/
|
|
33
|
+
containerClass: string;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the vertical position of the content container.
|
|
36
|
+
*/
|
|
37
|
+
vPos: DropdownVerticalPosition;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the horizontal position of the content container.
|
|
40
|
+
*/
|
|
41
|
+
hPos: DropdownHorizontalPosition;
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
protected id: string;
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
private _popover;
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
constructor();
|
|
54
|
+
/**
|
|
55
|
+
* Hides the dropdown container.
|
|
56
|
+
*/
|
|
57
|
+
hideContent(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Displays the dropdown container.
|
|
60
|
+
*/
|
|
61
|
+
showContent(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the display state of the dropdown.
|
|
64
|
+
*
|
|
65
|
+
* @returns Returns `true` whether the dropdown is opened; `false` otherwise.
|
|
66
|
+
*/
|
|
67
|
+
isOpened(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
protected onBeforeToggle(event: Event): void;
|
|
72
|
+
/**
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
protected onToggle(event: Event): void;
|
|
76
|
+
/**
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
private buildEvent;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "atx-dropdown", never, { "buttonClass": { "alias": "buttonClass"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "vPos": { "alias": "vPos"; "required": false; }; "hPos": { "alias": "hPos"; "required": false; }; }, { "toggle": "toggle"; "beforeToggle": "beforeToggle"; }, never, ["*", "[content]"], true, never>;
|
|
82
|
+
}
|
package/lib/component/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
/**
|
|
14
14
|
* A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
|
|
15
15
|
* Each region is defined by a `BorderLayoutContainer` instance, and is identified by a corresponding constant: `NORTH`, `SOUTH`, `EAST`, `WEST`, and `CENTER`.
|
|
16
|
+
* This component is part of the LAF-less API.
|
|
16
17
|
*/
|
|
17
18
|
export declare class BorderLayout extends IdentifiableComponent implements AfterViewInit, OnDestroy {
|
|
18
19
|
private subscribeSvc;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { OnDestroy } from '@angular/core';
|
|
9
9
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
10
10
|
import { AtxLogRendererBase } from '../../abstract/log-renderer-base';
|
|
11
|
-
import { Log } from '
|
|
11
|
+
import { Log } from '../../../../../../model';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/**
|
|
14
14
|
* @private
|
|
@@ -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 found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Defines the type of a `DropdownEvent` instance.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum DropdownEventType {
|
|
12
|
+
/**
|
|
13
|
+
* Defines an event fired on a dropdown component just after it is shown or hidden.
|
|
14
|
+
*/
|
|
15
|
+
TOGGLE = "toggle",
|
|
16
|
+
/**
|
|
17
|
+
* Defines an event fired on a dropdown component just before it is shown or hidden.
|
|
18
|
+
*/
|
|
19
|
+
BEFORE_TOGGLE = "beforetoggle"
|
|
20
|
+
}
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Defines the content vertical position of a dropdown component.
|
|
10
|
+
*/
|
|
11
|
+
export type DropdownVerticalPosition = "start" | "top" | "middle" | "bottom" | "end";
|
|
12
|
+
/**
|
|
13
|
+
* Defines the content horizontal position of a dropdown component.
|
|
14
|
+
*/
|
|
15
|
+
export type DropdownHorizontalPosition = "start" | "left" | "center" | "right" | "end";
|
|
@@ -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
|
+
* Represents the state of a dropdown container.
|
|
10
|
+
*/
|
|
11
|
+
export type DropdownState = "open" | "closed";
|
|
@@ -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 found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { DropdownComponent } from "../../../../component";
|
|
9
|
+
import { DropdownEventType } from "./dropdown-event-type.enum";
|
|
10
|
+
import { DropdownState } from "./dropdown-state";
|
|
11
|
+
/**
|
|
12
|
+
* The `DropdownEvent` class is an event that represents an interaction with a dropdown container.
|
|
13
|
+
*/
|
|
14
|
+
export declare class DropdownEvent {
|
|
15
|
+
/**
|
|
16
|
+
* The reference to the container that triggered this event.
|
|
17
|
+
*/
|
|
18
|
+
readonly target: DropdownComponent;
|
|
19
|
+
/**
|
|
20
|
+
* The type of this event; a `DropdownEventType` constant.
|
|
21
|
+
*/
|
|
22
|
+
readonly type: DropdownEventType;
|
|
23
|
+
/**
|
|
24
|
+
* The state the dropdown container is transitioning to.
|
|
25
|
+
*/
|
|
26
|
+
readonly newState: DropdownState;
|
|
27
|
+
/**
|
|
28
|
+
* The state the dropdown container is transitioning from.
|
|
29
|
+
*/
|
|
30
|
+
readonly oldState: DropdownState;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new `DropdownEvent` instance.
|
|
33
|
+
*
|
|
34
|
+
* @param target The dropdown container that triggered this event.
|
|
35
|
+
* @param type The type of this event.
|
|
36
|
+
* @param newState The state the dropdown container is transitioning to.
|
|
37
|
+
* @param oldState The state the dropdown container is transitioning from.
|
|
38
|
+
*/
|
|
39
|
+
constructor(target: DropdownComponent, type: DropdownEventType, newState: DropdownState, oldState: DropdownState);
|
|
40
|
+
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
6
|
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { BorderLayoutContainer, BorderLayout } from "../../../../component";
|
|
9
|
+
import { LayoutDragEventType } from "../../../../model";
|
|
9
10
|
/**
|
|
10
11
|
* The `LayoutDragEvent` class is an event that represents a drag interaction with a `BorderLayoutContainer`.
|
|
11
12
|
*/
|