@ama-mfe/ng-utils 13.0.0-next.6 → 13.0.0-prerelease.1

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 (85) hide show
  1. package/fesm2022/ama-mfe-ng-utils.mjs +45 -45
  2. package/fesm2022/ama-mfe-ng-utils.mjs.map +1 -1
  3. package/index.d.ts +736 -4
  4. package/index.d.ts.map +1 -0
  5. package/package.json +12 -12
  6. package/schematics/ng-add/schema.json +3 -2
  7. package/ama-mfe-ng-utils.d.ts.map +0 -1
  8. package/connect/connect.directive.d.ts +0 -24
  9. package/connect/connect.directive.d.ts.map +0 -1
  10. package/connect/connect.providers.d.ts +0 -15
  11. package/connect/connect.providers.d.ts.map +0 -1
  12. package/connect/connect.resources.d.ts +0 -3
  13. package/connect/connect.resources.d.ts.map +0 -1
  14. package/connect/index.d.ts +0 -4
  15. package/connect/index.d.ts.map +0 -1
  16. package/history/history.providers.d.ts +0 -13
  17. package/history/history.providers.d.ts.map +0 -1
  18. package/history/index.d.ts +0 -2
  19. package/history/index.d.ts.map +0 -1
  20. package/host-info/host-info.d.ts +0 -48
  21. package/host-info/host-info.d.ts.map +0 -1
  22. package/host-info/host-info.pipe.d.ts +0 -30
  23. package/host-info/host-info.pipe.d.ts.map +0 -1
  24. package/host-info/index.d.ts +0 -3
  25. package/host-info/index.d.ts.map +0 -1
  26. package/managers/consumer.manager.service.d.ts +0 -36
  27. package/managers/consumer.manager.service.d.ts.map +0 -1
  28. package/managers/index.d.ts +0 -5
  29. package/managers/index.d.ts.map +0 -1
  30. package/managers/interfaces.d.ts +0 -49
  31. package/managers/interfaces.d.ts.map +0 -1
  32. package/managers/producer.manager.service.d.ts +0 -29
  33. package/managers/producer.manager.service.d.ts.map +0 -1
  34. package/managers/utils.d.ts +0 -14
  35. package/managers/utils.d.ts.map +0 -1
  36. package/messages/available.sender.d.ts +0 -15
  37. package/messages/available.sender.d.ts.map +0 -1
  38. package/messages/error/base.d.ts +0 -18
  39. package/messages/error/base.d.ts.map +0 -1
  40. package/messages/error/error.versions.d.ts +0 -10
  41. package/messages/error/error.versions.d.ts.map +0 -1
  42. package/messages/error/index.d.ts +0 -6
  43. package/messages/error/index.d.ts.map +0 -1
  44. package/messages/error.sender.d.ts +0 -17
  45. package/messages/error.sender.d.ts.map +0 -1
  46. package/messages/index.d.ts +0 -4
  47. package/messages/index.d.ts.map +0 -1
  48. package/navigation/index.d.ts +0 -5
  49. package/navigation/index.d.ts.map +0 -1
  50. package/navigation/navigation.consumer.service.d.ts +0 -60
  51. package/navigation/navigation.consumer.service.d.ts.map +0 -1
  52. package/navigation/restore-route.pipe.d.ts +0 -44
  53. package/navigation/restore-route.pipe.d.ts.map +0 -1
  54. package/navigation/route-memorize/index.d.ts +0 -3
  55. package/navigation/route-memorize/index.d.ts.map +0 -1
  56. package/navigation/route-memorize/route-memorize.directive.d.ts +0 -31
  57. package/navigation/route-memorize/route-memorize.directive.d.ts.map +0 -1
  58. package/navigation/route-memorize/route-memorize.service.d.ts +0 -27
  59. package/navigation/route-memorize/route-memorize.service.d.ts.map +0 -1
  60. package/navigation/routing.service.d.ts +0 -64
  61. package/navigation/routing.service.d.ts.map +0 -1
  62. package/public_api.d.ts +0 -9
  63. package/public_api.d.ts.map +0 -1
  64. package/resize/index.d.ts +0 -4
  65. package/resize/index.d.ts.map +0 -1
  66. package/resize/resize.consumer.service.d.ts +0 -44
  67. package/resize/resize.consumer.service.d.ts.map +0 -1
  68. package/resize/resize.directive.d.ts +0 -24
  69. package/resize/resize.directive.d.ts.map +0 -1
  70. package/resize/resize.producer.service.d.ts +0 -30
  71. package/resize/resize.producer.service.d.ts.map +0 -1
  72. package/schematics/ng-add/index.js.map +0 -1
  73. package/schematics/ng-add/schema.js.map +0 -1
  74. package/theme/apply-theme.pipe.d.ts +0 -21
  75. package/theme/apply-theme.pipe.d.ts.map +0 -1
  76. package/theme/index.d.ts +0 -5
  77. package/theme/index.d.ts.map +0 -1
  78. package/theme/theme.consumer.service.d.ts +0 -38
  79. package/theme/theme.consumer.service.d.ts.map +0 -1
  80. package/theme/theme.helpers.d.ts +0 -40
  81. package/theme/theme.helpers.d.ts.map +0 -1
  82. package/theme/theme.producer.service.d.ts +0 -37
  83. package/theme/theme.producer.service.d.ts.map +0 -1
  84. package/utils.d.ts +0 -18
  85. package/utils.d.ts.map +0 -1
