angular-toolbox 0.12.2 → 1.0.0

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.
Files changed (148) hide show
  1. package/README.md +1 -1
  2. package/esm2022/lib/component/angular-toolbox-logo/angular-toolbox-logo.component.mjs +3 -3
  3. package/esm2022/lib/framework/logging/connector/console-log-connector.mjs +2 -2
  4. package/esm2022/lib/framework/logging/impl/log-impl.mjs +4 -1
  5. package/esm2022/lib/framework/logging/util/log.builder.mjs +2 -2
  6. package/esm2022/lib/framework/logging/util/log.util.mjs +3 -3
  7. package/esm2022/lib/framework/mock/http-monitoring-console/component/abstract/log-renderer-base.mjs +34 -0
  8. package/esm2022/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.mjs +16 -17
  9. package/esm2022/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.mjs +25 -15
  10. package/esm2022/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.mjs +41 -119
  11. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.mjs +38 -13
  12. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.mjs +15 -4
  13. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.mjs +12 -4
  14. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.mjs +36 -16
  15. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/request-info-renderer/request-info-renderer.component.mjs +43 -0
  16. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/request-list-renderer/request-list-renderer.component.mjs +116 -0
  17. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.mjs +63 -24
  18. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.mjs +72 -28
  19. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/spinner/spinner.component.mjs +22 -0
  20. package/esm2022/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.mjs +53 -27
  21. package/esm2022/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.mjs +45 -21
  22. package/esm2022/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.mjs +15 -8
  23. package/esm2022/lib/framework/mock/http-monitoring-console/index.mjs +1 -1
  24. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.mjs +27 -1
  25. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.mjs +1 -1
  26. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.mjs +1 -1
  27. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.mjs +5 -1
  28. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/atx-timeline-data.mjs +9 -0
  29. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.mjs +1 -1
  30. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.mjs +1 -1
  31. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.mjs +1 -1
  32. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.mjs +1 -1
  33. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.mjs +1 -1
  34. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.mjs +1 -1
  35. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.mjs +1 -1
  36. package/esm2022/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.mjs +1 -1
  37. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.mjs +71 -43
  38. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.controller.mjs +96 -0
  39. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.state.mjs +126 -0
  40. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/atx-user-action.service.mjs +40 -0
  41. package/esm2022/lib/framework/mock/http-monitoring-console/util/console-body-type.mjs +33 -1
  42. package/esm2022/lib/framework/mock/http-monitoring-console/util/console-type-class.mjs +29 -1
  43. package/esm2022/lib/framework/mock/http-monitoring-console/util/data.util.mjs +21 -1
  44. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/body-converter.mjs +40 -0
  45. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/body-serializer.mjs +58 -0
  46. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/form-data-serializer.mjs +33 -0
  47. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/hmfl-builder.mjs +27 -0
  48. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/http-request-converter.mjs +62 -0
  49. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/http-response-converter.mjs +50 -0
  50. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/log-converter.mjs +43 -0
  51. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/log-headers-converter.mjs +53 -0
  52. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/log-message.util.mjs +30 -0
  53. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/log-metadata-converter.mjs +45 -0
  54. package/esm2022/lib/framework/mock/http-monitoring-console/util/io/request-metadata-converter.mjs +47 -0
  55. package/esm2022/lib/framework/mock/http-monitoring-console/util/size.util.mjs +24 -2
  56. package/esm2022/lib/framework/mock/http-monitoring-console/util/timeline.util.mjs +28 -0
  57. package/esm2022/lib/framework/mock/http-monitoring-console/util/url.util.mjs +26 -1
  58. package/esm2022/lib/model/business/logging/log-level.enum.mjs +1 -2
  59. package/esm2022/lib/model/business/logging/logger.mjs +1 -1
  60. package/esm2022/lib/model/business/logging/transactional-logger.mjs +1 -1
  61. package/esm2022/lib/model/business/mock/http/popup/atx-http-mock-console-popup.mjs +9 -0
  62. package/esm2022/lib/model/service/mock/http/logging/atx-http-mock-console.service.mjs +94 -0
  63. package/esm2022/lib/model/service/mock/http/logging/http-mock-logging-service.mjs +11 -4
  64. package/esm2022/lib/model/service/mock/http/logging/index.mjs +2 -1
  65. package/esm2022/lib/model/service/ui/app-bridge.service.mjs +1 -1
  66. package/esm2022/lib/model/service/version/angular-toolbox-version.service.mjs +5 -6
  67. package/fesm2022/angular-toolbox.mjs +3027 -1945
  68. package/fesm2022/angular-toolbox.mjs.map +1 -1
  69. package/lib/framework/logging/connector/console-log-connector.d.ts +1 -1
  70. package/lib/framework/logging/impl/log-impl.d.ts +3 -0
  71. package/lib/framework/logging/util/log.builder.d.ts +1 -1
  72. package/lib/framework/logging/util/log.util.d.ts +2 -2
  73. package/lib/framework/mock/http-monitoring-console/component/abstract/log-renderer-base.d.ts +28 -0
  74. package/lib/framework/mock/http-monitoring-console/component/console-footer/console-footer.component.d.ts +11 -4
  75. package/lib/framework/mock/http-monitoring-console/component/console-menu/console-menu.component.d.ts +18 -16
  76. package/lib/framework/mock/http-monitoring-console/component/http-monitoring-console/http-monitoring-console.component.d.ts +16 -37
  77. package/lib/framework/mock/http-monitoring-console/component/renderer/icon-renderer/icon-renderer.component.d.ts +20 -4
  78. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer/json-viewer.component.d.ts +11 -0
  79. package/lib/framework/mock/http-monitoring-console/component/renderer/json-viewer-panel/json-viewer-panel.component.d.ts +8 -0
  80. package/lib/framework/mock/http-monitoring-console/component/renderer/payload-renderer/payload-renderer.component.d.ts +18 -11
  81. package/lib/framework/mock/http-monitoring-console/component/renderer/request-info-renderer/request-info-renderer.component.d.ts +25 -0
  82. package/lib/framework/mock/http-monitoring-console/component/renderer/request-list-renderer/request-list-renderer.component.d.ts +57 -0
  83. package/lib/framework/mock/http-monitoring-console/component/renderer/response-body-renderer/response-body-renderer.component.d.ts +27 -12
  84. package/lib/framework/mock/http-monitoring-console/component/renderer/response-preview-renderer/response-preview-renderer.component.d.ts +41 -7
  85. package/lib/framework/mock/http-monitoring-console/component/renderer/spinner/spinner.component.d.ts +9 -0
  86. package/lib/framework/mock/http-monitoring-console/component/renderer/timing-renderer/timing-renderer.component.d.ts +29 -3
  87. package/lib/framework/mock/http-monitoring-console/component/request-details/request-details.component.d.ts +36 -12
  88. package/lib/framework/mock/http-monitoring-console/connector/http-monitoring-console-log-connector.d.ts +10 -5
  89. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action-type.d.ts +27 -1
  90. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-action.d.ts +12 -0
  91. package/lib/framework/mock/http-monitoring-console/model/business/atx-console-json.d.ts +20 -0
  92. package/lib/framework/mock/http-monitoring-console/model/business/atx-is-imported-log.d.ts +4 -0
  93. package/lib/framework/mock/http-monitoring-console/model/business/atx-timeline-data.d.ts +21 -0
  94. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-body-dto.d.ts +14 -1
  95. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-header-dto.d.ts +12 -0
  96. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log-metadata.dto.d.ts +14 -1
  97. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-log.dto.d.ts +7 -0
  98. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request-metadata.dto.ts.d.ts +6 -0
  99. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-request.dto.d.ts +38 -1
  100. package/lib/framework/mock/http-monitoring-console/model/business/io/atx-http-response.dto.d.ts +26 -1
  101. package/lib/framework/mock/http-monitoring-console/model/business/io/hmfl.d.ts +12 -0
  102. package/lib/framework/mock/http-monitoring-console/model/service/atx-log-io.service.d.ts +24 -2
  103. package/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.controller.d.ts +55 -0
  104. package/lib/framework/mock/http-monitoring-console/model/service/atx-monitoring-console.state.d.ts +75 -0
  105. package/lib/framework/mock/http-monitoring-console/model/service/atx-user-action.service.d.ts +32 -0
  106. package/lib/framework/mock/http-monitoring-console/util/console-body-type.d.ts +32 -0
  107. package/lib/framework/mock/http-monitoring-console/util/console-type-class.d.ts +28 -0
  108. package/lib/framework/mock/http-monitoring-console/util/data.util.d.ts +20 -0
  109. package/lib/framework/mock/http-monitoring-console/util/io/body-converter.d.ts +30 -0
  110. package/lib/framework/mock/http-monitoring-console/util/io/body-serializer.d.ts +32 -0
  111. package/lib/framework/mock/http-monitoring-console/util/io/form-data-serializer.d.ts +21 -0
  112. package/lib/framework/mock/http-monitoring-console/util/io/hmfl-builder.d.ts +23 -0
  113. package/lib/framework/mock/http-monitoring-console/util/io/http-request-converter.d.ts +31 -0
  114. package/lib/framework/mock/http-monitoring-console/util/io/http-response-converter.d.ts +31 -0
  115. package/lib/framework/mock/http-monitoring-console/util/io/log-converter.d.ts +31 -0
  116. package/lib/framework/mock/http-monitoring-console/util/io/log-headers-converter.d.ts +31 -0
  117. package/lib/framework/mock/http-monitoring-console/util/io/log-message.util.d.ts +23 -0
  118. package/lib/framework/mock/http-monitoring-console/util/io/log-metadata-converter.d.ts +31 -0
  119. package/lib/framework/mock/http-monitoring-console/util/io/request-metadata-converter.d.ts +31 -0
  120. package/lib/framework/mock/http-monitoring-console/util/size.util.d.ts +22 -0
  121. package/lib/framework/mock/http-monitoring-console/util/timeline.util.d.ts +23 -0
  122. package/lib/framework/mock/http-monitoring-console/util/url.util.d.ts +25 -0
  123. package/lib/model/business/logging/log-level.enum.d.ts +0 -1
  124. package/lib/model/business/logging/logger.d.ts +5 -5
  125. package/lib/model/business/logging/transactional-logger.d.ts +1 -1
  126. package/lib/model/business/mock/http/popup/atx-http-mock-console-popup.d.ts +23 -0
  127. package/lib/model/service/mock/http/logging/atx-http-mock-console.service.d.ts +53 -0
  128. package/lib/model/service/mock/http/logging/http-mock-logging-service.d.ts +6 -1
  129. package/lib/model/service/mock/http/logging/index.d.ts +1 -0
  130. package/package.json +1 -1
  131. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.mjs +0 -22
  132. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.mjs +0 -47
  133. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.mjs +0 -44
  134. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.mjs +0 -32
  135. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.mjs +0 -31
  136. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.mjs +0 -35
  137. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.mjs +0 -19
  138. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.mjs +0 -27
  139. package/esm2022/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.mjs +0 -29
  140. package/lib/framework/mock/http-monitoring-console/model/service/io/body-converter.d.ts +0 -12
  141. package/lib/framework/mock/http-monitoring-console/model/service/io/body-serializer.d.ts +0 -13
  142. package/lib/framework/mock/http-monitoring-console/model/service/io/http-request-converter.d.ts +0 -13
  143. package/lib/framework/mock/http-monitoring-console/model/service/io/http-response-converter.d.ts +0 -13
  144. package/lib/framework/mock/http-monitoring-console/model/service/io/log-converter.d.ts +0 -13
  145. package/lib/framework/mock/http-monitoring-console/model/service/io/log-headers-converter.d.ts +0 -13
  146. package/lib/framework/mock/http-monitoring-console/model/service/io/log-message.util.d.ts +0 -12
  147. package/lib/framework/mock/http-monitoring-console/model/service/io/log-metadata-converter.d.ts +0 -13
  148. package/lib/framework/mock/http-monitoring-console/model/service/io/request-metadata-converter.d.ts +0 -13
