@luigi-project/client-support-angular 1.24.1-dev.202209272351 → 1.24.1-dev.202209281323

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 (29) hide show
  1. package/bundles/luigi-project-client-support-angular.umd.js +87 -33
  2. package/bundles/luigi-project-client-support-angular.umd.js.map +1 -1
  3. package/bundles/luigi-project-client-support-angular.umd.min.js +1 -16
  4. package/bundles/luigi-project-client-support-angular.umd.min.js.map +1 -1
  5. package/esm2015/lib/component/luigi.preload.component.js +1 -1
  6. package/esm2015/lib/luigi-mock/luigi-mock.module.js +11 -5
  7. package/esm2015/lib/luigi.angular.support.module.js +1 -1
  8. package/esm2015/lib/route/luigi-activated-route-snapshot-helper.js +1 -1
  9. package/esm2015/lib/route/luigi-route-strategy.js +1 -1
  10. package/esm2015/lib/service/luigi-auto-routing.service.js +1 -1
  11. package/esm2015/lib/service/luigi-context-service.js +1 -1
  12. package/esm2015/lib/service/luigi-context.service.impl.js +1 -1
  13. package/esm2015/luigi-project-client-support-angular.js +1 -1
  14. package/esm2015/public-api.js +1 -1
  15. package/fesm2015/luigi-project-client-support-angular.js +16 -8
  16. package/fesm2015/luigi-project-client-support-angular.js.map +1 -1
  17. package/lib/component/luigi.preload.component.d.ts.map +1 -1
  18. package/lib/luigi-mock/luigi-mock.module.d.ts +1 -1
  19. package/lib/luigi-mock/luigi-mock.module.d.ts.map +1 -1
  20. package/lib/luigi.angular.support.module.d.ts.map +1 -1
  21. package/lib/route/luigi-activated-route-snapshot-helper.d.ts.map +1 -1
  22. package/lib/route/luigi-route-strategy.d.ts.map +1 -1
  23. package/lib/service/luigi-auto-routing.service.d.ts.map +1 -1
  24. package/lib/service/luigi-context-service.d.ts.map +1 -1
  25. package/lib/service/luigi-context.service.impl.d.ts.map +1 -1
  26. package/luigi-project-client-support-angular.d.ts.map +1 -1
  27. package/luigi-project-client-support-angular.metadata.json +1 -1
  28. package/package.json +1 -1
  29. package/public-api.d.ts.map +1 -1
@@ -1,8 +1,29 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@luigi-project/client')) :
3
3
  typeof define === 'function' && define.amd ? define('@luigi-project/client-support-angular', ['exports', '@angular/core', '@angular/router', 'rxjs', 'rxjs/operators', '@luigi-project/client'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['luigi-project'] = global['luigi-project'] || {}, global['luigi-project']['client-support-angular'] = {}), global.ng.core, global.ng.router, global.rxjs, global.rxjs.operators, global.client));