@@ -1,44 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { type SafeResourceUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Options for restoring a route with optional query parameters and memory channel ID.
6
- */
7
- export interface RestoreRouteOptions {
8
- /**
9
- * Whether to propagate query parameters from the top window to the module URL.
10
- */
11
- propagateQueryParams?: boolean;
12
- /**
13
- * Whether to override existing query parameters in the module URL with those from the top window.
14
- */
15
- overrideQueryParams?: boolean;
16
- /**
17
- * The memory channel ID used to retrieve the memorized route.
18
- * If provided, the memorized route associated with this ID will be used.
19
- */
20
- memoryChannelId?: string;
21
- }
22
- /**
23
- * A pipe that restores a route with optional query parameters and memory channel ID.
24
- *
25
- * This pipe is used to transform a URL or SafeResourceUrl by appending query parameters
26
- * and adjusting the pathname based on the current active route and memorized route.
27
- */
28
- export declare class RestoreRoute implements PipeTransform {
29
- private readonly activeRoute;
30
- private readonly domSanitizer;
31
- private readonly routeMemorizeService;
32
- /**
33
- * Transforms the given URL or SafeResourceUrl by appending query parameters and adjusting the pathname.
34
- * @param url - The URL or SafeResourceUrl to be transformed.
35
- * @param options - Optional parameters to control the transformation. {@see RestoreRouteOptions}
36
- * @returns - The transformed SafeResourceUrl or undefined if the input URL is invalid.
37
- */
38
- transform(url: string, options?: Partial<RestoreRouteOptions>): string;
39
- transform(url: SafeResourceUrl, options?: Partial<RestoreRouteOptions>): SafeResourceUrl;
40
- transform(url: undefined, options?: Partial<RestoreRouteOptions>): undefined;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<RestoreRoute, never>;
42
- static ɵpipe: i0.ɵɵPipeDeclaration<RestoreRoute, "restoreRoute", true>;
43
- }
44
- //# sourceMappingURL=restore-route.pipe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restore-route.pipe.d.ts","sourceRoot":"","sources":["../../src/navigation/restore-route.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAC;;AAQnC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,qBAGa,YAAa,YAAW,aAAa;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;IACtD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAoD;IAEzF;;;;;OAKG;IACI,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,MAAM;IACtE,SAAS,CAAC,GAAG,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe;IACxF,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAS;yCAbxE,YAAY;uCAAZ,YAAY;CA8CxB"}
@@ -1,3 +0,0 @@
1
- export * from './route-memorize.directive';
2
- export * from './route-memorize.service';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigation/route-memorize/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class RouteMemorizeDirective {
3
- /**
4
- * Whether to memorize the route.
5
- * Default is true.
6
- */
7
- memorizeRoute: import("@angular/core").InputSignal<boolean | "" | undefined>;
8
- /**
9
- * The ID used to memorize the route.
10
- */
11
- memorizeRouteId: import("@angular/core").InputSignal<string | undefined>;
12
- /**
13
- * The maximum age for memorizing the route.
14
- * Default is 0.
15
- */
16
- memorizeMaxAge: import("@angular/core").InputSignal<number>;
17
- /**
18
- * The maximum age for memorizing the route, used as a fallback.
19
- * Default is 0.
20
- */
21
- memorizeRouteMaxAge: import("@angular/core").InputSignal<number>;
22
- /**
23
- * The connection ID for the iframe where the actual directive is applied.
24
- */
25
- connect: import("@angular/core").InputSignal<string | undefined>;
26
- private readonly maxAge;
27
- constructor();
28
- static ɵfac: i0.ɵɵFactoryDeclaration<RouteMemorizeDirective, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouteMemorizeDirective, "iframe[memorizeRoute]", never, { "memorizeRoute": { "alias": "memorizeRoute"; "required": false; "isSignal": true; }; "memorizeRouteId": { "alias": "memorizeRouteId"; "required": false; "isSignal": true; }; "memorizeMaxAge": { "alias": "memorizeMaxAge"; "required": false; "isSignal": true; }; "memorizeRouteMaxAge": { "alias": "memorizeRouteMaxAge"; "required": false; "isSignal": true; }; "connect": { "alias": "connect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
- }
31
- //# sourceMappingURL=route-memorize.directive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route-memorize.directive.d.ts","sourceRoot":"","sources":["../../../src/navigation/route-memorize/route-memorize.directive.ts"],"names":[],"mappings":";AAkBA,qBAIa,sBAAsB;IACjC;;;OAGG;IACI,aAAa,gEAAyC;IAE7D;;OAEG;IACI,eAAe,0DAAmB;IAEzC;;;OAGG;IACI,cAAc,8CAAoB;IAEzC;;;OAGG;IACI,mBAAmB,8CAAoB;IAE9C;;OAEG;IACI,OAAO,0DAAmB;IAEjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAEpB;;yCA/BQ,sBAAsB;2CAAtB,sBAAsB;CAqDlC"}
@@ -1,27 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * This service allows routes to be memorized with an optional lifetime and provides methods to retrieve and manage these routes.
4
- */
5
- export declare class RouteMemorizeService {
6
- private readonly routeTimers;
7
- /** All memorized routes */
8
- readonly routeStack: {
9
- [x: string]: string;
10
- };
11
- /**
12
- * Memorizes a route for a given channel ID with an optional lifetime.
13
- * @param channelId - The ID of the channel to memorize the route for.
14
- * @param url - The URL of the route to memorize.
15
- * @param liveTime - The optional lifetime of the memorized route in milliseconds. If provided, the route will be removed after this time.
16
- */
17
- memorizeRoute(channelId: string, url: string, liveTime?: number): void;
18
- /**
19
- * Retrieves the memorized route for a given channel ID.
20
- * @param channelId - The ID of the channel to retrieve the memorized route for.
21
- * @returns The memorized route URL or undefined if no route is memorized for the given channel ID.
22
- */
23
- getRoute(channelId: string): string | undefined;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<RouteMemorizeService, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<RouteMemorizeService>;
26
- }
27
- //# sourceMappingURL=route-memorize.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route-memorize.service.d.ts","sourceRoot":"","sources":["../../../src/navigation/route-memorize/route-memorize.service.ts"],"names":[],"mappings":";AAIA;;GAEG;AACH,qBAGa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsD;IAClF,2BAA2B;IAC3B,SAAgB,UAAU,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAM;IAEzD;;;;;OAKG;IACI,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAe7E;;;;OAIG;IACI,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;yCA/B3C,oBAAoB;6CAApB,oBAAoB;CAkChC"}
@@ -1,64 +0,0 @@
1
- import type { NavigationMessage, NavigationV1_0 } from '@ama-mfe/messages';
2
- import type { RoutedMessage } from '@amadeus-it-group/microfrontends';
3
- import { type MessageConsumer, type MessageProducer } from '../managers/index';
4
- import { type ErrorContent } from '../messages/error';
5
- import * as i0 from "@angular/core";
6
- /** Options for the routing handling in case of navigation producer message */
7
- export interface RoutingServiceOptions {
8
- /**
9
- * Whether to handle only sub-routes.
10
- * If true, the routing service will handle only sub-routes.
11
- * Default is false.
12
- */
13
- subRouteOnly?: boolean;
14
- }
15
- /**
16
- * A service that keeps in sync Router navigation and navigation messages.
17
- *
18
- * - listens to Router events and sends navigation messages
19
- * - handles incoming navigation messages and triggers Router navigation
20
- */
21
- export declare class RoutingService implements MessageProducer<NavigationMessage>, MessageConsumer<NavigationMessage> {
22
- private readonly router;
23
- private readonly activatedRoute;
24
- private readonly messageService;
25
- private readonly logger;
26
- /**
27
- * @inheritdoc
28
- */
29
- readonly types = "navigation";
30
- /**
31
- * @inheritdoc
32
- */
33
- readonly type = "navigation";
34
- /**
35
- * Use the message payload to navigate to the specified URL.
36
- * @param message message to consume
37
- */
38
- readonly supportedVersions: {
39
- '1.0': (message: RoutedMessage<any>) => Promise<void>;
40
- };
41
- constructor();
42
- /**
43
- * @inheritdoc
44
- */
45
- start(): void;
46
- /**
47
- * @inheritdoc
48
- */
49
- stop(): void;
50
- /**
51
- * @inheritdoc
52
- */
53
- handleError(message: ErrorContent<NavigationV1_0>): void;
54
- /**
55
- * Handles embedded routing by listening to router events and sending navigation messages to the connected endpoints.
56
- * It can be a parent window or another iframe
57
- * @note - This method has to be called in an injection context
58
- * @param options - Optional parameters to control the routing behavior {@see RoutingServiceOptions}.
59
- */
60
- handleEmbeddedRouting(options?: RoutingServiceOptions): void;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<RoutingService, never>;
62
- static ɵprov: i0.ɵɵInjectableDeclaration<RoutingService>;
63
- }
64
- //# sourceMappingURL=routing.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routing.service.d.ts","sourceRoot":"","sources":["../../src/navigation/routing.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EACV,aAAa,EACd,MAAM,kCAAkC,CAAC;AAuB1C,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAGrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;;AAK3B,+EAA+E;AAC/E,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,qBAGa,cAAe,YAAW,eAAe,CAAC,iBAAiB,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC;IAC3G,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IACzD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiD;IAChF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;OAEG;IACH,SAAgB,KAAK,gBAA2B;IAEhD;;OAEG;IACH,SAAgB,IAAI,gBAAgB;IAEpC;;;OAGG;IACH,SAAgB,iBAAiB;yBACR,aAAa,CAAC,GAAG,CAAC;MAGzC;;IAOF;;OAEG;IACI,KAAK,IAAI,IAAI;IAEpB;;OAEG;IACI,IAAI,IAAI,IAAI;IAEnB;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,IAAI;IAI/D;;;;;OAKG;IACI,qBAAqB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,IAAI;yCAtDxD,cAAc;6CAAd,cAAc;CAsF1B"}
package/public_api.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './managers/index';
2
- export * from './messages/index';
3
- export * from './resize/index';
4
- export * from './navigation/index';
5
- export * from './theme/index';
6
- export * from './connect/index';
7
- export * from './utils';
8
- export * from './host-info';
9
- //# sourceMappingURL=public_api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
package/resize/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './resize.consumer.service';
2
- export * from './resize.producer.service';
3
- export * from './resize.directive';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resize/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
@@ -1,44 +0,0 @@
1
- import type { ResizeMessage, ResizeV1_0 } from '@ama-mfe/messages';
2
- import type { RoutedMessage } from '@amadeus-it-group/microfrontends';
3
- import { MessageConsumer } from '../managers/index';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * This service listens for resize messages and updates the height of elements based on the received messages.
7
- */
8
- export declare class ResizeConsumerService implements MessageConsumer<ResizeMessage> {
9
- private readonly newHeight;
10
- /**
11
- * A readonly signal that provides the new height information from the channel.
12
- */
13
- readonly newHeightFromChannel: import("@angular/core").Signal<{
14
- height: number;
15
- channelId: string;
16
- } | undefined>;
17
- /**
18
- * The type of messages this service handles ('resize').
19
- */
20
- readonly type = "resize";
21
- /**
22
- * The supported versions of resize messages and their handlers.
23
- */
24
- supportedVersions: {
25
- /**
26
- * Use the message paylod to compute a new height and emit it via the public signal
27
- * @param message message to consume
28
- */
29
- '1.0': (message: RoutedMessage<ResizeV1_0>) => void;
30
- };
31
- private readonly consumerManagerService;
32
- constructor();
33
- /**
34
- * Starts the resize handler service by registering it into the consumer manager service.
35
- */
36
- start(): void;
37
- /**
38
- * Stops the resize handler service by unregistering it from the consumer manager service.
39
- */
40
- stop(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeConsumerService, never>;
42
- static ɵprov: i0.ɵɵInjectableDeclaration<ResizeConsumerService>;
43
- }
44
- //# sourceMappingURL=resize.consumer.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resize.consumer.service.d.ts","sourceRoot":"","sources":["../../src/resize/resize.consumer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACX,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EACV,aAAa,EACd,MAAM,kCAAkC,CAAC;AAO1C,OAAO,EAEL,eAAe,EAChB,MAAM,mBAAmB,CAAC;;AAE3B;;GAEG;AACH,qBAGa,qBAAsB,YAAW,eAAe,CAAC,aAAa,CAAC;IAC1E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwE;IAElG;;OAEG;IACH,SAAgB,oBAAoB;gBALU,MAAM;mBAAa,MAAM;mBAKJ;IAEnE;;OAEG;IACH,SAAgB,IAAI,YAAuB;IAE3C;;OAEG;IACI,iBAAiB;QACtB;;;WAGG;yBACc,aAAa,CAAC,UAAU,CAAC;MAC1C;IAEF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAkC;;IAOzE;;OAEG;IACI,KAAK;IAIZ;;OAEG;IACI,IAAI;yCAzCA,qBAAqB;6CAArB,qBAAqB;CA4CjC"}
@@ -1,24 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * A directive that adjusts the height of an element based on resize messages from a specified channel.
4
- */
5
- export declare class ScalableDirective {
6
- /**
7
- * The connection ID for the element, used as channel id backup
8
- */
9
- connect: import("@angular/core").InputSignal<string | undefined>;
10
- /**
11
- * The channel id
12
- */
13
- scalable: import("@angular/core").InputSignal<string | undefined>;
14
- private readonly resizeHandler;
15
- /**
16
- * This signal checks if the current channel requesting the resize matches the channel ID from the resize handler.
17
- * If they match, it returns the new height information; otherwise, it returns undefined.
18
- */
19
- private readonly newHeightFromChannel;
20
- constructor();
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ScalableDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ScalableDirective, "[scalable]", never, { "connect": { "alias": "connect"; "required": false; "isSignal": true; }; "scalable": { "alias": "scalable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
- }
24
- //# sourceMappingURL=resize.directive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resize.directive.d.ts","sourceRoot":"","sources":["../../src/resize/resize.directive.ts"],"names":[],"mappings":";AAaA;;GAEG;AACH,qBAIa,iBAAiB;IAC5B;;OAEG;IACI,OAAO,0DAAmB;IAEjC;;OAEG;IACI,QAAQ,0DAAmB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiC;IAE/D;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAOlC;;yCAxBQ,iBAAiB;2CAAjB,iBAAiB;CAwC7B"}
@@ -1,30 +0,0 @@
1
- import type { ResizeMessage } from '@ama-mfe/messages';
2
- import { type MessageProducer } from '../managers/index';
3
- import { type ErrorContent } from '../messages/index';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * This service observe changes in the document's body height.
7
- * When the height changes, it sends a resize message with the new height, to the connected peers
8
- */
9
- export declare class ResizeService implements MessageProducer<ResizeMessage> {
10
- private actualHeight?;
11
- private readonly messageService;
12
- private resizeObserver?;
13
- /**
14
- * @inheritdoc
15
- */
16
- readonly types = "resize";
17
- constructor();
18
- /**
19
- * @inheritdoc
20
- */
21
- handleError(message: ErrorContent<ResizeMessage>): void;
22
- /**
23
- * This method sets up a `ResizeObserver` to observe changes in the document's body height.
24
- * When the height changes, it sends a resize message with the new height, to the connected peers
25
- */
26
- startResizeObserver(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<ResizeService>;
29
- }
30
- //# sourceMappingURL=resize.producer.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resize.producer.service.d.ts","sourceRoot":"","sources":["../../src/resize/resize.producer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;;AAE3B;;;GAGG;AACH,qBAGa,aAAc,YAAW,eAAe,CAAC,aAAa,CAAC;IAClE,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;IAC5E,OAAO,CAAC,cAAc,CAAC,CAAiB;IAExC;;OAEG;IACH,SAAgB,KAAK,YAAuB;;IAM5C;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,aAAa,CAAC,GAAG,IAAI;IAK9D;;;OAGG;IACI,mBAAmB;yCA1Bf,aAAa;6CAAb,aAAa;CA2CzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAIoC;AACpC,gDAOyB;AAQzB,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E,MAAM,cAAc,GAAS,CAAC,IAAI,EAAE,EAAE;IACpC,wBAAwB;IACxB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAa,EAAE,CAAC;AAE9C;;GAEG;AACH,MAAM,qBAAqB,GAAa;IACtC,iBAAiB;IACjB,eAAe;IACf,iBAAiB;CAClB,CAAC;AAEF,MAAM,mBAAmB,GAAa;AACpC,kDAAkD;CACnD,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,0BAA0B;QAC1B,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACnH,MAAM,gBAAgB,GAAG,gBAAgB,EAAE,IAAI,IAAI,GAAG,CAAC;QACvD,MAAM,kBAAkB,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAgB,CAAC;QAC3G,MAAM,wBAAwB,GAAG,IAAA,wCAA2B,EAAC;YAC3D,wBAAwB,EAAE,wBAAwB;YAClD,qBAAqB,EAAE,qBAAqB;YAC5C,kBAAkB,EAAE,eAAe;YACnC,kBAAkB;YAClB,WAAW,EAAE,gBAAgB,EAAE,WAAW;SAC3C,EACD,OAAO,CAAC,MAAM,CACb,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,oCAAuB,EAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QACzF,OAAO,IAAA,kBAAK,EAAC;YACX,kDAAkD;YAClD,cAAc;YACd,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,2BAAc,GAAE;YAC9C,IAAA,8BAAiB,EAAC;gBAChB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,YAAY,EAAE;oBACZ,GAAG,YAAY;oBACf,GAAG,wBAAwB;iBAC5B;gBACD,UAAU,EAAE,mBAAmB;gBAC/B,WAAW,EAAE,OAAO,CAAC,WAAW;aACjC,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,IAAA,iCAAoB,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AAAnF,QAAA,KAAK,SAA8E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { type SafeResourceUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * A pipe that applies the current theme from a theme manager service, to a given URL or SafeResourceUrl, as query param
6
- */
7
- export declare class ApplyTheme implements PipeTransform {
8
- private readonly themeManagerService;
9
- private readonly domSanitizer;
10
- /**
11
- * Transforms the given URL or SafeResourceUrl by appending the current theme value as a query parameter.
12
- * @param url - The URL or SafeResourceUrl to be transformed.
13
- * @returns The transformed SafeResourceUrl or undefined if the input URL is invalid.
14
- */
15
- transform(url: string): string;
16
- transform(url: SafeResourceUrl): SafeResourceUrl;
17
- transform(url: undefined): undefined;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplyTheme, never>;
19
- static ɵpipe: i0.ɵɵPipeDeclaration<ApplyTheme, "applyTheme", true>;
20
- }
21
- //# sourceMappingURL=apply-theme.pipe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apply-theme.pipe.d.ts","sourceRoot":"","sources":["../../src/theme/apply-theme.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAC;;AAKnC;;GAEG;AACH,qBAGa,UAAW,YAAW,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAgC;IACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IAErD;;;;OAIG;IACI,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAC9B,SAAS,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe;IAChD,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS;yCAXhC,UAAU;uCAAV,UAAU;CAgCtB"}
package/theme/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from './apply-theme.pipe';
2
- export * from './theme.consumer.service';
3
- export * from './theme.helpers';
4
- export * from './theme.producer.service';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC"}
@@ -1,38 +0,0 @@
1
- import type { ThemeMessage, ThemeV1_0 } from '@ama-mfe/messages';
2
- import type { RoutedMessage } from '@amadeus-it-group/microfrontends';
3
- import { MessageConsumer } from '../managers/index';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * A service that handles theme messages and applies the received theme.
7
- */
8
- export declare class ThemeConsumerService implements MessageConsumer<ThemeMessage> {
9
- private readonly domSanitizer;
10
- private readonly consumerManagerService;
11
- private readonly logger;
12
- /**
13
- * The type of messages this service handles ('theme').
14
- */
15
- readonly type = "theme";
16
- /**
17
- * The supported versions of theme messages and their handlers.
18
- */
19
- readonly supportedVersions: {
20
- /**
21
- * Use the message paylod to get the theme and apply it
22
- * @param message message to consume
23
- */
24
- '1.0': (message: RoutedMessage<ThemeV1_0>) => Promise<void>;
25
- };
26
- constructor();
27
- /**
28
- * Starts the theme handler service by registering it into the consumer manager service.
29
- */
30
- start(): void;
31
- /**
32
- * Stops the theme handler service by unregistering it from the consumer manager service.
33
- */
34
- stop(): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeConsumerService, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeConsumerService>;
37
- }
38
- //# sourceMappingURL=theme.consumer.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.consumer.service.d.ts","sourceRoot":"","sources":["../../src/theme/theme.consumer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EACV,aAAa,EACd,MAAM,kCAAkC,CAAC;AAa1C,OAAO,EAEL,eAAe,EAChB,MAAM,mBAAmB,CAAC;;AAM3B;;GAEG;AACH,qBAGa,oBAAqB,YAAW,eAAe,CAAC,YAAY,CAAC;IACxE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAkC;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD;;OAEG;IACH,SAAgB,IAAI,WAAsB;IAE1C;;OAEG;IACH,SAAgB,iBAAiB;QAC/B;;;WAGG;yBACoB,aAAa,CAAC,SAAS,CAAC;MAY/C;;IAOF;;OAEG;IACI,KAAK;IAIZ;;OAEG;IACI,IAAI;yCA9CA,oBAAoB;6CAApB,oBAAoB;CAiDhC"}
@@ -1,40 +0,0 @@
1
- import { type Logger } from '@o3r/logger';
2
- /** Default suffix for an url containing a theme css file */
3
- export declare const THEME_URL_SUFFIX = "-theme.css";
4
- /** Default name for the query parameter containing the theme name */
5
- export declare const THEME_QUERY_PARAM_NAME = "theme";
6
- /** Options and context for Style helpers */
7
- export interface StyleHelperOptions {
8
- /**
9
- * Logger to reporter the logs
10
- */
11
- logger?: Logger;
12
- }
13
- /**
14
- * Fetches a CSS document and returns the content as a string.
15
- * @param cssPath - The path to download the CSS.
16
- * @param options Options and context for Style helpers
17
- * @returns The content of the CSS document as a string, empty string if the fetch fails.
18
- */
19
- export declare function getStyle(cssPath: string, options?: StyleHelperOptions): Promise<string>;
20
- /**
21
- * Applies the given CSS theme as a stylesheet.
22
- * @param themeValue - CSS as text containing a theme definition.
23
- * @param cleanPrevious - Whether to remove previously applied stylesheets if no themeValue provided. Default is true.
24
- */
25
- export declare function applyTheme(themeValue?: string, cleanPrevious?: boolean): void;
26
- /**
27
- * Download the application additional theme
28
- * @param theme Name of the theme to download from the current application
29
- * @param options Options and context for Style helpers
30
- */
31
- export declare function downloadApplicationThemeCss(theme: string, options?: StyleHelperOptions): Promise<string>;
32
- /**
33
- * Applies the initial theme based on the URL query parameters.
34
- *
35
- * This function fetches the CSS theme specified in the URL query parameters and applies it as a stylesheet.
36
- * If a referrer is present, it also attempts to fetch and apply the theme from the referrer's URL.
37
- * @param options Options and context for Style helpers
38
- */
39
- export declare function applyInitialTheme(options?: StyleHelperOptions): Promise<PromiseSettledResult<void>[] | undefined>;
40
- //# sourceMappingURL=theme.helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.helpers.d.ts","sourceRoot":"","sources":["../../src/theme/theme.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACZ,MAAM,aAAa,CAAC;AAKrB,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAE9C,4CAA4C;AAC5C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAU7F;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,aAAa,UAAO,GAAG,IAAI,CAQ1E;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,mBAGtF;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC,CAiBvH"}
@@ -1,37 +0,0 @@
1
- import type { ThemeMessage, ThemeV1_0 } from '@ama-mfe/messages';
2
- import { ThemeStructure } from '@ama-mfe/messages';
3
- import { type MessageProducer } from '../managers/index';
4
- import { type ErrorContent } from '../messages/index';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * This service exposing the current theme signal
8
- */
9
- export declare class ThemeProducerService implements MessageProducer<ThemeMessage> {
10
- private readonly messageService;
11
- private readonly logger;
12
- private previousTheme;
13
- private readonly currentThemeSelection;
14
- /** Current selected theme signal */
15
- readonly currentTheme: import("@angular/core").Signal<ThemeStructure | undefined>;
16
- /**
17
- * The type of messages this service handles ('theme').
18
- */
19
- readonly types = "theme";
20
- constructor();
21
- /**
22
- * Changes the current theme to the specified theme name.
23
- * @param themeName - The name of the theme to change to.
24
- */
25
- changeTheme(themeName?: string): Promise<void>;
26
- /**
27
- * Reverts to the previous theme.
28
- */
29
- revertToPreviousTheme(): void;
30
- /**
31
- * @inheritdoc
32
- */
33
- handleError(message: ErrorContent<ThemeV1_0>): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeProducerService, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeProducerService>;
36
- }
37
- //# sourceMappingURL=theme.producer.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.producer.service.d.ts","sourceRoot":"","sources":["../../src/theme/theme.producer.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,cAAc,EACf,MAAM,mBAAmB,CAAC;AAa3B,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;;AAO3B;;GAEG;AACH,qBAGa,oBAAqB,YAAW,eAAe,CAAC,YAAY,CAAC;IACxE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;IAC3E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,aAAa,CAA6B;IAElD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACvC,oCAAoC;IACpC,SAAgB,YAAY,6DAAC;IAE7B;;OAEG;IACH,SAAgB,KAAK,WAAsB;;IA+C3C;;;OAGG;IACU,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3D;;OAEG;IACI,qBAAqB,IAAI,IAAI;IAIpC;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,IAAI;yCApF/C,oBAAoB;6CAApB,oBAAoB;CAwFhC"}
package/utils.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import type { PeerConnectionOptions } from '@amadeus-it-group/microfrontends';
2
- /**
3
- * A constant array of known message types and their versions.
4
- */
5
- export declare const KNOWN_MESSAGES: [{
6
- readonly type: "error";
7
- readonly version: "1.0";
8
- }];
9
- /**
10
- * Returns the default options for starting a client endpoint peer connection.
11
- * As `origin`, it will take the hostURL from {@link getHostInfo} and the `window` will be the parent window.
12
- */
13
- export declare function getDefaultClientEndpointStartOptions(): PeerConnectionOptions;
14
- /**
15
- * Return `true` if embedded inside an iframe, `false` otherwise
16
- */
17
- export declare function isEmbedded(): boolean;
18
- //# sourceMappingURL=utils.d.ts.map
package/utils.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAQ1C;;GAEG;AACH,eAAO,MAAM,cAAc;;;EAKG,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,oCAAoC,IAAI,qBAAqB,CAS5E;AAED;;GAEG;AACH,wBAAgB,UAAU,YAEzB"}