@@ -5,11 +5,39 @@
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
+ /**
9
+ * @private
10
+ * The list of CSS class types for rendered objects.
11
+ */
8
12
  export declare enum ConsoleTypeClass {
13
+ /**
14
+ * @private
15
+ * The class type for JS vanilla objects.
16
+ */
9
17
  OBJECT = "atx-object",
18
+ /**
19
+ * @private
20
+ * The class type for JS string primitives.
21
+ */
10
22
  STRING = "atx-string",
23
+ /**
24
+ * @private
25
+ * The class type for JS number primitives.
26
+ */
11
27
  NUMBER = "atx-number",
28
+ /**
29
+ * @private
30
+ * The class type for JS boolean primitives.
31
+ */
12
32
  BOOLEAN = "atx-boolean",
33
+ /**
34
+ * @private
35
+ * The class type for JS Arrays.
36
+ */
13
37
  ARRAY = "atx-array",
38
+ /**
39
+ * @private
40
+ * The class type for the JS `null` type.
41
+ */
14
42
  NULL = "atx-null"
15
43
  }
@@ -7,7 +7,27 @@
7
7
  */
8
8
  import { AtxConsoleJson } from '../model/business/atx-console-json';
9
9
  import { ConsoleBodyType } from './console-body-type';
10
+ /**
11
+ * @private
12
+ * A utility class for managing metadata objects.
13
+ */
10
14
  export declare class DataUtil {
15
+ /**
16
+ * @private
17
+ * Parses the specified object and returns a `AtxConsoleJson` tree that represents
18
+ * the structure of parsed object.
19
+ *
20
+ * @param obj The object to parse.
21
+ * @param label An optional `label` used to set the label property of the `AtxConsoleJson` object.
22
+ * @returns a `AtxConsoleJson` tree object.
23
+ */
11
24
  static parseJson(obj: any, label?: string): AtxConsoleJson;
25
+ /**
26
+ * @private
27
+ * Returns a constant of the ConsoleBodyType enum, depending on the type of the specified object.
28
+ *
29
+ * @param obj The object for wich to get the type.
30
+ * @returns A constant of the ConsoleBodyType enum.
31
+ */
12
32
  static getBodyType(obj: any): ConsoleBodyType;
13
33
  }