5
- }(this, (function (exports, i0, i1, rxjs, operators, client) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["luigi-project"] = global["luigi-project"] || {}, global["luigi-project"]["client-support-angular"] = {}), global.ng.core, global.ng.router, global.rxjs, global.rxjs.operators, global.client));
5
+ })(this, (function (exports, i0, i1, rxjs, operators, client) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
6
27
 
7
28
  var LuigiPreloadComponent = /** @class */ (function () {
8
29
  function LuigiPreloadComponent() {
@@ -23,6 +44,7 @@
23
44
  }
24
45
  return LuigiContextService;
25
46
  }());
47
+ exports.ILuigiContextTypes = void 0;
26
48
  (function (ILuigiContextTypes) {
27
49
  ILuigiContextTypes[ILuigiContextTypes["INIT"] = 0] = "INIT";
28
50
  ILuigiContextTypes[ILuigiContextTypes["UPDATE"] = 1] = "UPDATE";
@@ -86,7 +108,7 @@
86
108
  };
87
109
  return LuigiContextServiceImpl;
88
110
  }());
89
- LuigiContextServiceImpl.ɵprov = i0.ɵɵdefineInjectable({ factory: function LuigiContextServiceImpl_Factory() { return new LuigiContextServiceImpl(i0.ɵɵinject(i0.NgZone)); }, token: LuigiContextServiceImpl, providedIn: "root" });
111
+ LuigiContextServiceImpl.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LuigiContextServiceImpl_Factory() { return new LuigiContextServiceImpl(i0__namespace.ɵɵinject(i0__namespace.NgZone)); }, token: LuigiContextServiceImpl, providedIn: "root" });
90
112
  LuigiContextServiceImpl.decorators = [
91
113
  { type: i0.Injectable, args: [{
92
114
  providedIn: 'root'
@@ -223,7 +245,7 @@
223
245
  };
224
246
  return LuigiAutoRoutingService;
225
247
  }());
226
- LuigiAutoRoutingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LuigiAutoRoutingService_Factory() { return new LuigiAutoRoutingService(i0.ɵɵinject(i1.Router), i0.ɵɵinject(LuigiContextService)); }, token: LuigiAutoRoutingService, providedIn: "root" });
248
+ LuigiAutoRoutingService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LuigiAutoRoutingService_Factory() { return new LuigiAutoRoutingService(i0__namespace.ɵɵinject(i1__namespace.Router), i0__namespace.ɵɵinject(LuigiContextService)); }, token: LuigiAutoRoutingService, providedIn: "root" });
227
249
  LuigiAutoRoutingService.decorators = [
228
250
  { type: i0.Injectable, args: [{
229
251
  providedIn: 'root'
@@ -234,7 +256,7 @@
234
256
  { type: LuigiContextService }
235
257
  ]; };
236
258
 
237
- /*! *****************************************************************************
259
+ /******************************************************************************
238
260
  Copyright (c) Microsoft Corporation.
239
261
 
240
262
  Permission to use, copy, modify, and/or distribute this software for any
@@ -258,6 +280,8 @@
258
280
  return extendStatics(d, b);
259
281
  };
260
282
  function __extends(d, b) {
283
+ if (typeof b !== "function" && b !== null)
284
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
261
285
  extendStatics(d, b);
262
286
  function __() { this.constructor = d; }
263
287
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -394,7 +418,11 @@
394
418
  var __createBinding = Object.create ? (function (o, m, k, k2) {
395
419
  if (k2 === undefined)
396
420
  k2 = k;
397
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
421
+ var desc = Object.getOwnPropertyDescriptor(m, k);
422
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
423
+ desc = { enumerable: true, get: function () { return m[k]; } };
424
+ }
425
+ Object.defineProperty(o, k2, desc);
398
426
  }) : (function (o, m, k, k2) {
399
427
  if (k2 === undefined)
400
428
  k2 = k;
@@ -443,11 +471,13 @@
443
471
  }
444
472
  return ar;
445
473
  }
474
+ /** @deprecated */
446
475
  function __spread() {
447
476
  for (var ar = [], i = 0; i < arguments.length; i++)
448
477
  ar = ar.concat(__read(arguments[i]));
449
478
  return ar;
450
479
  }
480
+ /** @deprecated */
451
481
  function __spreadArrays() {
452
482
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
453
483
  s += arguments[i].length;
@@ -456,7 +486,17 @@
456
486
  r[k] = a[j];
457
487
  return r;
458
488
  }
459
- ;
489
+ function __spreadArray(to, from, pack) {
490
+ if (pack || arguments.length === 2)
491
+ for (var i = 0, l = from.length, ar; i < l; i++) {
492
+ if (ar || !(i in from)) {
493
+ if (!ar)
494
+ ar = Array.prototype.slice.call(from, 0, i);
495
+ ar[i] = from[i];
496
+ }
497
+ }
498
+ return to.concat(ar || Array.prototype.slice.call(from));
499
+ }
460
500
  function __await(v) {
461
501
  return this instanceof __await ? (this.v = v, this) : new __await(v);
462
502
  }
@@ -521,18 +561,26 @@
521
561
  function __importDefault(mod) {
522
562
  return (mod && mod.__esModule) ? mod : { default: mod };
523
563
  }
524
- function __classPrivateFieldGet(receiver, privateMap) {
525
- if (!privateMap.has(receiver)) {
526
- throw new TypeError("attempted to get private field on non-instance");
527
- }
528
- return privateMap.get(receiver);
564
+ function __classPrivateFieldGet(receiver, state, kind, f) {
565
+ if (kind === "a" && !f)
566
+ throw new TypeError("Private accessor was defined without a getter");
567
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
568
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
569
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
529
570
  }
530
- function __classPrivateFieldSet(receiver, privateMap, value) {
531
- if (!privateMap.has(receiver)) {
532
- throw new TypeError("attempted to set private field on non-instance");
533
- }
534
- privateMap.set(receiver, value);
535
- return value;
571
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
572
+ if (kind === "m")
573
+ throw new TypeError("Private method is not writable");
574
+ if (kind === "a" && !f)
575
+ throw new TypeError("Private accessor was defined without a setter");
576
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
577
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
578
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
579
+ }
580
+ function __classPrivateFieldIn(state, receiver) {
581
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
582
+ throw new TypeError("Cannot use 'in' operator on non-object");
583
+ return typeof state === "function" ? receiver === state : state.has(receiver);
536
584
  }
537
585
 
538
586
  var LuigiRouteStrategy = /** @class */ (function (_super) {
@@ -601,6 +649,8 @@
601
649
  { type: LuigiContextService }
602
650
  ]; };
603
651
 
652
+ // TODO: Use MockEngine directly from the package after released
653
+ // import { LuigiMockEngine } from '@luigi-project/testing-utilities';
604
654
  // @dynamic
605
655
  /*
606
656
  * This class mocks Luigi Core related functionality.
@@ -614,11 +664,11 @@
614
664
  * global message event of the window object and mocking the callback.
615
665
  * In the normal workflow this message would picked up by Luigi Core which then sends the response back.
616
666
  */
617
- var LuigiMockModule = /** @class */ (function () {
618
- function LuigiMockModule() {
667
+ var LuigiMockEngine = /** @class */ (function () {
668
+ function LuigiMockEngine() {
619
669
  }
620
670
  // Add a hook to the post message api to mock the LuigiCore response to the Client
621
- LuigiMockModule.initPostMessageHook = function () {
671
+ LuigiMockEngine.initPostMessageHook = function () {
622
672
  var _this = this;
623
673
  return function () { return __awaiter(_this, void 0, void 0, function () {
624
674
  return __generator(this, function (_a) {
@@ -629,6 +679,10 @@
629
679
  if (window.luigiMockEnvironment) {
630
680
  return [2 /*return*/];
631
681
  }
682
+ // mock target origin
683
+ if (window.LuigiClient) {
684
+ window.LuigiClient.setTargetOrigin('*');
685
+ }
632
686
  window.luigiMockEnvironment = {
633
687
  msgListener: function (e) {
634
688
  if (e.data.msg && (e.data.msg.startsWith('luigi.') || e.data.msg === 'storage')) {
@@ -644,7 +698,7 @@
644
698
  }, '*');
645
699
  }
646
700
  // vizualise retrieved event data
647
- LuigiMockModule.visualize(JSON.stringify(e.data));
701
+ LuigiMockEngine.visualize(JSON.stringify(e.data));
648
702
  // Check and run mocked callback if it exists
649
703
  var mockListener = window.luigiMockEnvironment.mockListeners[e.data.msg];
650
704
  if (mockListener) {
@@ -741,7 +795,7 @@
741
795
  * This method takes a data object of type 'any' and vizualizes a simple container
742
796
  * which holds data that is useful for e2e testing.
743
797
  */
744
- LuigiMockModule.visualize = function (data) {
798
+ LuigiMockEngine.visualize = function (data) {
745
799
  var luigiVisualizationContainer = document.querySelector('#luigi-debug-vis-cnt');
746
800
  // Construct element structure if not already constructed
747
801
  if (!luigiVisualizationContainer) {
@@ -755,14 +809,14 @@
755
809
  line.textContent = data;
756
810
  luigiVisualizationContainer.appendChild(line);
757
811
  };
758
- return LuigiMockModule;
812
+ return LuigiMockEngine;
759
813
  }());
760
- LuigiMockModule.decorators = [
814
+ LuigiMockEngine.decorators = [
761
815
  { type: i0.NgModule, args: [{
762
816
  providers: [
763
817
  {
764
818
  provide: i0.APP_INITIALIZER,
765
- useFactory: LuigiMockModule.initPostMessageHook,
819
+ useFactory: LuigiMockEngine.initPostMessageHook,
766
820
  multi: true
767
821
  }
768
822
  ]
@@ -781,16 +835,16 @@
781
835
  exports.LuigiAutoRoutingService = LuigiAutoRoutingService;
782
836
  exports.LuigiContextService = LuigiContextService;
783
837
  exports.LuigiContextServiceImpl = LuigiContextServiceImpl;
784
- exports.LuigiMockModule = LuigiMockModule;
838
+ exports.LuigiMockEngine = LuigiMockEngine;
785
839
  exports.LuigiPreloadComponent = LuigiPreloadComponent;
786
840
  exports.staticRoutes = staticRoutes;
787
- exports0 = ɵ0;
788
- exports1 = ɵ1;
789
- exports2 = ɵ2;
790
- exports3 = ɵ3;
791
- exports.ɵa = LuigiRouteStrategy;
841
+ exports["ɵ0"] = ɵ0;
842
+ exports["ɵ1"] = ɵ1;
843
+ exports["ɵ2"] = ɵ2;
844
+ exports["ɵ3"] = ɵ3;
845
+ exports["ɵa"] = LuigiRouteStrategy;
792
846
 
793
847
  Object.defineProperty(exports, '__esModule', { value: true });
794
848
 
795
- })));
849
+ }));
796
850
  //# sourceMappingURL=luigi-project-client-support-angular.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"luigi-project-client-support-angular.umd.js","sources":["../../projects/client-support-angular/src/lib/component/luigi.preload.component.ts","../../projects/client-support-angular/src/lib/service/luigi-context-service.ts","../../projects/client-support-angular/src/lib/service/luigi-context.service.impl.ts","../../projects/client-support-angular/src/lib/route/luigi-activated-route-snapshot-helper.ts","../../projects/client-support-angular/src/lib/service/luigi-auto-routing.service.ts","../../../node_modules/tslib/tslib.es6.js","../../projects/client-support-angular/src/lib/route/luigi-route-strategy.ts","../../../projects/client-support-angular/src/lib/luigi.angular.support.module.ts","../../projects/client-support-angular/src/lib/luigi-mock/luigi-mock.module.ts","../../../../projects/client-support-angular/src/public-api.ts","../../../../projects/client-support-angular/src/luigi-project-client-support-angular.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-client-support-angular',\n templateUrl: './luigi.preload.component.html',\n styles: []\n})\nexport class LuigiPreloadComponent implements OnInit {\n constructor() {}\n ngOnInit(): void {}\n}\n","import { Context } from '@luigi-project/client';\nimport { Observable } from 'rxjs';\n\nexport abstract class LuigiContextService {\n /**\n * Listen to context changes\n * Receives current value, even if the event was already dispatched earlier.\n */\n abstract contextObservable(): Observable<IContextMessage>;\n\n /**\n * Get latest set context object (can be null/undefined, if not set yet)\n */\n abstract getContext(): Context;\n\n /**\n * Get a promise that resolves when context is set.\n */\n abstract getContextAsync(): Promise<Context>;\n}\n\nexport enum ILuigiContextTypes {\n INIT,\n UPDATE\n}\n\nexport interface IContextMessage {\n contextType: ILuigiContextTypes; // will be init or update\n context: Context;\n}\n","import { Injectable, NgZone } from '@angular/core';\nimport { ReplaySubject, Observable } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { Context, addInitListener, addContextUpdateListener } from '@luigi-project/client';\nimport { IContextMessage, ILuigiContextTypes, LuigiContextService } from './luigi-context-service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LuigiContextServiceImpl implements LuigiContextService {\n private subject: ReplaySubject<IContextMessage> = new ReplaySubject<IContextMessage>(1);\n private currentContext: IContextMessage = (null as unknown) as IContextMessage;\n\n constructor(private zone: NgZone) {\n addInitListener(initContext => {\n this.addListener(ILuigiContextTypes.INIT, initContext);\n });\n addContextUpdateListener(updateContext => {\n this.addListener(ILuigiContextTypes.UPDATE, updateContext);\n });\n }\n\n public contextObservable(): Observable<IContextMessage> {\n return this.subject.asObservable();\n }\n\n /**\n * Get latest context object retrieved from luigi core application or none, if not yet set.\n */\n public getContext(): Context {\n return this.currentContext && this.currentContext.context;\n }\n\n /**\n * Get a promise that resolves when context is set.\n */\n public getContextAsync(): Promise<Context> {\n return new Promise<Context>((resolve, reject) => {\n if (this.getContext()) {\n resolve(this.getContext());\n } else {\n this.contextObservable()\n .pipe(first())\n .subscribe(ctx => {\n resolve(ctx.context);\n });\n }\n });\n }\n\n /**\n * Set current context\n */\n protected setContext(obj: IContextMessage): void {\n this.zone.run(() => {\n this.currentContext = obj;\n this.subject.next(obj);\n });\n }\n\n addListener(contextType: ILuigiContextTypes, context: Context): void {\n this.setContext({\n contextType,\n context\n } as IContextMessage);\n }\n}\n","import { ActivatedRouteSnapshot } from '@angular/router';\n\nexport class LuigiActivatedRouteSnapshotHelper {\n // tslint:disable-next-line:variable-name\n private static _current: ActivatedRouteSnapshot = (null as unknown) as ActivatedRouteSnapshot;\n\n static getCurrent(): ActivatedRouteSnapshot {\n return LuigiActivatedRouteSnapshotHelper._current;\n }\n\n static setCurrent(current: ActivatedRouteSnapshot): void {\n LuigiActivatedRouteSnapshotHelper._current = current;\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core';\nimport { OperatorFunction, PartialObserver, Subscription } from 'rxjs';\nimport { convertToParamMap, NavigationEnd, ParamMap, Router, RouterEvent } from '@angular/router';\nimport { linkManager, uxManager } from '@luigi-project/client';\nimport { filter } from 'rxjs/operators';\nimport { LuigiActivatedRouteSnapshotHelper } from '../route/luigi-activated-route-snapshot-helper';\nimport { LuigiContextService } from './luigi-context-service';\nimport { ActivatedRouteSnapshot } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LuigiAutoRoutingService implements OnDestroy {\n private subscription: Subscription = new Subscription();\n\n constructor(private router: Router, private luigiContextService: LuigiContextService) {\n this.subscription.add(\n this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this) as () => void)\n );\n }\n\n doFilter(): OperatorFunction<unknown, RouterEvent> {\n return filter((event): event is RouterEvent => {\n return !!(\n event instanceof NavigationEnd &&\n event.url &&\n event.url.length > 0 &&\n !(history.state && history.state.luigiInduced)\n );\n });\n }\n\n /**\n * This method will be take in consideration angular route that having in data object the paramter\n * fromVirtualTreeRoot: true, here an example:\n * {path: 'demo', component: DemoComponent, data:{fromVirtualTreeRoot: true}}\n * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';\n * in the case we will update the path in LuigiCore navigation, here an example\n * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}\n * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:\n * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}\n * @param event the NavigationEnd event\n */\n doSubscription(event: NavigationEnd): void {\n let current: ActivatedRouteSnapshot | null = LuigiActivatedRouteSnapshotHelper.getCurrent();\n\n if (!current) {\n current = this.router.routerState.root.snapshot;\n while (current?.children?.length > 0) {\n // handle multiple children\n let primary: ActivatedRouteSnapshot | null = null;\n\n current?.children.forEach(childSnapshot => {\n if (childSnapshot.outlet === 'primary') {\n primary = childSnapshot;\n }\n });\n if (primary) {\n current = primary;\n } else if (current.firstChild) {\n current = current.firstChild;\n } else {\n break;\n }\n }\n }\n if (current?.data) {\n const ux = uxManager();\n let lm = linkManager().withoutSync();\n let route: string | undefined;\n\n if (current.data.luigiRoute) {\n route = current.data.luigiRoute;\n\n if (current.params) {\n const pmap: ParamMap = convertToParamMap(current.params);\n pmap.keys.forEach(key => {\n const val = pmap.getAll(key).forEach(param => {\n route = route?.replace(':' + key, param);\n });\n });\n }\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug('Ignoring auto navigation request, luigi context not set');\n return;\n }\n if (current.data.fromContext === true) {\n lm = lm.fromClosestContext();\n } else {\n lm = lm.fromContext(current.data.fromContext);\n }\n }\n } else if (current.data.fromVirtualTreeRoot) {\n let url = event.url;\n const truncate = current.data.fromVirtualTreeRoot.truncate;\n if (truncate) {\n if (truncate.indexOf('*') === 0) {\n const index = url.indexOf(truncate.substr(1));\n url = url.substr(index + truncate.length - 1);\n } else if (url.indexOf(truncate) === 0) {\n url = url.substr(truncate.length);\n }\n }\n route = url;\n console.debug('Calling fromVirtualTreeRoot for url ==> ' + route);\n lm = lm.fromVirtualTreeRoot();\n }\n\n if (ux.isModal()) {\n if (current.data.updateModalDataPath) {\n lm.updateModalPathInternalNavigation(route as string, {}, current.data.addHistoryEntry);\n }\n } else if (route) {\n lm.navigate(route);\n }\n }\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { BaseRouteReuseStrategy } from '@angular/router';\nimport { ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';\nimport { LuigiActivatedRouteSnapshotHelper } from './luigi-activated-route-snapshot-helper';\n\nexport class LuigiRouteStrategy extends BaseRouteReuseStrategy {\n retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null {\n LuigiActivatedRouteSnapshotHelper.setCurrent(route);\n return super.retrieve(route);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RouteReuseStrategy, RouterModule, Routes } from '@angular/router';\nimport { LuigiPreloadComponent } from './component/luigi.preload.component';\nimport { LuigiContextService } from './service/luigi-context-service';\nimport { LuigiContextServiceImpl } from './service/luigi-context.service.impl';\nimport { LuigiAutoRoutingService } from './service/luigi-auto-routing.service';\nimport { LuigiRouteStrategy } from './route/luigi-route-strategy';\n\nexport const staticRoutes: Routes = [\n /** here an example if you want to specify that this component is a virtualTree element in Luigi Core navigation*/\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { fromVirtualTreeRoot: true }\n },\n /** here an example if you want to specify that this component it is a luigi component and u want to change the navigation in Luigi core*/\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { luigiRoute: '/home/reload' }\n },\n /** here an example if you want to reuse the component and not recreating every time you navigate to it (a singleton Component) It requires in your module to redefine */\n {\n path: 'luigi-client-support-preload=component',\n component: LuigiPreloadComponent,\n data: { reuse: true }\n },\n /** here an example if you want to update modalPathParam on internal navigation */\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { updateModalPathParam: true }\n }\n];\n\n@NgModule({\n declarations: [LuigiPreloadComponent],\n imports: [RouterModule.forChild(staticRoutes)],\n providers: [\n {\n provide: LuigiContextService,\n useClass: LuigiContextServiceImpl\n },\n {\n provide: RouteReuseStrategy,\n useClass: LuigiRouteStrategy\n }\n ],\n exports: [LuigiPreloadComponent]\n})\nexport class LuigiAngularSupportModule {\n constructor(navigation: LuigiAutoRoutingService, context: LuigiContextService) {}\n}\n","import { APP_INITIALIZER, NgModule } from '@angular/core';\n\n// @dynamic\n@NgModule({\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: LuigiMockModule.initPostMessageHook,\n multi: true\n }\n ]\n})\n\n/*\n * This class mocks Luigi Core related functionality.\n *\n * Micro Frontends that use Luigi Client would usually communicate with Luigi Core\n * back and forth. When testing Luigi Client based components, Luigi Core might\n * not be present which leads into limitations on integration/e2e testing for standalone\n * microfrontends.\n *\n * This module adds a hook to the window postMessage API by adding an event listener to the\n * global message event of the window object and mocking the callback.\n * In the normal workflow this message would picked up by Luigi Core which then sends the response back.\n */\nexport class LuigiMockModule {\n // Add a hook to the post message api to mock the LuigiCore response to the Client\n public static initPostMessageHook() {\n return async (): Promise<void> => {\n // Check if Luigi Client is running standalone\n if (window.parent === window) {\n console.debug('Detected standalone mode');\n\n // Check and skip if Luigi environment is already mocked\n if ((window as any).luigiMockEnvironment) {\n return;\n }\n\n (window as any).luigiMockEnvironment = {\n msgListener: function(e: any) {\n if (e.data.msg && (e.data.msg.startsWith('luigi.') || e.data.msg === 'storage')) {\n console.debug('Luigi msg', e.data);\n\n if (e.data.msg === 'luigi.get-context') {\n window.postMessage(\n {\n msg: 'luigi.init',\n emulated: true,\n internal: {\n viewStackSize: 1\n },\n context: e.data.context\n },\n '*'\n );\n }\n\n // vizualise retrieved event data\n LuigiMockModule.visualize(JSON.stringify(e.data));\n\n // Check and run mocked callback if it exists\n const mockListener = (window as any).luigiMockEnvironment.mockListeners[e.data.msg];\n if (mockListener) {\n mockListener(e);\n }\n }\n },\n mockListeners: {\n 'luigi.navigation.pathExists': (event: any) => {\n const mockData = window.sessionStorage.getItem('luigiMockData');\n let mockDataParsed = mockData ? JSON.parse(mockData) : undefined;\n const inputPath = event.data.data.link;\n const pathExists = mockDataParsed && mockDataParsed.pathExists && mockDataParsed.pathExists[inputPath];\n\n const response = {\n msg: 'luigi.navigation.pathExists.answer',\n data: {\n correlationId: event.data.data.id,\n pathExists: pathExists ? pathExists : false\n },\n emulated: true\n };\n window.postMessage(response, '*');\n },\n //ux\n 'luigi.ux.confirmationModal.show': (event: any) => {\n const response = {\n msg: 'luigi.ux.confirmationModal.hide',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.ux.alert.show': (event: any) => {\n const response = {\n msg: 'luigi.ux.alert.hide',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.ux.set-current-locale': (event: any) => {\n const response = {\n msg: 'luigi.current-locale-changed',\n currentLocale: event.data.data.currentLocale,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n // linkManager\n 'luigi.navigation.open': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.close': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.collapse': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.expand': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n // storage\n storage: () => {}\n }\n };\n\n // Listen to the global 'message' event of the window object\n window.addEventListener('message', (window as any).luigiMockEnvironment.msgListener);\n }\n };\n }\n\n /*\n * This method takes a data object of type 'any' and vizualizes a simple container\n * which holds data that is useful for e2e testing.\n */\n public static visualize(data: string): void {\n let luigiVisualizationContainer: Element | null = document.querySelector('#luigi-debug-vis-cnt');\n // Construct element structure if not already constructed\n if (!luigiVisualizationContainer) {\n luigiVisualizationContainer = document.createElement('div');\n luigiVisualizationContainer.setAttribute('id', 'luigi-debug-vis-cnt');\n // Hide the added DOM element to avoid interferring/overlapping with other elements during testing.\n luigiVisualizationContainer.setAttribute('style', 'display:none');\n document.body.appendChild(luigiVisualizationContainer);\n }\n const line: HTMLDivElement = document.createElement('div');\n line.textContent = data;\n luigiVisualizationContainer.appendChild(line);\n }\n}\n","/*\n * Public API Surface of client-support-angular\n */\n\nexport * from './lib/component/luigi.preload.component';\nexport * from './lib/luigi.angular.support.module';\nexport * from './lib/service/luigi-context-service';\nexport * from './lib/service/luigi-context.service.impl';\nexport * from './lib/service/luigi-auto-routing.service';\nexport * from './lib/luigi-mock/luigi-mock.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {LuigiRouteStrategy as ɵa} from './lib/route/luigi-route-strategy';"],"names":["Component","ILuigiContextTypes","ReplaySubject","addInitListener","addContextUpdateListener","first","Injectable","NgZone","Subscription","filter","NavigationEnd","uxManager","linkManager","convertToParamMap","Router","BaseRouteReuseStrategy","NgModule","RouterModule","RouteReuseStrategy","APP_INITIALIZER"],"mappings":";;;;;;;QAQE;SAAgB;QAChB,wCAAQ,GAAR,eAAmB;;;;gBAPpBA,YAAS,SAAC;oBACT,QAAQ,EAAE,4BAA4B;oBACtC,mDAA6C;iBAE9C;;;;;QCHD;SAgBC;kCAAA;KAAA,IAAA;IAED,WAAY,kBAAkB;QAC5B,2DAAI,CAAA;QACJ,+DAAM,CAAA;IACR,CAAC,EAHWC,0BAAkB,KAAlBA,0BAAkB;;;QCR5B,iCAAoB,IAAY;YAAhC,iBAOC;YAPmB,SAAI,GAAJ,IAAI,CAAQ;YAHxB,YAAO,GAAmC,IAAIC,kBAAa,CAAkB,CAAC,CAAC,CAAC;YAChF,mBAAc,GAAqB,IAAmC,CAAC;YAG7EC,sBAAe,CAAC,UAAA,WAAW;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AW,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;iCACnC;;gCAED,OAAO,EAAE,eAAQ;6BAClB;yBACF,CAAC;;wBAGF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAG,MAAc,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;qBACtF;;;aACF,CAAA,GAAA,CAAC;SACH;;;;;QAMa,yBAAS,GAAhB,UAAiB,IAAY;YAClC,IAAI,2BAA2B,GAAmB,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;;YAEjG,IAAI,CAAC,2BAA2B,EAAE;gBAChC,2BAA2B,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBAC5D,2BAA2B,CAAC,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;;gBAEtE,2BAA2B,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;gBAClE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;aACxD;YACD,IAAM,IAAI,GAAmB,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,2BAA2B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SAC/C;;;;gBAvKFF,WAAQ,SAAC;oBACR,SAAS,EAAE;wBACT;4BACE,OAAO,EAAEG,kBAAe;4BACxB,UAAU,EAAE,eAAe,CAAC,mBAAmB;4BAC/C,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF;;;ICXD;;;;ICAA;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"luigi-project-client-support-angular.umd.js","sources":["../../../projects/client-support-angular/src/lib/component/luigi.preload.component.ts","../../../projects/client-support-angular/src/lib/service/luigi-context-service.ts","../../../projects/client-support-angular/src/lib/service/luigi-context.service.impl.ts","../../../projects/client-support-angular/src/lib/route/luigi-activated-route-snapshot-helper.ts","../../../projects/client-support-angular/src/lib/service/luigi-auto-routing.service.ts","../../../node_modules/tslib/tslib.es6.js","../../../projects/client-support-angular/src/lib/route/luigi-route-strategy.ts","../../../projects/client-support-angular/src/lib/luigi.angular.support.module.ts","../../../projects/client-support-angular/src/lib/luigi-mock/luigi-mock.module.ts","../../../projects/client-support-angular/src/public-api.ts","../../../projects/client-support-angular/src/luigi-project-client-support-angular.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-client-support-angular',\n templateUrl: './luigi.preload.component.html',\n styles: []\n})\nexport class LuigiPreloadComponent implements OnInit {\n constructor() {}\n ngOnInit(): void {}\n}\n","import { Context } from '@luigi-project/client';\nimport { Observable } from 'rxjs';\n\nexport abstract class LuigiContextService {\n /**\n * Listen to context changes\n * Receives current value, even if the event was already dispatched earlier.\n */\n abstract contextObservable(): Observable<IContextMessage>;\n\n /**\n * Get latest set context object (can be null/undefined, if not set yet)\n */\n abstract getContext(): Context;\n\n /**\n * Get a promise that resolves when context is set.\n */\n abstract getContextAsync(): Promise<Context>;\n}\n\nexport enum ILuigiContextTypes {\n INIT,\n UPDATE\n}\n\nexport interface IContextMessage {\n contextType: ILuigiContextTypes; // will be init or update\n context: Context;\n}\n","import { Injectable, NgZone } from '@angular/core';\nimport { ReplaySubject, Observable } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { Context, addInitListener, addContextUpdateListener } from '@luigi-project/client';\nimport { IContextMessage, ILuigiContextTypes, LuigiContextService } from './luigi-context-service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LuigiContextServiceImpl implements LuigiContextService {\n private subject: ReplaySubject<IContextMessage> = new ReplaySubject<IContextMessage>(1);\n private currentContext: IContextMessage = (null as unknown) as IContextMessage;\n\n constructor(private zone: NgZone) {\n addInitListener(initContext => {\n this.addListener(ILuigiContextTypes.INIT, initContext);\n });\n addContextUpdateListener(updateContext => {\n this.addListener(ILuigiContextTypes.UPDATE, updateContext);\n });\n }\n\n public contextObservable(): Observable<IContextMessage> {\n return this.subject.asObservable();\n }\n\n /**\n * Get latest context object retrieved from luigi core application or none, if not yet set.\n */\n public getContext(): Context {\n return this.currentContext && this.currentContext.context;\n }\n\n /**\n * Get a promise that resolves when context is set.\n */\n public getContextAsync(): Promise<Context> {\n return new Promise<Context>((resolve, reject) => {\n if (this.getContext()) {\n resolve(this.getContext());\n } else {\n this.contextObservable()\n .pipe(first())\n .subscribe(ctx => {\n resolve(ctx.context);\n });\n }\n });\n }\n\n /**\n * Set current context\n */\n protected setContext(obj: IContextMessage): void {\n this.zone.run(() => {\n this.currentContext = obj;\n this.subject.next(obj);\n });\n }\n\n addListener(contextType: ILuigiContextTypes, context: Context): void {\n this.setContext({\n contextType,\n context\n } as IContextMessage);\n }\n}\n","import { ActivatedRouteSnapshot } from '@angular/router';\n\nexport class LuigiActivatedRouteSnapshotHelper {\n // tslint:disable-next-line:variable-name\n private static _current: ActivatedRouteSnapshot = (null as unknown) as ActivatedRouteSnapshot;\n\n static getCurrent(): ActivatedRouteSnapshot {\n return LuigiActivatedRouteSnapshotHelper._current;\n }\n\n static setCurrent(current: ActivatedRouteSnapshot): void {\n LuigiActivatedRouteSnapshotHelper._current = current;\n }\n}\n","import { Injectable, OnDestroy } from '@angular/core';\nimport { OperatorFunction, PartialObserver, Subscription } from 'rxjs';\nimport { convertToParamMap, NavigationEnd, ParamMap, Router, RouterEvent } from '@angular/router';\nimport { linkManager, uxManager } from '@luigi-project/client';\nimport { filter } from 'rxjs/operators';\nimport { LuigiActivatedRouteSnapshotHelper } from '../route/luigi-activated-route-snapshot-helper';\nimport { LuigiContextService } from './luigi-context-service';\nimport { ActivatedRouteSnapshot } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LuigiAutoRoutingService implements OnDestroy {\n private subscription: Subscription = new Subscription();\n\n constructor(private router: Router, private luigiContextService: LuigiContextService) {\n this.subscription.add(\n this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this) as () => void)\n );\n }\n\n doFilter(): OperatorFunction<unknown, RouterEvent> {\n return filter((event): event is RouterEvent => {\n return !!(\n event instanceof NavigationEnd &&\n event.url &&\n event.url.length > 0 &&\n !(history.state && history.state.luigiInduced)\n );\n });\n }\n\n /**\n * This method will be take in consideration angular route that having in data object the paramter\n * fromVirtualTreeRoot: true, here an example:\n * {path: 'demo', component: DemoComponent, data:{fromVirtualTreeRoot: true}}\n * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';\n * in the case we will update the path in LuigiCore navigation, here an example\n * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}\n * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:\n * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}\n * @param event the NavigationEnd event\n */\n doSubscription(event: NavigationEnd): void {\n let current: ActivatedRouteSnapshot | null = LuigiActivatedRouteSnapshotHelper.getCurrent();\n\n if (!current) {\n current = this.router.routerState.root.snapshot;\n while (current?.children?.length > 0) {\n // handle multiple children\n let primary: ActivatedRouteSnapshot | null = null;\n\n current?.children.forEach(childSnapshot => {\n if (childSnapshot.outlet === 'primary') {\n primary = childSnapshot;\n }\n });\n if (primary) {\n current = primary;\n } else if (current.firstChild) {\n current = current.firstChild;\n } else {\n break;\n }\n }\n }\n if (current?.data) {\n const ux = uxManager();\n let lm = linkManager().withoutSync();\n let route: string | undefined;\n\n if (current.data.luigiRoute) {\n route = current.data.luigiRoute;\n\n if (current.params) {\n const pmap: ParamMap = convertToParamMap(current.params);\n pmap.keys.forEach(key => {\n const val = pmap.getAll(key).forEach(param => {\n route = route?.replace(':' + key, param);\n });\n });\n }\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug('Ignoring auto navigation request, luigi context not set');\n return;\n }\n if (current.data.fromContext === true) {\n lm = lm.fromClosestContext();\n } else {\n lm = lm.fromContext(current.data.fromContext);\n }\n }\n } else if (current.data.fromVirtualTreeRoot) {\n let url = event.url;\n const truncate = current.data.fromVirtualTreeRoot.truncate;\n if (truncate) {\n if (truncate.indexOf('*') === 0) {\n const index = url.indexOf(truncate.substr(1));\n url = url.substr(index + truncate.length - 1);\n } else if (url.indexOf(truncate) === 0) {\n url = url.substr(truncate.length);\n }\n }\n route = url;\n console.debug('Calling fromVirtualTreeRoot for url ==> ' + route);\n lm = lm.fromVirtualTreeRoot();\n }\n\n if (ux.isModal()) {\n if (current.data.updateModalDataPath) {\n lm.updateModalPathInternalNavigation(route as string, {}, current.data.addHistoryEntry);\n }\n } else if (route) {\n lm.navigate(route);\n }\n }\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { BaseRouteReuseStrategy } from '@angular/router';\nimport { ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';\nimport { LuigiActivatedRouteSnapshotHelper } from './luigi-activated-route-snapshot-helper';\n\nexport class LuigiRouteStrategy extends BaseRouteReuseStrategy {\n retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null {\n LuigiActivatedRouteSnapshotHelper.setCurrent(route);\n return super.retrieve(route);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RouteReuseStrategy, RouterModule, Routes } from '@angular/router';\nimport { LuigiPreloadComponent } from './component/luigi.preload.component';\nimport { LuigiContextService } from './service/luigi-context-service';\nimport { LuigiContextServiceImpl } from './service/luigi-context.service.impl';\nimport { LuigiAutoRoutingService } from './service/luigi-auto-routing.service';\nimport { LuigiRouteStrategy } from './route/luigi-route-strategy';\n\nexport const staticRoutes: Routes = [\n /** here an example if you want to specify that this component is a virtualTree element in Luigi Core navigation*/\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { fromVirtualTreeRoot: true }\n },\n /** here an example if you want to specify that this component it is a luigi component and u want to change the navigation in Luigi core*/\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { luigiRoute: '/home/reload' }\n },\n /** here an example if you want to reuse the component and not recreating every time you navigate to it (a singleton Component) It requires in your module to redefine */\n {\n path: 'luigi-client-support-preload=component',\n component: LuigiPreloadComponent,\n data: { reuse: true }\n },\n /** here an example if you want to update modalPathParam on internal navigation */\n {\n path: 'luigi-client-support-preload',\n component: LuigiPreloadComponent,\n data: { updateModalPathParam: true }\n }\n];\n\n@NgModule({\n declarations: [LuigiPreloadComponent],\n imports: [RouterModule.forChild(staticRoutes)],\n providers: [\n {\n provide: LuigiContextService,\n useClass: LuigiContextServiceImpl\n },\n {\n provide: RouteReuseStrategy,\n useClass: LuigiRouteStrategy\n }\n ],\n exports: [LuigiPreloadComponent]\n})\nexport class LuigiAngularSupportModule {\n constructor(navigation: LuigiAutoRoutingService, context: LuigiContextService) {}\n}\n","import { APP_INITIALIZER, NgModule } from '@angular/core';\n// TODO: Use MockEngine directly from the package after released\n// import { LuigiMockEngine } from '@luigi-project/testing-utilities';\n\n// @dynamic\n@NgModule({\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: LuigiMockEngine.initPostMessageHook,\n multi: true\n }\n ]\n})\n/*\n * This class mocks Luigi Core related functionality.\n *\n * Micro Frontends that use Luigi Client would usually communicate with Luigi Core\n * back and forth. When testing Luigi Client based components, Luigi Core might\n * not be present which leads into limitations on integration/e2e testing for standalone\n * microfrontends.\n *\n * This module adds a hook to the window postMessage API by adding an event listener to the\n * global message event of the window object and mocking the callback.\n * In the normal workflow this message would picked up by Luigi Core which then sends the response back.\n */\nexport class LuigiMockEngine {\n // Add a hook to the post message api to mock the LuigiCore response to the Client\n public static initPostMessageHook() {\n return async (): Promise<void> => {\n // Check if Luigi Client is running standalone\n if (window.parent === window) {\n console.debug('Detected standalone mode');\n\n // Check and skip if Luigi environment is already mocked\n if ((window as any).luigiMockEnvironment) {\n return;\n }\n\n // mock target origin\n if ((window as any).LuigiClient) {\n (window as any).LuigiClient.setTargetOrigin('*');\n }\n\n (window as any).luigiMockEnvironment = {\n msgListener: function(e: any) {\n if (e.data.msg && (e.data.msg.startsWith('luigi.') || e.data.msg === 'storage')) {\n console.debug('Luigi msg', e.data);\n\n if (e.data.msg === 'luigi.get-context') {\n window.postMessage(\n {\n msg: 'luigi.init',\n emulated: true,\n internal: {\n viewStackSize: 1\n },\n context: e.data.context\n },\n '*'\n );\n }\n\n // vizualise retrieved event data\n LuigiMockEngine.visualize(JSON.stringify(e.data));\n\n // Check and run mocked callback if it exists\n const mockListener = (window as any).luigiMockEnvironment.mockListeners[e.data.msg];\n if (mockListener) {\n mockListener(e);\n }\n }\n },\n mockListeners: {\n 'luigi.navigation.pathExists': (event: any) => {\n const mockData = window.sessionStorage.getItem('luigiMockData');\n let mockDataParsed = mockData ? JSON.parse(mockData) : undefined;\n const inputPath = event.data.data.link;\n const pathExists = mockDataParsed && mockDataParsed.pathExists && mockDataParsed.pathExists[inputPath];\n\n const response = {\n msg: 'luigi.navigation.pathExists.answer',\n data: {\n correlationId: event.data.data.id,\n pathExists: pathExists ? pathExists : false\n },\n emulated: true\n };\n window.postMessage(response, '*');\n },\n //ux\n 'luigi.ux.confirmationModal.show': (event: any) => {\n const response = {\n msg: 'luigi.ux.confirmationModal.hide',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.ux.alert.show': (event: any) => {\n const response = {\n msg: 'luigi.ux.alert.hide',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.ux.set-current-locale': (event: any) => {\n const response = {\n msg: 'luigi.current-locale-changed',\n currentLocale: event.data.data.currentLocale,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n // linkManager\n 'luigi.navigation.open': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.close': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.collapse': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n 'luigi.navigation.splitview.expand': (event: any) => {\n const response = {\n msg: 'luigi.navigate.ok',\n data: event.data,\n emulated: true\n };\n window.postMessage(response, '*');\n },\n // storage\n storage: () => {}\n }\n };\n\n // Listen to the global 'message' event of the window object\n window.addEventListener('message', (window as any).luigiMockEnvironment.msgListener);\n }\n };\n }\n\n /*\n * This method takes a data object of type 'any' and vizualizes a simple container\n * which holds data that is useful for e2e testing.\n */\n public static visualize(data: string): void {\n let luigiVisualizationContainer: Element | null = document.querySelector('#luigi-debug-vis-cnt');\n // Construct element structure if not already constructed\n if (!luigiVisualizationContainer) {\n luigiVisualizationContainer = document.createElement('div');\n luigiVisualizationContainer.setAttribute('id', 'luigi-debug-vis-cnt');\n // Hide the added DOM element to avoid interferring/overlapping with other elements during testing.\n luigiVisualizationContainer.setAttribute('style', 'display:none');\n document.body.appendChild(luigiVisualizationContainer);\n }\n const line: HTMLDivElement = document.createElement('div');\n line.textContent = data;\n luigiVisualizationContainer.appendChild(line);\n }\n}\n","/*\n * Public API Surface of client-support-angular\n */\n\nexport * from './lib/component/luigi.preload.component';\nexport * from './lib/luigi.angular.support.module';\nexport * from './lib/service/luigi-context-service';\nexport * from './lib/service/luigi-context.service.impl';\nexport * from './lib/service/luigi-auto-routing.service';\nexport * from './lib/luigi-mock/luigi-mock.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {LuigiRouteStrategy as ɵa} from './lib/route/luigi-route-strategy';"],"names":["Component","ILuigiContextTypes","ReplaySubject","addInitListener","addContextUpdateListener","first","Injectable","NgZone","Subscription","filter","NavigationEnd","uxManager","linkManager","convertToParamMap","Router","BaseRouteReuseStrategy","NgModule","RouterModule","RouteReuseStrategy","APP_INITIALIZER"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,QAAA,qBAAA,kBAAA,YAAA;IACE,IAAA,SAAA,qBAAA,GAAA;SAAgB;QAChB,qBAAQ,CAAA,SAAA,CAAA,QAAA,GAAR,eAAmB,CAAA;;;;IAPpB,IAAA,EAAA,IAAA,EAAAA,YAAS,EAAC,IAAA,EAAA,CAAA;IACT,gBAAA,QAAQ,EAAE,4BAA4B;IACtC,gBAAA,QAA6C,EAAA,yCAAA;IAE9C,aAAA,EAAA,EAAA;;;;ACHD,QAAA,mBAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,mBAAA,GAAA;SAgBC;QAAA,OAAA,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AA2B,EAAE;IAChC,YAAA,2BAA2B,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5D,YAAA,2BAA2B,CAAC,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;;IAEtE,YAAA,2BAA2B,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAClE,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IACxD,SAAA;YACD,IAAM,IAAI,GAAmB,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3D,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IACxB,QAAA,2BAA2B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SAC/C,CAAA;;;;IA3KF,IAAA,EAAA,IAAA,EAAAF,WAAQ,EAAC,IAAA,EAAA,CAAA;IACR,gBAAA,SAAS,EAAE;IACT,oBAAA;IACE,wBAAA,OAAO,EAAEG,kBAAe;4BACxB,UAAU,EAAE,eAAe,CAAC,mBAAmB;IAC/C,wBAAA,KAAK,EAAE,IAAI;IACZ,qBAAA;IACF,iBAAA;IACF,aAAA,EAAA,EAAA;;;ICbD;;IAEG;;ICFH;;IAEG;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@luigi-project/client")):"function"==typeof define&&define.amd?define("@luigi-project/client-support-angular",["exports","@angular/core","@angular/router","rxjs","rxjs/operators","@luigi-project/client"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["luigi-project"]=t["luigi-project"]||{},t["luigi-project"]["client-support-angular"]={}),t.ng.core,t.ng.router,t.rxjs,t.rxjs.operators,t.client)}(this,(function(t,e,n,o,i,r){"use strict";var a=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();a.decorators=[{type:e.Component,args:[{selector:"lib-client-support-angular",template:'<p luigipreload="luigipreload"></p>\n'}]}],a.ctorParameters=function(){return[]};var u,s=function(){};(u=t.ILuigiContextTypes||(t.ILuigiContextTypes={}))[u.INIT=0]="INIT",u[u.UPDATE=1]="UPDATE";var c=function(){function e(e){var n=this;this.zone=e,this.subject=new o.ReplaySubject(1),this.currentContext=null,r.addInitListener((function(e){n.addListener(t.ILuigiContextTypes.INIT,e)})),r.addContextUpdateListener((function(e){n.addListener(t.ILuigiContextTypes.UPDATE,e)}))}return e.prototype.contextObservable=function(){return this.subject.asObservable()},e.prototype.getContext=function(){return this.currentContext&&this.currentContext.context},e.prototype.getContextAsync=function(){var t=this;return new Promise((function(e,n){t.getContext()?e(t.getContext()):t.contextObservable().pipe(i.first()).subscribe((function(t){e(t.context)}))}))},e.prototype.setContext=function(t){var e=this;this.zone.run((function(){e.currentContext=t,e.subject.next(t)}))},e.prototype.addListener=function(t,e){this.setContext({contextType:t,context:e})},e}();c.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new c(e.ɵɵinject(e.NgZone))},token:c,providedIn:"root"}),c.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],c.ctorParameters=function(){return[{type:e.NgZone}]};var l=function(){function t(){}return t.getCurrent=function(){return t._current},t.setCurrent=function(e){t._current=e},t}();l._current=null;var d=function(){function t(t,e){this.router=t,this.luigiContextService=e,this.subscription=new o.Subscription,this.subscription.add(this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this)))}return t.prototype.doFilter=function(){return i.filter((function(t){return!(!(t instanceof n.NavigationEnd&&t.url&&t.url.length>0)||history.state&&history.state.luigiInduced)}))},t.prototype.doSubscription=function(t){var e,o=l.getCurrent();if(!o){o=this.router.routerState.root.snapshot;for(var i=function(){var t=null;if(null==o||o.children.forEach((function(e){"primary"===e.outlet&&(t=e)})),t)o=t;else{if(!o.firstChild)return"break";o=o.firstChild}};(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)>0;){if("break"===i())break}}if(null==o?void 0:o.data){var a,u=r.uxManager(),s=r.linkManager().withoutSync();if(o.data.luigiRoute){if(a=o.data.luigiRoute,o.params){var c=n.convertToParamMap(o.params);c.keys.forEach((function(t){c.getAll(t).forEach((function(e){a=null==a?void 0:a.replace(":"+t,e)}))}))}if(o.data.fromContext){if(!this.luigiContextService.getContext())return void console.debug("Ignoring auto navigation request, luigi context not set");s=!0===o.data.fromContext?s.fromClosestContext():s.fromContext(o.data.fromContext)}}else if(o.data.fromVirtualTreeRoot){var d=t.url,p=o.data.fromVirtualTreeRoot.truncate;if(p)if(0===p.indexOf("*")){var g=d.indexOf(p.substr(1));d=d.substr(g+p.length-1)}else 0===d.indexOf(p)&&(d=d.substr(p.length));a=d,console.debug("Calling fromVirtualTreeRoot for url ==> "+a),s=s.fromVirtualTreeRoot()}u.isModal()?o.data.updateModalDataPath&&s.updateModalPathInternalNavigation(a,{},o.data.addHistoryEntry):a&&s.navigate(a)}},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();d.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new d(e.ɵɵinject(n.Router),e.ɵɵinject(s))},token:d,providedIn:"root"}),d.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:n.Router},{type:s}]};
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function g(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{s(o.next(t))}catch(t){r(t)}}function u(t){try{s(o.throw(t))}catch(t){r(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((o=o.apply(t,e||[])).next())}))}function f(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}}Object.create;Object.create;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.retrieve=function(e){return l.setCurrent(e),t.prototype.retrieve.call(this,e)},e}(n.BaseRouteReuseStrategy),h={fromVirtualTreeRoot:!0},m={luigiRoute:"/home/reload"},y={reuse:!0},x={updateModalPathParam:!0},b=[{path:"luigi-client-support-preload",component:a,data:h},{path:"luigi-client-support-preload",component:a,data:m},{path:"luigi-client-support-preload=component",component:a,data:y},{path:"luigi-client-support-preload",component:a,data:x}],w=function(t,e){};w.decorators=[{type:e.NgModule,args:[{declarations:[a],imports:[n.RouterModule.forChild(b)],providers:[{provide:s,useClass:c},{provide:n.RouteReuseStrategy,useClass:v}],exports:[a]}]}],w.ctorParameters=function(){return[{type:d},{type:s}]};var C=function(){function t(){}return t.initPostMessageHook=function(){var e=this;return function(){return g(e,void 0,void 0,(function(){return f(this,(function(e){if(window.parent===window){if(console.debug("Detected standalone mode"),window.luigiMockEnvironment)return[2];window.luigiMockEnvironment={msgListener:function(e){if(e.data.msg&&(e.data.msg.startsWith("luigi.")||"storage"===e.data.msg)){console.debug("Luigi msg",e.data),"luigi.get-context"===e.data.msg&&window.postMessage({msg:"luigi.init",emulated:!0,internal:{viewStackSize:1},context:e.data.context},"*"),t.visualize(JSON.stringify(e.data));var n=window.luigiMockEnvironment.mockListeners[e.data.msg];n&&n(e)}},mockListeners:{"luigi.navigation.pathExists":function(t){var e=window.sessionStorage.getItem("luigiMockData"),n=e?JSON.parse(e):void 0,o=t.data.data.link,i=n&&n.pathExists&&n.pathExists[o],r={msg:"luigi.navigation.pathExists.answer",data:{correlationId:t.data.data.id,pathExists:i||!1},emulated:!0};window.postMessage(r,"*")},"luigi.ux.confirmationModal.show":function(t){var e={msg:"luigi.ux.confirmationModal.hide",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.ux.alert.show":function(t){var e={msg:"luigi.ux.alert.hide",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.ux.set-current-locale":function(t){var e={msg:"luigi.current-locale-changed",currentLocale:t.data.data.currentLocale,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.open":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.close":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.collapse":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.expand":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},storage:function(){}}},window.addEventListener("message",window.luigiMockEnvironment.msgListener)}return[2]}))}))}},t.visualize=function(t){var e=document.querySelector("#luigi-debug-vis-cnt");e||((e=document.createElement("div")).setAttribute("id","luigi-debug-vis-cnt"),e.setAttribute("style","display:none"),document.body.appendChild(e));var n=document.createElement("div");n.textContent=t,e.appendChild(n)},t}();C.decorators=[{type:e.NgModule,args:[{providers:[{provide:e.APP_INITIALIZER,useFactory:C.initPostMessageHook,multi:!0}]}]}],t.LuigiAngularSupportModule=w,t.LuigiAutoRoutingService=d,t.LuigiContextService=s,t.LuigiContextServiceImpl=c,t.LuigiMockModule=C,t.LuigiPreloadComponent=a,t.staticRoutes=b,t.ɵ0=h,t.ɵ1=m,t.ɵ2=y,t.ɵ3=x,t.ɵa=v,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@luigi-project/client")):"function"==typeof define&&define.amd?define("@luigi-project/client-support-angular",["exports","@angular/core","@angular/router","rxjs","rxjs/operators","@luigi-project/client"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["luigi-project"]=t["luigi-project"]||{},t["luigi-project"]["client-support-angular"]={}),t.ng.core,t.ng.router,t.rxjs,t.rxjs.operators,t.client)}(this,(function(t,e,n,o,i,r){"use strict";function a(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var u=a(e),s=a(n),c=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();c.decorators=[{type:e.Component,args:[{selector:"lib-client-support-angular",template:'<p luigipreload="luigipreload"></p>\n'}]}],c.ctorParameters=function(){return[]};var l,d=function(){};t.ILuigiContextTypes=void 0,(l=t.ILuigiContextTypes||(t.ILuigiContextTypes={}))[l.INIT=0]="INIT",l[l.UPDATE=1]="UPDATE";var p=function(){function e(e){var n=this;this.zone=e,this.subject=new o.ReplaySubject(1),this.currentContext=null,r.addInitListener((function(e){n.addListener(t.ILuigiContextTypes.INIT,e)})),r.addContextUpdateListener((function(e){n.addListener(t.ILuigiContextTypes.UPDATE,e)}))}return e.prototype.contextObservable=function(){return this.subject.asObservable()},e.prototype.getContext=function(){return this.currentContext&&this.currentContext.context},e.prototype.getContextAsync=function(){var t=this;return new Promise((function(e,n){t.getContext()?e(t.getContext()):t.contextObservable().pipe(i.first()).subscribe((function(t){e(t.context)}))}))},e.prototype.setContext=function(t){var e=this;this.zone.run((function(){e.currentContext=t,e.subject.next(t)}))},e.prototype.addListener=function(t,e){this.setContext({contextType:t,context:e})},e}();p.ɵprov=u.ɵɵdefineInjectable({factory:function(){return new p(u.ɵɵinject(u.NgZone))},token:p,providedIn:"root"}),p.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],p.ctorParameters=function(){return[{type:e.NgZone}]};var g=function(){function t(){}return t.getCurrent=function(){return t._current},t.setCurrent=function(e){t._current=e},t}();g._current=null;var f=function(){function t(t,e){this.router=t,this.luigiContextService=e,this.subscription=new o.Subscription,this.subscription.add(this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this)))}return t.prototype.doFilter=function(){return i.filter((function(t){return!(!(t instanceof n.NavigationEnd&&t.url&&t.url.length>0)||history.state&&history.state.luigiInduced)}))},t.prototype.doSubscription=function(t){var e,o=g.getCurrent();if(!o){o=this.router.routerState.root.snapshot;for(var i=function(){var t=null;if(null==o||o.children.forEach((function(e){"primary"===e.outlet&&(t=e)})),t)o=t;else{if(!o.firstChild)return"break";o=o.firstChild}};(null===(e=null==o?void 0:o.children)||void 0===e?void 0:e.length)>0;){if("break"===i())break}}if(null==o?void 0:o.data){var a,u=r.uxManager(),s=r.linkManager().withoutSync();if(o.data.luigiRoute){if(a=o.data.luigiRoute,o.params){var c=n.convertToParamMap(o.params);c.keys.forEach((function(t){c.getAll(t).forEach((function(e){a=null==a?void 0:a.replace(":"+t,e)}))}))}if(o.data.fromContext){if(!this.luigiContextService.getContext())return void console.debug("Ignoring auto navigation request, luigi context not set");s=!0===o.data.fromContext?s.fromClosestContext():s.fromContext(o.data.fromContext)}}else if(o.data.fromVirtualTreeRoot){var l=t.url,d=o.data.fromVirtualTreeRoot.truncate;if(d)if(0===d.indexOf("*")){var p=l.indexOf(d.substr(1));l=l.substr(p+d.length-1)}else 0===l.indexOf(d)&&(l=l.substr(d.length));a=l,console.debug("Calling fromVirtualTreeRoot for url ==> "+a),s=s.fromVirtualTreeRoot()}u.isModal()?o.data.updateModalDataPath&&s.updateModalPathInternalNavigation(a,{},o.data.addHistoryEntry):a&&s.navigate(a)}},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();f.ɵprov=u.ɵɵdefineInjectable({factory:function(){return new f(u.ɵɵinject(s.Router),u.ɵɵinject(d))},token:f,providedIn:"root"}),f.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],f.ctorParameters=function(){return[{type:n.Router},{type:d}]};var v=function(t,e){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},v(t,e)};function h(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{s(o.next(t))}catch(t){r(t)}}function u(t){try{s(o.throw(t))}catch(t){r(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}s((o=o.apply(t,e||[])).next())}))}function m(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}}Object.create;Object.create;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.retrieve=function(e){return g.setCurrent(e),t.prototype.retrieve.call(this,e)},e}(n.BaseRouteReuseStrategy),b={fromVirtualTreeRoot:!0},x={luigiRoute:"/home/reload"},w={reuse:!0},C={updateModalPathParam:!0},j=[{path:"luigi-client-support-preload",component:c,data:b},{path:"luigi-client-support-preload",component:c,data:x},{path:"luigi-client-support-preload=component",component:c,data:w},{path:"luigi-client-support-preload",component:c,data:C}],M=function(t,e){};M.decorators=[{type:e.NgModule,args:[{declarations:[c],imports:[n.RouterModule.forChild(j)],providers:[{provide:d,useClass:p},{provide:n.RouteReuseStrategy,useClass:y}],exports:[c]}]}],M.ctorParameters=function(){return[{type:f},{type:d}]};var I=function(){function t(){}return t.initPostMessageHook=function(){var e=this;return function(){return h(e,void 0,void 0,(function(){return m(this,(function(e){if(window.parent===window){if(console.debug("Detected standalone mode"),window.luigiMockEnvironment)return[2];window.LuigiClient&&window.LuigiClient.setTargetOrigin("*"),window.luigiMockEnvironment={msgListener:function(e){if(e.data.msg&&(e.data.msg.startsWith("luigi.")||"storage"===e.data.msg)){console.debug("Luigi msg",e.data),"luigi.get-context"===e.data.msg&&window.postMessage({msg:"luigi.init",emulated:!0,internal:{viewStackSize:1},context:e.data.context},"*"),t.visualize(JSON.stringify(e.data));var n=window.luigiMockEnvironment.mockListeners[e.data.msg];n&&n(e)}},mockListeners:{"luigi.navigation.pathExists":function(t){var e=window.sessionStorage.getItem("luigiMockData"),n=e?JSON.parse(e):void 0,o=t.data.data.link,i=n&&n.pathExists&&n.pathExists[o],r={msg:"luigi.navigation.pathExists.answer",data:{correlationId:t.data.data.id,pathExists:i||!1},emulated:!0};window.postMessage(r,"*")},"luigi.ux.confirmationModal.show":function(t){var e={msg:"luigi.ux.confirmationModal.hide",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.ux.alert.show":function(t){var e={msg:"luigi.ux.alert.hide",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.ux.set-current-locale":function(t){var e={msg:"luigi.current-locale-changed",currentLocale:t.data.data.currentLocale,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.open":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.close":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.collapse":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},"luigi.navigation.splitview.expand":function(t){var e={msg:"luigi.navigate.ok",data:t.data,emulated:!0};window.postMessage(e,"*")},storage:function(){}}},window.addEventListener("message",window.luigiMockEnvironment.msgListener)}return[2]}))}))}},t.visualize=function(t){var e=document.querySelector("#luigi-debug-vis-cnt");e||((e=document.createElement("div")).setAttribute("id","luigi-debug-vis-cnt"),e.setAttribute("style","display:none"),document.body.appendChild(e));var n=document.createElement("div");n.textContent=t,e.appendChild(n)},t}();I.decorators=[{type:e.NgModule,args:[{providers:[{provide:e.APP_INITIALIZER,useFactory:I.initPostMessageHook,multi:!0}]}]}],t.LuigiAngularSupportModule=M,t.LuigiAutoRoutingService=f,t.LuigiContextService=d,t.LuigiContextServiceImpl=p,t.LuigiMockEngine=I,t.LuigiPreloadComponent=c,t.staticRoutes=j,t["ɵ0"]=b,t["ɵ1"]=x,t["ɵ2"]=w,t["ɵ3"]=C,t["ɵa"]=y,Object.defineProperty(t,"__esModule",{value:!0})}));
17
2
  //# sourceMappingURL=luigi-project-client-support-angular.umd.min.js.map