angular-toolbox 1.4.0 → 1.4.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/layout/border-layout/border-layout.component.mjs +15 -11
- package/esm2022/lib/component/layout/border-layout/util/border-layout-renderer.mjs +48 -15
- package/esm2022/lib/component/layout/border-layout-container/border-layout-container.component.mjs +2 -2
- package/esm2022/lib/framework/index.mjs +2 -1
- package/esm2022/lib/framework/mock/documentation/component/atx-mock-description/atx-mock-description.component.mjs +27 -0
- package/esm2022/lib/framework/mock/documentation/component/atx-mock-documentation/atx-mock-documentation.component.mjs +77 -0
- package/esm2022/lib/framework/mock/documentation/component/atx-mock-full-description/atx-mock-full-description.component.mjs +27 -0
- package/esm2022/lib/framework/mock/documentation/component/atx-mock-methods/atx-mock-methods.component.mjs +71 -0
- package/esm2022/lib/framework/mock/documentation/component/atx-mock-param/atx-mock-param.component.mjs +27 -0
- package/esm2022/lib/framework/mock/documentation/index.mjs +2 -0
- package/esm2022/lib/framework/mock/documentation/model/business/full-description.type.mjs +9 -0
- package/esm2022/lib/framework/mock/documentation/model/business/method-doc-descriptor.type.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +1 -1
- package/esm2022/lib/model/business/mock/http/http-mock-config.mjs +1 -1
- package/esm2022/lib/model/business/mock/http/http-mock-endpoint-descriptor.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-endpoint.mjs +1 -1
- package/esm2022/lib/model/business/mock/http/http-mock-interceptor.mjs +1 -1
- package/esm2022/lib/model/business/mock/http/http-mock-method-descriptor.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-parameter-descriptor.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/index.mjs +4 -1
- package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +3 -3
- package/fesm2022/angular-toolbox.mjs +297 -28
- package/fesm2022/angular-toolbox.mjs.map +1 -1
- package/lib/component/layout/border-layout/border-layout.component.d.ts +1 -1
- package/lib/component/layout/border-layout/util/border-layout-renderer.d.ts +17 -1
- package/lib/framework/index.d.ts +1 -0
- package/lib/framework/mock/documentation/component/atx-mock-description/atx-mock-description.component.d.ts +14 -0
- package/lib/framework/mock/documentation/component/atx-mock-documentation/atx-mock-documentation.component.d.ts +43 -0
- package/lib/framework/mock/documentation/component/atx-mock-full-description/atx-mock-full-description.component.d.ts +15 -0
- package/lib/framework/mock/documentation/component/atx-mock-methods/atx-mock-methods.component.d.ts +29 -0
- package/lib/framework/mock/documentation/component/atx-mock-param/atx-mock-param.component.d.ts +15 -0
- package/lib/framework/mock/documentation/index.d.ts +1 -0
- package/lib/framework/mock/documentation/model/business/full-description.type.d.ts +21 -0
- package/lib/framework/mock/documentation/model/business/method-doc-descriptor.type.d.ts +22 -0
- package/lib/model/business/mock/http/http-method-mock.d.ts +5 -0
- package/lib/model/business/mock/http/http-mock-config.d.ts +4 -0
- package/lib/model/business/mock/http/http-mock-endpoint-descriptor.d.ts +21 -0
- package/lib/model/business/mock/http/http-mock-endpoint.d.ts +5 -0
- package/lib/model/business/mock/http/http-mock-interceptor.d.ts +4 -0
- package/lib/model/business/mock/http/http-mock-method-descriptor.d.ts +29 -0
- package/lib/model/business/mock/http/http-mock-parameter-descriptor.d.ts +20 -0
- package/lib/model/business/mock/http/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ export declare class BorderLayout extends IdentifiableComponent implements After
|
|
|
48
48
|
/**
|
|
49
49
|
* @private
|
|
50
50
|
*/
|
|
51
|
-
constructor(subscribeSvc: SubscriptionService);
|
|
51
|
+
constructor(subscribeSvc: SubscriptionService, document: Document);
|
|
52
52
|
/**
|
|
53
53
|
* @private
|
|
54
54
|
* For test purpose only.
|
|
@@ -16,6 +16,7 @@ import { BorderLayoutBoundsManager } from './border-layout-bounds-manager';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class BorderLayoutRenderer extends IdentifiableComponent implements Destroyable {
|
|
18
18
|
private subscribeSvc;
|
|
19
|
+
private document;
|
|
19
20
|
/**
|
|
20
21
|
* Emits events each time the user starts, or stops dragging handle.
|
|
21
22
|
*/
|
|
@@ -35,7 +36,15 @@ export declare class BorderLayoutRenderer extends IdentifiableComponent implemen
|
|
|
35
36
|
/**
|
|
36
37
|
* @private
|
|
37
38
|
*/
|
|
38
|
-
|
|
39
|
+
private storedStopHandler;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
*/
|
|
43
|
+
private storedMoveHandler;
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
constructor(subscribeSvc: SubscriptionService, document: Document);
|
|
39
48
|
/**
|
|
40
49
|
* Add the list `BorderLayoutContainer` objects associated with the main container to this controller.
|
|
41
50
|
*
|
|
@@ -83,5 +92,12 @@ export declare class BorderLayoutRenderer extends IdentifiableComponent implemen
|
|
|
83
92
|
* @private
|
|
84
93
|
*/
|
|
85
94
|
private render;
|
|
95
|
+
/**
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
86
98
|
private checkLytContainer;
|
|
99
|
+
/**
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
private deleteStoredHandlers;
|
|
87
103
|
}
|
package/lib/framework/index.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* A conmponent that renders mock config description ppoperties.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AtxMockDescriptionComponent {
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* The description to render. Can contains HTML tags.
|
|
10
|
+
*/
|
|
11
|
+
description: string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMockDescriptionComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMockDescriptionComponent, "atx-mock-description", never, { "description": { "alias": "description"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ElementRef } from '@angular/core';
|
|
9
|
+
import { HttpMockConfig } from '../../../../../model';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* An easy-to-use component that displays the documentation of a `HttpMockConfig` object.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AtxMockDocumentation {
|
|
15
|
+
private elmRef;
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
protected configApi: HttpMockConfig;
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
protected expanded: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the title of the current display.
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets the `HttpMockConfig` object for which to display documentation.
|
|
30
|
+
*/
|
|
31
|
+
set config(value: HttpMockConfig);
|
|
32
|
+
get config(): HttpMockConfig;
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
constructor(elmRef: ElementRef);
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
protected toggleExpandState(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMockDocumentation, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMockDocumentation, "atx-mock-documentation", never, { "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FullDescription } from '../../model/business/full-description.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* A convenient component that displays the description and the origin of a mock config section.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AtxMockFullDescriptionComponent {
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
* The config object taht contains the description to display.
|
|
11
|
+
*/
|
|
12
|
+
config: FullDescription;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMockFullDescriptionComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMockFullDescriptionComponent, "atx-mock-full-description", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
package/lib/framework/mock/documentation/component/atx-mock-methods/atx-mock-methods.component.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpMockEndpoint } from '../../../../../model';
|
|
2
|
+
import { MethodDocDescriptor } from '../../model/business/method-doc-descriptor.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* A convenient component that allows to display documentation for HTTP methods of an endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AtxMockMethodsComponent {
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
protected methods: MethodDocDescriptor[];
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
private _endpoint;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* The endpoint for which to show HTTP methods documentation.
|
|
20
|
+
*/
|
|
21
|
+
set endpoint(value: HttpMockEndpoint);
|
|
22
|
+
get endpoint(): HttpMockEndpoint;
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
protected initMethodList(endpoint: HttpMockEndpoint): MethodDocDescriptor[];
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMockMethodsComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMockMethodsComponent, "atx-mock-methods", never, { "endpoint": { "alias": "endpoint"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
package/lib/framework/mock/documentation/component/atx-mock-param/atx-mock-param.component.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpParameterDescriptor } from '../../../../../model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Displays documentation for HTTP fragment parameters, or query parameters.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AtxMockParamComponent {
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* The list of `HttpParameterDescriptor` object that contains information to display.
|
|
11
|
+
*/
|
|
12
|
+
params: HttpParameterDescriptor[];
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtxMockParamComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtxMockParamComponent, "atx-mock-param", never, { "params": { "alias": "params"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component/atx-mock-documentation/atx-mock-documentation.component';
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
* @private
|
|
10
|
+
* Used internally to manage the full description of a mock config object.
|
|
11
|
+
*/
|
|
12
|
+
export type FullDescription = {
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
origin?: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { HttpMockMethodDescriptor } from '../../../../../model';
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
* Used internally to manage the display of HTTP method descriptor objects.
|
|
12
|
+
*/
|
|
13
|
+
export type MethodDocDescriptor = {
|
|
14
|
+
/**
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
method: string;
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
descriptor: HttpMockMethodDescriptor | undefined;
|
|
22
|
+
};
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { HttpRequest } from "@angular/common/http";
|
|
9
9
|
import { HttpResponseMock } from "./http-response-mock";
|
|
10
10
|
import { HttpMockParameters } from "../../../../framework";
|
|
11
|
+
import { HttpMockMethodDescriptor } from "./http-mock-method-descriptor";
|
|
11
12
|
/**
|
|
12
13
|
* The `HttpMethodMock` interface defines the behavior of actions invoked each time an Angular
|
|
13
14
|
* `HttpClient` instance sends requests to a specific API endpoint.
|
|
@@ -27,4 +28,8 @@ export interface HttpMethodMock {
|
|
|
27
28
|
* @returns A user-defined `HttpResponse` mock object.
|
|
28
29
|
*/
|
|
29
30
|
data: (request: HttpRequest<any>, parameters?: HttpMockParameters) => HttpResponseMock;
|
|
31
|
+
/**
|
|
32
|
+
* The API descriptor of the associated with this HTTP method.
|
|
33
|
+
*/
|
|
34
|
+
descriptor?: HttpMockMethodDescriptor;
|
|
30
35
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { HttpParameterDescriptor } from "./http-mock-parameter-descriptor";
|
|
9
|
+
/**
|
|
10
|
+
* Provides the API to create documentation for a specific endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export interface HttpMockEndpointDescriptor {
|
|
13
|
+
/**
|
|
14
|
+
* The description of the endpoint associated with this descriptor.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The description all parameters of the endpoint associated with this descriptor.
|
|
19
|
+
*/
|
|
20
|
+
params?: HttpParameterDescriptor[];
|
|
21
|
+
}
|
|
@@ -6,10 +6,15 @@
|
|
|
6
6
|
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
7
|
*/
|
|
8
8
|
import { HttpMethodMock } from "./http-method-mock";
|
|
9
|
+
import { HttpMockEndpointDescriptor } from "./http-mock-endpoint-descriptor";
|
|
9
10
|
/**
|
|
10
11
|
* Provides the API to define mocking strategies for a specific endpoint.
|
|
11
12
|
*/
|
|
12
13
|
export interface HttpMockEndpoint {
|
|
14
|
+
/**
|
|
15
|
+
* The API descriptor for this endpoint.
|
|
16
|
+
*/
|
|
17
|
+
descriptor?: HttpMockEndpointDescriptor;
|
|
13
18
|
/**
|
|
14
19
|
* The route part of the endpoint to mock.
|
|
15
20
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { HttpParameterDescriptor } from "./http-mock-parameter-descriptor";
|
|
9
|
+
/**
|
|
10
|
+
* Provides the API to create documentation for a specific HTTP method.
|
|
11
|
+
*/
|
|
12
|
+
export interface HttpMockMethodDescriptor {
|
|
13
|
+
/**
|
|
14
|
+
* The description of the method associated with this descriptor.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The payload description for the method associated with this descriptor.
|
|
19
|
+
*/
|
|
20
|
+
payload?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The body description for the method associated with this descriptor.
|
|
23
|
+
*/
|
|
24
|
+
body?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The list of query string parameters for the method associated with this descriptor.
|
|
27
|
+
*/
|
|
28
|
+
queryParams?: HttpParameterDescriptor[];
|
|
29
|
+
}
|
|
@@ -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
|
+
* Provides the API to create documentation for a specific HTTP parameter.
|
|
10
|
+
*/
|
|
11
|
+
export interface HttpParameterDescriptor {
|
|
12
|
+
/**
|
|
13
|
+
* The description of the HTTP parameter associated with this descriptor.
|
|
14
|
+
*/
|
|
15
|
+
description: string;
|
|
16
|
+
/**
|
|
17
|
+
* The referrence to the HTTP parameter associated with this descriptor.
|
|
18
|
+
*/
|
|
19
|
+
ref: string;
|
|
20
|
+
}
|
|
@@ -2,6 +2,9 @@ export * from './http-response-mock';
|
|
|
2
2
|
export * from './http-method-mock';
|
|
3
3
|
export * from './http-mock-config';
|
|
4
4
|
export * from './http-mock-endpoint';
|
|
5
|
+
export * from './http-mock-endpoint-descriptor';
|
|
6
|
+
export * from './http-mock-method-descriptor';
|
|
7
|
+
export * from './http-mock-parameter-descriptor';
|
|
5
8
|
export * from './http-mock-interceptor';
|
|
6
9
|
export * from './http-mock-error';
|
|
7
10
|
export * from './http-mock-request-metadata';
|