@@ -0,0 +1,30 @@
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 { AtxBodyDto } from "../../model/business/io/atx-body-dto";
9
+ /**
10
+ * @private
11
+ * A utility class that performs conversions between JavaScript objects and `AtxBodyDto` objects.
12
+ */
13
+ export declare class BodyConverter {
14
+ /**
15
+ * @private
16
+ * Turns a JavaScript object into an `AtxBodyDto` object and returns the result of the conversion.
17
+ *
18
+ * @param body The JavaScript object to convert.
19
+ * @returns An `AtxBodyDto` object.
20
+ */
21
+ static bodyToDto(body: any): AtxBodyDto;
22
+ /**
23
+ * @private
24
+ * Turns an `AtxBodyDto` object into a JavaScript object and returns the result of the conversion.
25
+ *
26
+ * @param dto The `AtxBodyDto` object to convert.
27
+ * @returns A JavaScript object.
28
+ */
29
+ static dtoToBody(dto: AtxBodyDto): any;
30
+ }
@@ -0,0 +1,32 @@
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 { ConsoleBodyType } from "../console-body-type";
9
+ /**
10
+ * @private
11
+ * A utility class that serialize and unserialize the objects rendered into the monitoring console.
12
+ */
13
+ export declare class BodySerializer {
14
+ /**
15
+ * @private
16
+ * Serializes the specified object depending on the `type` parameter.
17
+ *
18
+ * @param data The object to serialize.
19
+ * @param type The type of the object to serialize.
20
+ * @returns A string, or `null` whether the object type is not supported.
21
+ */
22
+ static serialize(data: any, type: ConsoleBodyType): string | null;
23
+ /**
24
+ * @private
25
+ * Unserializes the specified string depending on the `type` parameter.
26
+ *
27
+ * @param data The string to unserialize.
28
+ * @param type The type of the object to unserialize.
29
+ * @returns An object, or `null` whether the object type is not supported.
30
+ */
31
+ static unserialize(data: any, type: ConsoleBodyType): any;
32
+ }
@@ -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
+ /**
9
+ * @private
10
+ * A utility class that unserialize the `FormData` objects.
11
+ */
12
+ export declare class FormDataSerializer {
13
+ /**
14
+ * @private
15
+ * Unserializes the specified `FormData` objects.
16
+ *
17
+ * @param data The string to turn into a `FormData` object.
18
+ * @returns A `FormData` object, or null whether the `data` string is not a Array string.
19
+ */
20
+ static unserialize(data: string): FormData | null;
21
+ }
@@ -0,0 +1,23 @@
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 { AtxHttpLogDto } from "../../model/business/io/atx-http-log.dto";
9
+ import { HMFL } from "../../model/business/io/hmfl";
10
+ /**
11
+ * @private
12
+ * A utility class that creates `HMFL` objects.
13
+ */
14
+ export declare class HMFLBuilder {
15
+ /**
16
+ * @private
17
+ * Creates and returns a new `HMFL` object.
18
+ *
19
+ * @param logDtoList The list of serialized logs to include in the new `HMFL` object.
20
+ * @returns A new `HMFL` object.
21
+ */
22
+ static build(logDtoList: AtxHttpLogDto[]): HMFL;
23
+ }
@@ -0,0 +1,31 @@
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 { HttpRequest } from "@angular/common/http";
9
+ import { AtxHttpRequestDto } from "../../model/business/io/atx-http-request.dto";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `HttpRequest` instances into `AtxHttpRequestDto` objects.
13
+ */
14
+ export declare class HttpRequestConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `HttpRequest` instance into an `AtxHttpRequestDto` object.
18
+ *
19
+ * @param request The `HttpRequest` instance to convert.
20
+ * @returns A new `AtxHttpRequestDto` object.
21
+ */
22
+ static buildRequestDto(request: HttpRequest<any>): AtxHttpRequestDto;
23
+ /**
24
+ * @private
25
+ * Converts an `AtxHttpRequestDto` object into a `HttpRequest` instance.
26
+ *
27
+ * @param dto The `AtxHttpRequestDto` object to convert.
28
+ * @returns A new `HttpRequest` instance.
29
+ */
30
+ static buildHttpRequest(dto: AtxHttpRequestDto): HttpRequest<any>;
31
+ }
@@ -0,0 +1,31 @@
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 { HttpResponse } from "@angular/common/http";
9
+ import { AtxHttpResponseDto } from "../../model/business/io/atx-http-response.dto";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `HttpResponse` instances into `AtxHttpResponseDto` objects.
13
+ */
14
+ export declare class HttpResponseConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `HttpResponse` instance into an `AtxHttpResponseDto` object.
18
+ *
19
+ * @param response The `HttpResponse` instance to convert.
20
+ * @returns A new `AtxHttpResponseDto` object.
21
+ */
22
+ static buildResponseDto(response: HttpResponse<any>): AtxHttpResponseDto;
23
+ /**
24
+ * @private
25
+ * Converts an `AtxHttpResponseDto` object into a `HttpResponse` instance.
26
+ *
27
+ * @param dto The `AtxHttpResponseDto` object to convert.
28
+ * @returns A new `HttpResponse` instance.
29
+ */
30
+ static buildHttpResponse(dto: AtxHttpResponseDto): HttpResponse<any>;
31
+ }
@@ -0,0 +1,31 @@
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 { Log } from "../../../../../model";
9
+ import { AtxHttpLogDto } from "../../model/business/io/atx-http-log.dto";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `Log` objects into `AtxHttpLogDto` objects.
13
+ */
14
+ export declare class LogConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `object` object into an `AtxHttpLogDto` object.
18
+ *
19
+ * @param log The `Log` object to convert.
20
+ * @returns A new `AtxHttpLogDto` object.
21
+ */
22
+ static logToDto(log: Log): AtxHttpLogDto;
23
+ /**
24
+ * @private
25
+ * Converts an `AtxHttpLogDto` object into a `Log` object.
26
+ *
27
+ * @param dto The `AtxHttpLogDto` object to convert.
28
+ * @returns A new `Log` object.
29
+ */
30
+ static dtoToLog(dto: AtxHttpLogDto): Log;
31
+ }
@@ -0,0 +1,31 @@
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 { HttpHeaders } from "@angular/common/http";
9
+ import { AtxHeaderDto } from "../../model/business/io/atx-header-dto";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `HttpHeaders` instances into lists of `AtxHeaderDto` objects.
13
+ */
14
+ export declare class HttpHeadersConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `HttpHeaders` instance into a list of `AtxHeaderDto` object.
18
+ *
19
+ * @param headers The `HttpHeaders` instance to convert.
20
+ * @returns A new `AtxHeaderDto` object.
21
+ */
22
+ static headersToDto(headers: HttpHeaders): AtxHeaderDto[];
23
+ /**
24
+ * @private
25
+ * Converts a list of `AtxHeaderDto` objects into a `HttpHeaders` instance.
26
+ *
27
+ * @param headersDto The list of `AtxHeaderDto` objects to convert.
28
+ * @returns A new `HttpHeaders` instance.
29
+ */
30
+ static dtoToHeaders(headersDto: AtxHeaderDto[]): HttpHeaders;
31
+ }
@@ -0,0 +1,23 @@
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 { HttpMockLoggingConstant } from "../../../../../model/business/logging/http-mock-logging-constant.enum";
9
+ import { LogLevel } from "../../../../../model";
10
+ /**
11
+ * @private
12
+ * A utility class that returns a human-readable message depending on the specified level.
13
+ */
14
+ export declare class LogMessageUtil {
15
+ /**
16
+ * @private
17
+ * Returns a human-readable message depending on the specified level.
18
+ *
19
+ * @param level The level for which to get the message.
20
+ * @returns A string.
21
+ */
22
+ static getMessageFromLevel(level: LogLevel): HttpMockLoggingConstant;
23
+ }
@@ -0,0 +1,31 @@
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 { HttpMockLoggingMetadata } from "../../../../../model";
9
+ import { AtxHttpLogMetadataDto } from "../../model/business/io/atx-http-log-metadata.dto";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `HttpMockLoggingMetadata` objects into `AtxHttpLogMetadataDto` objects.
13
+ */
14
+ export declare class LogMetadataConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `HttpMockLoggingMetadata` object into an `AtxHttpLogMetadataDto` object.
18
+ *
19
+ * @param headers The `HttpMockLoggingMetadata` object to convert.
20
+ * @returns A new `AtxHttpLogMetadataDto` object.
21
+ */
22
+ static metadataToDto(metadata: HttpMockLoggingMetadata): AtxHttpLogMetadataDto;
23
+ /**
24
+ * @private
25
+ * Converts an `AtxHttpLogMetadataDto` object into a `HttpMockLoggingMetadata` object.
26
+ *
27
+ * @param headersDto The `AtxHttpLogMetadataDto` objects to convert.
28
+ * @returns A new `HttpMockLoggingMetadata` objects.
29
+ */
30
+ static dtoToMetadata(dto: AtxHttpLogMetadataDto): HttpMockLoggingMetadata;
31
+ }
@@ -0,0 +1,31 @@
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 { HttpMockRequestMetadata } from "../../../../../model";
9
+ import { AtxHttpRequestMetadataDto } from "../../model/business/io/atx-http-request-metadata.dto.ts";
10
+ /**
11
+ * @private
12
+ * A utility class that converts `HttpMockRequestMetadata` objects into `AtxHttpRequestMetadataDto` objects.
13
+ */
14
+ export declare class RequestMetadataConverter {
15
+ /**
16
+ * @private
17
+ * Converts a `HttpMockRequestMetadata` object into an `AtxHttpRequestMetadataDto` object.
18
+ *
19
+ * @param headers The `HttpMockRequestMetadata` object to convert.
20
+ * @returns A new `AtxHttpRequestMetadataDto` object.
21
+ */
22
+ static requestMetadataToDto(metadata: HttpMockRequestMetadata): AtxHttpRequestMetadataDto;
23
+ /**
24
+ * @private
25
+ * Converts an `AtxHttpRequestMetadataDto` object into a `HttpMockRequestMetadata` object.
26
+ *
27
+ * @param headersDto The `AtxHttpRequestMetadataDto` objects to convert.
28
+ * @returns A new `HttpMockRequestMetadata` objects.
29
+ */
30
+ static dtoToRequestMetadata(dto: AtxHttpRequestMetadataDto): HttpMockRequestMetadata;
31
+ }
@@ -5,7 +5,29 @@
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
+ /**
9
+ * @private
10
+ * A utility class for managing request data size.
11
+ */
8
12
  export declare class SizeUtil {
13
+ /**
14
+ * The string reference to the initial data size.
15
+ */
16
+ static readonly INITIAL_SIZE: string;
17
+ /**
18
+ * @private
19
+ * Returns the size of the specified object in bytes.
20
+ *
21
+ * @param obj The object for which to get the size.
22
+ * @returns The size of the specified object.
23
+ */
9
24
  static getSize(obj: any): number;
25
+ /**
26
+ * @private
27
+ *
28
+ * Returns the string representation of the specified size.
29
+ * @param size The size, in bytes, for which to get the string representation.
30
+ * @returns The string representation of the specified size.
31
+ */
10
32
  static sizeToString(size: number): string;
11
33
  }
@@ -0,0 +1,23 @@
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 { HttpMockRequestMetadata } from "../../../../model";
9
+ import { AtxTimelineData } from "../model/business/atx-timeline-data";
10
+ /**
11
+ * @private
12
+ * A utility class for computing the timeline data of an HTTP request.
13
+ */
14
+ export declare class TimelineUtil {
15
+ /**
16
+ * @private
17
+ * Returns the timeline data for the specified HTTP log.
18
+ *
19
+ * @param metadata The HTTP metadata for which to get the timeline data.
20
+ * @returns A `AtxTimelineData` object.
21
+ */
22
+ static getTimelineData(metadata: HttpMockRequestMetadata): AtxTimelineData;
23
+ }
@@ -6,8 +6,33 @@
6
6
  * the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
7
7
  */
8
8
  import { Log } from "../../../../model";
9
+ /**
10
+ * @private
11
+ * A utility class for managing request resources path.
12
+ */
9
13
  export declare class UrlUtil {
14
+ /**
15
+ * @private
16
+ * Returns the resource name from the specified HTTP log.
17
+ *
18
+ * @param log The HTTP log for which to get the resource name.
19
+ * @returns A string that represents the resource name of the specified HTTP log.
20
+ */
10
21
  static getResourceName(log: Log): string;
22
+ /**
23
+ * @private
24
+ * Returns the resource name from the specified URL path.
25
+ *
26
+ * @param pathname The URL path for which to get the resource name.
27
+ * @returns A string that represents the resource name of the specified URL path.
28
+ */
11
29
  static getResourceNameFromPath(pathname: string): string;
30
+ /**
31
+ * @private
32
+ * Returns the resource path from the specified HTTP log.
33
+ *
34
+ * @param log The HTTP log for which to get the resource path.
35
+ * @returns A string that represents the resource path of the specified HTTP log.
36
+ */
12
37
  static getResourcePath(log: Log): string;
13
38
  }
@@ -7,7 +7,6 @@
7
7
  */
8
8
  /**
9
9
  * Defines the level of an Angular Toolbox log.
10
- *
11
10
  */
12
11
  export declare enum LogLevel {
13
12
  /**
@@ -24,7 +24,7 @@ export interface Logger {
24
24
  *
25
25
  * @param caller The reference to the caller that sends the log.
26
26
  * @param message The log message.
27
- * @param metadata Optionale metadata associated with this log.
27
+ * @param metadata Optional metadata associated with this log.
28
28
  */
29
29
  info(caller: string | any, message: string, metadata?: any): void;
30
30
  /**
@@ -32,7 +32,7 @@ export interface Logger {
32
32
  *
33
33
  * @param caller The reference to the caller that sends the log.
34
34
  * @param message The log message.
35
- * @param metadata Optionale metadata associated with this log.
35
+ * @param metadata Optional metadata associated with this log.
36
36
  */
37
37
  config(caller: string | any, message: string, metadata?: any): void;
38
38
  /**
@@ -40,15 +40,15 @@ export interface Logger {
40
40
  *
41
41
  * @param caller The reference to the caller that sends the log.
42
42
  * @param message The log message.
43
- * @param metadata Optionale metadata associated with this log.
43
+ * @param metadata Optional metadata associated with this log.
44
44
  */
45
45
  error(caller: string | any, message: string, metadata?: any): void;
46
46
  /**
47
- * Sends an warning log to the service.
47
+ * Sends a warning log to the service.
48
48
  *
49
49
  * @param caller The reference to the caller that sends the log.
50
50
  * @param message The log message.
51
- * @param metadata Optionale metadata associated with this log.
51
+ * @param metadata Optional metadata associated with this log.
52
52
  */
53
53
  warn(caller: string | any, message: string, metadata?: any): void;
54
54
  /**
@@ -8,7 +8,7 @@
8
8
  import { Destroyable } from "../lang";
9
9
  import { LogConnector } from "./log-connector";
10
10
  /**
11
- * TTransactional loggers allow to create proxy via the `LogConnector` interface
11
+ * Transactional loggers allow to create proxy via the `LogConnector` interface
12
12
  * to send logs to third-party tools.
13
13
  */
14
14
  export interface TransactionalLogger extends Destroyable {
@@ -0,0 +1,23 @@
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 { ComponentRef } from "@angular/core";
9
+ import { AtxMonitoringConsoleComponent } from "../../../../../framework";
10
+ /**
11
+ * The `AtxHttpMockConsolePopup` interface provides component references for
12
+ * the ATX monitoring console objects created with the `AtxHttpMockConsoleService` class.
13
+ */
14
+ export interface AtxHttpMockConsolePopup {
15
+ /**
16
+ * The reference to a popup window created with the `AtxHttpMockConsoleService` class.
17
+ */
18
+ popup: Window;
19
+ /**
20
+ * The reference to a `AtxMonitoringConsoleComponent` instance created with the `AtxHttpMockConsoleService` class.
21
+ */
22
+ componentRef: ComponentRef<AtxMonitoringConsoleComponent>;
23
+ }
@@ -0,0 +1,53 @@
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 { ApplicationRef, OnDestroy } from "@angular/core";
9
+ import { AtxHttpMockConsolePopup } from "../../../../business/mock/http/popup/atx-http-mock-console-popup";
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * Provides functionality to display the ATX monitoring console within a new window.
13
+ */
14
+ export declare class AtxHttpMockConsoleService implements OnDestroy {
15
+ private _appRef;
16
+ /**
17
+ * @private
18
+ */
19
+ private _window;
20
+ /**
21
+ * @private
22
+ */
23
+ private _componentRef;
24
+ /**
25
+ * @private
26
+ */
27
+ readonly ICON: string;
28
+ /**
29
+ * @private
30
+ */
31
+ constructor(_appRef: ApplicationRef);
32
+ /**
33
+ * Opens the ATX monitoring console within a new window and returns reference objects
34
+ * to control it.
35
+ *
36
+ * @returns An `AtxHttpMockConsolePopup` object.
37
+ */
38
+ open(): AtxHttpMockConsolePopup | null;
39
+ /**
40
+ * Closes the ATX monitoring console currently opened within a popup window.
41
+ */
42
+ close(): void;
43
+ /**
44
+ * @private
45
+ */
46
+ ngOnDestroy(): void;
47
+ /**
48
+ * @private
49
+ */
50
+ private createHeadTags;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtxHttpMockConsoleService, never>;
52
+ static ɵprov: i0.ɵɵInjectableDeclaration<AtxHttpMockConsoleService>;
53
+ }
@@ -43,6 +43,7 @@ export declare class HttpMockLoggingService implements TransactionalLogger, OnDe
43
43
  */
44
44
  error(metadata: HttpMockLoggingMetadata): Log;
45
45
  /**
46
+ * @private
46
47
  * Processes a special kind of logs that are used to indicate that a HTTP operation
47
48
  * started and no response is available yet.
48
49
  *
@@ -68,10 +69,14 @@ export declare class HttpMockLoggingService implements TransactionalLogger, OnDe
68
69
  /**
69
70
  * @inheritdoc
70
71
  */
71
- ngOnDestroy(): void;
72
+ getLogs(): Log[];
72
73
  /**
73
74
  * @inheritdoc
74
75
  */
76
+ ngOnDestroy(): void;
77
+ /**
78
+ * @private
79
+ */
75
80
  private getLastLog;
76
81
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpMockLoggingService, never>;
77
82
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpMockLoggingService>;
@@ -1 +1,2 @@
1
1
  export * from "./http-mock-logging-service";
2
+ export * from "./atx-http-mock-console.service";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-toolbox",
3
- "version": "0.12.2",
3
+ "version": "1.0.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.0.0",