@luigi-project/client-support-angular 1.20.2-dev.20220372156 → 1.20.2-dev.20220412211

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.
@@ -134,10 +134,12 @@
134
134
  * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';
135
135
  * in the case we will update the path in LuigiCore navigation, here an example
136
136
  * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}
137
+ * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:
138
+ * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}
137
139
  * @param event the NavigationEnd event
138
140
  */
139
141
  LuigiAutoRoutingService.prototype.doSubscription = function (event) {
140
- var _a;
142
+ var _a, _b;
141
143
  var current = LuigiActivatedRouteSnapshotHelper.getCurrent();
142
144
  if (!current) {
143
145
  current = this.router.routerState.root.snapshot;
@@ -205,10 +207,12 @@
205
207
  }
206
208
  }
207
209
  console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
208
- client.linkManager()
209
- .fromVirtualTreeRoot()
210
- .withoutSync()
211
- .navigate(url);
210
+ client.linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);
211
+ }
212
+ var ux = client.uxManager();
213
+ if (ux.isModal() && current.data.updateModalDataPath && ((_b = current.routeConfig) === null || _b === void 0 ? void 0 : _b.path)) {
214
+ var lm = client.linkManager();
215
+ lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);
212
216
  }
213
217
  }
214
218
  };
@@ -220,7 +224,7 @@
220
224
  LuigiAutoRoutingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LuigiAutoRoutingService_Factory() { return new LuigiAutoRoutingService(i0.ɵɵinject(i1.Router), i0.ɵɵinject(LuigiContextService)); }, token: LuigiAutoRoutingService, providedIn: "root" });
221
225
  LuigiAutoRoutingService.decorators = [
222
226
  { type: i0.Injectable, args: [{
223
- providedIn: 'root'
227
+ providedIn: 'root',
224
228
  },] }
225
229
  ];
226
230
  LuigiAutoRoutingService.ctorParameters = function () { return [
@@ -541,7 +545,7 @@
541
545
  return LuigiRouteStrategy;
542
546
  }(i1.BaseRouteReuseStrategy));
543
547
 
544
- var ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true };
548
+ var ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true }, ɵ3 = { updateModalPathParam: true };
545
549
  var staticRoutes = [
546
550
  /** here an example if you want to specify that this component is a virtualTree element in Luigi Core navigation*/
547
551
  {
@@ -560,6 +564,12 @@
560
564
  path: 'luigi-client-support-preload=component',
561
565
  component: LuigiPreloadComponent,
562
566
  data: ɵ2
567
+ },
568
+ /** here an example if you want to update modalPathParam on internal navigation */
569
+ {
570
+ path: 'luigi-client-support-preload',
571
+ component: LuigiPreloadComponent,
572
+ data: ɵ3
563
573
  }
564
574
  ];
565
575
  var LuigiAngularSupportModule = /** @class */ (function () {
@@ -775,6 +785,7 @@
775
785
  exports.ɵ0 = ɵ0;
776
786
  exports.ɵ1 = ɵ1;
777
787
  exports.ɵ2 = ɵ2;
788
+ exports.ɵ3 = ɵ3;
778
789
  exports.ɵa = LuigiRouteStrategy;
779
790
 
780
791
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent\n} from '@angular/router';\nimport { linkManager } 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 * @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\n if (current?.data) {\n if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 }\n else if (url.indexOf(truncate) === 0) {\n url = url.substr(truncate.length);\n }\n }\n console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager()\n .fromVirtualTreeRoot()\n .withoutSync()\n .navigate(url);\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];\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(\n navigation: LuigiAutoRoutingService,\n context: LuigiContextService\n ) {}\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","convertToParamMap","linkManager","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;gBACzB,KAAI,CAAC,WAAW,CAACF,0BAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;aAC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,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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent,\n} 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 =\n 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 if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);\n }\n const ux = uxManager();\n if (ux.isModal() && current.data.updateModalDataPath && current.routeConfig?.path) {\n const lm = linkManager();\n lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);\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","convertToParamMap","linkManager","uxManager","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;gBACzB,KAAI,CAAC,WAAW,CAACF,0BAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;aACxD,CAAC,CAAC;YACHG,+BAAwB,CAAC,UAAA,aAAa;gBACpC,KAAI,C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AC,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,4 +1,4 @@
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){if(o.data.luigiRoute){var a=o.data.luigiRoute;if(o.params){var u=n.convertToParamMap(o.params);u.keys.forEach((function(t){u.getAll(t).forEach((function(e){a=a.replace(":"+t,e)}))}))}var s=r.linkManager();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)}return void s.withoutSync().navigate(a)}if(o.data.fromVirtualTreeRoot){var c=t.url,d=o.data.fromVirtualTreeRoot.truncate;if(d)if(0===d.indexOf("*")){var p=c.indexOf(d.substr(1));c=c.substr(p+d.length-1)}else 0===c.indexOf(d)&&(c=c.substr(d.length));console.debug("Calling fromVirtualTreeRoot for url ==> "+c),r.linkManager().fromVirtualTreeRoot().withoutSync().navigate(c)}}},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}]};
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,i=l.getCurrent();if(!i){i=this.router.routerState.root.snapshot;for(var a=function(){var t=null;if(null==i||i.children.forEach((function(e){"primary"===e.outlet&&(t=e)})),t)i=t;else{if(!i.firstChild)return"break";i=i.firstChild}};(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)>0;){if("break"===a())break}}if(null==i?void 0:i.data){if(i.data.luigiRoute){var u=i.data.luigiRoute;if(i.params){var s=n.convertToParamMap(i.params);s.keys.forEach((function(t){s.getAll(t).forEach((function(e){u=u.replace(":"+t,e)}))}))}var c=r.linkManager();if(i.data.fromContext){if(!this.luigiContextService.getContext())return void console.debug("Ignoring auto navigation request, luigi context not set");c=!0===i.data.fromContext?c.fromClosestContext():c.fromContext(i.data.fromContext)}return void c.withoutSync().navigate(u)}if(i.data.fromVirtualTreeRoot){var d=t.url,p=i.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));console.debug("Calling fromVirtualTreeRoot for url ==> "+d),r.linkManager().fromVirtualTreeRoot().withoutSync().navigate(d)}if(r.uxManager().isModal()&&i.data.updateModalDataPath&&(null===(o=i.routeConfig)||void 0===o?void 0:o.path))(c=r.linkManager()).updateModalPathInternalNavigation(i.routeConfig.path,{},i.data.addHistoryEntry)}},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
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
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},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}],x=function(t,e){};x.decorators=[{type:e.NgModule,args:[{declarations:[a],imports:[n.RouterModule.forChild(b)],providers:[{provide:s,useClass:c},{provide:n.RouteReuseStrategy,useClass:v}],exports:[a]}]}],x.ctorParameters=function(){return[{type:d},{type:s}]};var w=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}();w.decorators=[{type:e.NgModule,args:[{providers:[{provide:e.APP_INITIALIZER,useFactory:w.initPostMessageHook,multi:!0}]}]}],t.LuigiAngularSupportModule=x,t.LuigiAutoRoutingService=d,t.LuigiContextService=s,t.LuigiContextServiceImpl=c,t.LuigiMockModule=w,t.LuigiPreloadComponent=a,t.staticRoutes=b,t.ɵ0=h,t.ɵ1=m,t.ɵ2=y,t.ɵa=v,Object.defineProperty(t,"__esModule",{value:!0})}));
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})}));
17
17
  //# sourceMappingURL=luigi-project-client-support-angular.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"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"],"names":["LuigiPreloadComponent","prototype","ngOnInit","Component","args","selector","template","ILuigiContextTypes","LuigiContextServiceImpl","zone","_this","this","subject","ReplaySubject","currentContext","addInitListener","initContext","addListener","INIT","addContextUpdateListener","updateContext","UPDATE","contextObservable","asObservable","getContext","context","getContextAsync","Promise","resolve","reject","pipe","first","subscribe","ctx","setContext","obj","run","next","contextType","Injectable","providedIn","NgZone","LuigiActivatedRouteSnapshotHelper","getCurrent","_current","setCurrent","current","LuigiAutoRoutingService","router","luigiContextService","subscription","Subscription","add","events","doFilter","doSubscription","bind","filter","event","NavigationEnd","url","length","history","state","luigiInduced","routerState","root","snapshot","primary","children","forEach","childSnapshot","outlet","firstChild","_a","data","luigiRoute","route_1","params","pmap_1","convertToParamMap","keys","key","getAll","param","replace","lm","linkManager","fromContext","console","debug","fromClosestContext","withoutSync","navigate","fromVirtualTreeRoot","truncate","indexOf","index","substr","ngOnDestroy","unsubscribe","Router","LuigiContextService","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","call","__awaiter","thisArg","_arguments","P","generator","fulfilled","value","step","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","TypeError","pop","push","create","LuigiRouteStrategy","__","constructor","__extends","_super","retrieve","route","BaseRouteReuseStrategy","ɵ1","ɵ2","reuse","staticRoutes","path","component","ɵ0","navigation","NgModule","declarations","imports","RouterModule","forChild","providers","provide","useClass","RouteReuseStrategy","exports","LuigiMockModule","initPostMessageHook","window","parent","luigiMockEnvironment","msgListener","msg","startsWith","postMessage","emulated","internal","viewStackSize","visualize","JSON","stringify","mockListener","mockListeners","luigi.navigation.pathExists","mockData","sessionStorage","getItem","mockDataParsed","parse","undefined","inputPath","link","pathExists","response","correlationId","id","luigi.ux.confirmationModal.show","luigi.ux.alert.show","luigi.ux.set-current-locale","currentLocale","luigi.navigation.open","luigi.navigation.splitview.close","luigi.navigation.splitview.collapse","luigi.navigation.splitview.expand","storage","addEventListener","luigiVisualizationContainer","document","querySelector","createElement","setAttribute","appendChild","line","textContent","APP_INITIALIZER","useFactory","multi"],"mappings":"yoBAQE,SAAAA,YACAA,EAAAC,UAAAC,SAAA,sCAPDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,6BACVC,SAAA,sFCiBUC,IAlBZ,cAkBYA,EAAAA,EAAAA,qBAAAA,EAAAA,mBAAkB,KAC5BA,EAAA,KAAA,GAAA,OACAA,EAAAA,EAAA,OAAA,GAAA,0BCVA,SAAAC,EAAoBC,GAApB,IAAAC,EAAAC,KAAoBA,KAAAF,KAAAA,EAHZE,KAAAC,QAA0C,IAAIC,EAAAA,cAA+B,GAC7EF,KAAAG,eAAmC,KAGzCC,EAAAA,iBAAgB,SAAAC,GACdN,EAAKO,YAAYV,EAAAA,mBAAmBW,KAAMF,MAE5CG,EAAAA,0BAAyB,SAAAC,GACvBV,EAAKO,YAAYV,EAAAA,mBAAmBc,OAAQD,aAIzCZ,EAAAP,UAAAqB,kBAAA,WACL,OAAOX,KAAKC,QAAQW,gBAMff,EAAA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AA,gBACTC,WAAYjD,EAAgBC,oBAC5BiD,OAAO","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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent\n} from '@angular/router';\nimport { linkManager } 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 * @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\n if (current?.data) {\n if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 }\n else if (url.indexOf(truncate) === 0) {\n url = url.substr(truncate.length);\n }\n }\n console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager()\n .fromVirtualTreeRoot()\n .withoutSync()\n .navigate(url);\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];\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(\n navigation: LuigiAutoRoutingService,\n context: LuigiContextService\n ) {}\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"]}
1
+ {"version":3,"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"],"names":["LuigiPreloadComponent","prototype","ngOnInit","Component","args","selector","template","ILuigiContextTypes","LuigiContextServiceImpl","zone","_this","this","subject","ReplaySubject","currentContext","addInitListener","initContext","addListener","INIT","addContextUpdateListener","updateContext","UPDATE","contextObservable","asObservable","getContext","context","getContextAsync","Promise","resolve","reject","pipe","first","subscribe","ctx","setContext","obj","run","next","contextType","Injectable","providedIn","NgZone","LuigiActivatedRouteSnapshotHelper","getCurrent","_current","setCurrent","current","LuigiAutoRoutingService","router","luigiContextService","subscription","Subscription","add","events","doFilter","doSubscription","bind","filter","event","NavigationEnd","url","length","history","state","luigiInduced","routerState","root","snapshot","primary","children","forEach","childSnapshot","outlet","firstChild","_a","data","luigiRoute","route_1","params","pmap_1","convertToParamMap","keys","key","getAll","param","replace","lm","linkManager","fromContext","console","debug","fromClosestContext","withoutSync","navigate","fromVirtualTreeRoot","truncate","indexOf","index","substr","uxManager","isModal","updateModalDataPath","_b","routeConfig","path","updateModalPathInternalNavigation","addHistoryEntry","ngOnDestroy","unsubscribe","Router","LuigiContextService","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","call","__awaiter","thisArg","_arguments","P","generator","fulfilled","value","step","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","TypeError","pop","push","create","LuigiRouteStrategy","__","constructor","__extends","_super","retrieve","route","BaseRouteReuseStrategy","ɵ1","ɵ2","reuse","ɵ3","updateModalPathParam","staticRoutes","component","ɵ0","navigation","NgModule","declarations","imports","RouterModule","forChild","providers","provide","useClass","RouteReuseStrategy","exports","LuigiMockModule","initPostMessageHook","window","parent","luigiMockEnvironment","msgListener","msg","startsWith","postMessage","emulated","internal","viewStackSize","visualize","JSON","stringify","mockListener","mockListeners","luigi.navigation.pathExists","mockData","sessionStorage","getItem","mockDataParsed","parse","undefined","inputPath","link","pathExists","response","correlationId","id","luigi.ux.confirmationModal.show","luigi.ux.alert.show","luigi.ux.set-current-locale","currentLocale","luigi.navigation.open","luigi.navigation.splitview.close","luigi.navigation.splitview.collapse","luigi.navigation.splitview.expand","storage","addEventListener","luigiVisualizationContainer","document","querySelector","createElement","setAttribute","appendChild","line","textContent","APP_INITIALIZER","useFactory","multi"],"mappings":"yoBAQE,SAAAA,YACAA,EAAAC,UAAAC,SAAA,sCAPDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,6BACVC,SAAA,sFCiBUC,IAlBZ,cAkBYA,EAAAA,EAAAA,qBAAAA,EAAAA,mBAAkB,KAC5BA,EAAA,KAAA,GAAA,OACAA,EAAAA,EAAA,OAAA,GAAA,0BCVA,SAAAC,EAAoBC,GAApB,IAAAC,EAAAC,KAAoBA,KAAAF,KAAAA,EAHZE,KAAAC,QAA0C,IAAIC,EAAAA,cAA+B,GAC7EF,KAAAG,eAAmC,KAGzCC,EAAAA,iBAAgB,SAAAC,GACdN,EAAKO,YAAYV,EAAAA,mBAAmBW,KAAMF,MAE5CG,EAAAA,0BAAyB,SAAAC,GACvBV,EAAKO,YAAYV,EAAAA,mBAAmBc,OAA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rC,OAAeE,qBAAqBC,+BAShEL,EAAAY,UAAP,SAAiB1H,GACtB,IAAIsJ,EAA8CC,SAASC,cAAc,wBAEpEF,KACHA,EAA8BC,SAASE,cAAc,QACzBC,aAAa,KAAM,uBAE/CJ,EAA4BI,aAAa,QAAS,gBAClDH,SAAS1F,KAAK8F,YAAYL,IAE5B,IAAMM,EAAuBL,SAASE,cAAc,OACpDG,EAAKC,YAAc7J,EACnBsJ,EAA4BK,YAAYC,6BAtK3CxD,EAAAA,SAAQ3K,KAAA,CAAC,CACRgL,UAAW,CACT,CACEC,QAASoD,EAAAA,gBACTC,WAAYjD,EAAgBC,oBAC5BiD,OAAO","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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent,\n} 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 =\n 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 if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);\n }\n const ux = uxManager();\n if (ux.isModal() && current.data.updateModalDataPath && current.routeConfig?.path) {\n const lm = linkManager();\n lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);\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"]}
@@ -5,7 +5,7 @@ import { LuigiContextService } from './service/luigi-context-service';
5
5
  import { LuigiContextServiceImpl } from './service/luigi-context.service.impl';
6
6
  import { LuigiAutoRoutingService } from './service/luigi-auto-routing.service';
7
7
  import { LuigiRouteStrategy } from './route/luigi-route-strategy';
8
- const ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true };
8
+ const ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true }, ɵ3 = { updateModalPathParam: true };
9
9
  export const staticRoutes = [
10
10
  /** here an example if you want to specify that this component is a virtualTree element in Luigi Core navigation*/
11
11
  {
@@ -24,6 +24,12 @@ export const staticRoutes = [
24
24
  path: 'luigi-client-support-preload=component',
25
25
  component: LuigiPreloadComponent,
26
26
  data: ɵ2
27
+ },
28
+ /** here an example if you want to update modalPathParam on internal navigation */
29
+ {
30
+ path: 'luigi-client-support-preload',
31
+ component: LuigiPreloadComponent,
32
+ data: ɵ3
27
33
  }
28
34
  ];
29
35
  export class LuigiAngularSupportModule {
@@ -50,5 +56,5 @@ LuigiAngularSupportModule.ctorParameters = () => [
50
56
  { type: LuigiAutoRoutingService },
51
57
  { type: LuigiContextService }
52
58
  ];
53
- export { ɵ0, ɵ1, ɵ2 };
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibHVpZ2kuYW5ndWxhci5zdXBwb3J0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGllbnQtc3VwcG9ydC1hbmd1bGFyL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9sdWlnaS5hbmd1bGFyLnN1cHBvcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFlBQVksRUFBVSxNQUFNLGlCQUFpQixDQUFDO0FBQzNFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzVFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3RFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQy9FLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQy9FLE9BQU8sR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9LFxuICAvKiogaGVyZSBhbiBleGFtcGxlIGlmIHlvdSB3YW50IHRvIHVwZGF0ZSBtb2RhbFBhdGhQYXJhbSBvbiBpbnRlcm5hbCBuYXZpZ2F0aW9uICAqL1xuICB7XG4gICAgcGF0aDogJ2x1aWdpLWNsaWVudC1zdXBwb3J0LXByZWxvYWQnLFxuICAgIGNvbXBvbmVudDogTHVpZ2lQcmVsb2FkQ29tcG9uZW50LFxuICAgIGRhdGE6IHsgdXBkYXRlTW9kYWxQYXRoUGFyYW06IHRydWUgfVxuICB9XG5dO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtMdWlnaVByZWxvYWRDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbUm91dGVyTW9kdWxlLmZvckNoaWxkKHN0YXRpY1JvdXRlcyldLFxuICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBMdWlnaUNvbnRleHRTZXJ2aWNlLFxuICAgICAgdXNlQ2xhc3M6IEx1aWdpQ29udGV4dFNlcnZpY2VJbXBsXG4gICAgfSxcbiAgICB7XG4gICAgICBwcm92aWRlOiBSb3V0ZVJldXNlU3RyYXRlZ3ksXG4gICAgICB1c2VDbGFzczogTHVpZ2lSb3V0ZVN0cmF0ZWd5XG4gICAgfVxuICBdLFxuICBleHBvcnRzOiBbTHVpZ2lQcmVsb2FkQ29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBMdWlnaUFuZ3VsYXJTdXBwb3J0TW9kdWxlIHtcbiAgY29uc3RydWN0b3IobmF2aWdhdGlvbjogTHVpZ2lBdXRvUm91dGluZ1NlcnZpY2UsIGNvbnRleHQ6IEx1aWdpQ29udGV4dFNlcnZpY2UpIHt9XG59XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { Injectable } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { convertToParamMap, NavigationEnd, Router } from '@angular/router';
4
- import { linkManager } from '@luigi-project/client';
3
+ import { convertToParamMap, NavigationEnd, Router, } from '@angular/router';
4
+ import { linkManager, uxManager } from '@luigi-project/client';
5
5
  import { filter } from 'rxjs/operators';
6
6
  import { LuigiActivatedRouteSnapshotHelper } from '../route/luigi-activated-route-snapshot-helper';
7
7
  import { LuigiContextService } from './luigi-context-service';
@@ -32,17 +32,19 @@ export class LuigiAutoRoutingService {
32
32
  * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';
33
33
  * in the case we will update the path in LuigiCore navigation, here an example
34
34
  * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}
35
+ * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:
36
+ * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}
35
37
  * @param event the NavigationEnd event
36
38
  */
37
39
  doSubscription(event) {
38
- var _a;
40
+ var _a, _b;
39
41
  let current = LuigiActivatedRouteSnapshotHelper.getCurrent();
40
42
  if (!current) {
41
43
  current = this.router.routerState.root.snapshot;
42
44
  while (((_a = current === null || current === void 0 ? void 0 : current.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
43
45
  // handle multiple children
44
46
  let primary = null;
45
- current === null || current === void 0 ? void 0 : current.children.forEach(childSnapshot => {
47
+ current === null || current === void 0 ? void 0 : current.children.forEach((childSnapshot) => {
46
48
  if (childSnapshot.outlet === 'primary') {
47
49
  primary = childSnapshot;
48
50
  }
@@ -63,8 +65,8 @@ export class LuigiAutoRoutingService {
63
65
  let route = current.data.luigiRoute;
64
66
  if (current.params) {
65
67
  const pmap = convertToParamMap(current.params);
66
- pmap.keys.forEach(key => {
67
- const val = pmap.getAll(key).forEach(param => {
68
+ pmap.keys.forEach((key) => {
69
+ const val = pmap.getAll(key).forEach((param) => {
68
70
  route = route.replace(':' + key, param);
69
71
  });
70
72
  });
@@ -98,10 +100,12 @@ export class LuigiAutoRoutingService {
98
100
  }
99
101
  }
100
102
  console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
101
- linkManager()
102
- .fromVirtualTreeRoot()
103
- .withoutSync()
104
- .navigate(url);
103
+ linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);
104
+ }
105
+ const ux = uxManager();
106
+ if (ux.isModal() && current.data.updateModalDataPath && ((_b = current.routeConfig) === null || _b === void 0 ? void 0 : _b.path)) {
107
+ const lm = linkManager();
108
+ lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);
105
109
  }
106
110
  }
107
111
  }
@@ -112,11 +116,11 @@ export class LuigiAutoRoutingService {
112
116
  LuigiAutoRoutingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LuigiAutoRoutingService_Factory() { return new LuigiAutoRoutingService(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.LuigiContextService)); }, token: LuigiAutoRoutingService, providedIn: "root" });
113
117
  LuigiAutoRoutingService.decorators = [
114
118
  { type: Injectable, args: [{
115
- providedIn: 'root'
119
+ providedIn: 'root',
116
120
  },] }
117
121
  ];
118
122
  LuigiAutoRoutingService.ctorParameters = () => [
119
123
  { type: Router },
120
124
  { type: LuigiContextService }
121
125
  ];
122
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibHVpZ2ktYXV0by1yb3V0aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXN1cHBvcnQtYW5ndWxhci9zcmMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZS9sdWlnaS1hdXRvLXJvdXRpbmcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBcUMsWUFBWSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3ZFLE9BQU8sRUFDTCxpQkFBaUIsRUFDakIsYUFBYSxFQUViLE1BQU0sRUFFUCxNQUFNLGlCQU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ltYXJ5Jykge1xuICAgICAgICAgICAgcHJpbWFyeSA9IGNoaWxkU25hcHNob3Q7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW1hcnkpIHtcbiAgICAgICAgICBjdXJyZW50ID0gcHJpbWFyeTtcbiAgICAgICAgfSBlbHNlIGlmIChjdXJyZW50LmZpcnN0Q2hpbGQpIHtcbiAgICAgICAgICBjdXJyZW50ID0gY3VycmVudC5maXJzdENoaWxkO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGN1cnJlbnQ/LmRhdGEpIHtcbiAgICAgIGlmIChjdXJyZW50LmRhdGEubHVpZ2lSb3V0ZSkge1xuICAgICAgICBsZXQgcm91dGUgPSBjdXJyZW50LmRhdGEubHVpZ2lSb3V0ZTtcblxuICAgICAgICBpZiAoY3VycmVudC5wYXJhbXMpIHtcbiAgICAgICAgICBjb25zdCBwbWFwOiBQYXJhbU1hcCA9IGNvbnZlcnRUb1BhcmFtTWFwKGN1cnJlbnQucGFyYW1zKTtcbiAgICAgICAgICBwbWFwLmtleXMuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgICAgY29uc3QgdmFsID0gcG1hcC5nZXRBbGwoa2V5KS5mb3JFYWNoKHBhcmFtID0+IHtcbiAgICAgICAgICAgICAgcm91dGUgPSByb3V0ZS5yZXBsYWNlKCc6JyArIGtleSwgcGFyYW0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgbGV0IGxtID0gbGlua01hbmFnZXIoKTtcbiAgICAgICAgaWYgKGN1cnJlbnQuZGF0YS5mcm9tQ29udGV4dCkge1xuICAgICAgICAgIGlmICghdGhpcy5sdWlnaUNvbnRleHRTZXJ2aWNlLmdldENvbnRleHQoKSkge1xuICAgICAgICAgICAgY29uc29sZS5kZWJ1ZyhcbiAgICAgICAgICAgICAgJ0lnbm9yaW5nIGF1dG8gbmF2aWdhdGlvbiByZXF1ZXN0LCBsdWlnaSBjb250ZXh0IG5vdCBzZXQnXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoY3VycmVudC5kYXRhLmZyb21Db250ZXh0ID09PSB0cnVlKSB7XG4gICAgICAgICAgICBsbSA9IGxtLmZyb21DbG9zZXN0Q29udGV4dCgpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsbSA9IGxtLmZyb21Db250ZXh0KGN1cnJlbnQuZGF0YS5mcm9tQ29udGV4dCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgbG0ud2l0aG91dFN5bmMoKS5uYXZpZ2F0ZShyb3V0ZSk7XG4gICAgICAgIHJldHVybjtcbiAgICAgIH1cbiAgICAgIGlmIChjdXJyZW50LmRhdGEuZnJvbVZpcnR1YWxUcmVlUm9vdCkge1xuICAgICAgICBsZXQgdXJsID0gZXZlbnQudXJsO1xuICAgICAgICBjb25zdCB0cnVuY2F0ZSA9IGN1cnJlbnQuZGF0YS5mcm9tVmlydHVhbFRyZWVSb290LnRydW5jYXRlO1xuICAgICAgICBpZiAodHJ1bmNhdGUpIHtcbiAgICAgICAgICBpZiAodHJ1bmNhdGUuaW5kZXhPZignKicpID09PSAwKSB7XG4gICAgICAgICAgICBjb25zdCBpbmRleCA9IHVybC5pbmRleE9mKHRydW5jYXRlLnN1YnN0cigxKSk7XG4gICAgICAgICAgICB1cmwgPSB1cmwuc3Vic3RyKGluZGV4ICsgdHJ1bmNhdGUubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGVsc2UgaWYgKHVybC5pbmRleE9mKHRydW5jYXRlKSA9PT0gMCkge1xuICAgICAgICAgICAgdXJsID0gdXJsLnN1YnN0cih0cnVuY2F0ZS5sZW5ndGgpO1xuICAgICAgICAgIH1cbiA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nJlbnQucGFyYW1zKTtcbiAgICAgICAgICBwbWFwLmtleXMuZm9yRWFjaCgoa2V5KSA9PiB7XG4gICAgICAgICAgICBjb25zdCB2YWwgPSBwbWFwLmdldEFsbChrZXkpLmZvckVhY2goKHBhcmFtKSA9PiB7XG4gICAgICAgICAgICAgIHJvdXRlID0gcm91dGUucmVwbGFjZSgnOicgKyBrZXksIHBhcmFtKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGxldCBsbSA9IGxpbmtNYW5hZ2VyKCk7XG4gICAgICAgIGlmIChjdXJyZW50LmRhdGEuZnJvbUNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoIXRoaXMubHVpZ2lDb250ZXh0U2VydmljZS5nZXRDb250ZXh0KCkpIHtcbiAgICAgICAgICAgIGNvbnNvbGUuZGVidWcoXG4gICAgICAgICAgICAgICdJZ25vcmluZyBhdXRvIG5hdmlnYXRpb24gcmVxdWVzdCwgbHVpZ2kgY29udGV4dCBub3Qgc2V0J1xuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYgKGN1cnJlbnQuZGF0YS5mcm9tQ29udGV4dCA9PT0gdHJ1ZSkge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ2xvc2VzdENvbnRleHQoKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ29udGV4dChjdXJyZW50LmRhdGEuZnJvbUNvbnRleHQpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGxtLndpdGhvdXRTeW5jKCkubmF2aWdhdGUocm91dGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG4gICAgICBpZiAoY3VycmVudC5kYXRhLmZyb21WaXJ0dWFsVHJlZVJvb3QpIHtcbiAgICAgICAgbGV0IHVybCA9IGV2ZW50LnVybDtcbiAgICAgICAgY29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HJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICB9XG59XG4iXX0=
@@ -2,7 +2,7 @@ import { Component, ɵɵdefineInjectable, ɵɵinject, NgZone, Injectable, NgModu
2
2
  import { NavigationEnd, convertToParamMap, Router, BaseRouteReuseStrategy, RouterModule, RouteReuseStrategy } from '@angular/router';
3
3
  import { ReplaySubject, Subscription } from 'rxjs';
4
4
  import { first, filter } from 'rxjs/operators';
5
- import { addInitListener, addContextUpdateListener, linkManager } from '@luigi-project/client';
5
+ import { addInitListener, addContextUpdateListener, linkManager, uxManager } from '@luigi-project/client';
6
6
  import { __awaiter } from 'tslib';
7
7
 
8
8
  class LuigiPreloadComponent {
@@ -124,17 +124,19 @@ class LuigiAutoRoutingService {
124
124
  * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';
125
125
  * in the case we will update the path in LuigiCore navigation, here an example
126
126
  * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}
127
+ * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:
128
+ * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}
127
129
  * @param event the NavigationEnd event
128
130
  */
129
131
  doSubscription(event) {
130
- var _a;
132
+ var _a, _b;
131
133
  let current = LuigiActivatedRouteSnapshotHelper.getCurrent();
132
134
  if (!current) {
133
135
  current = this.router.routerState.root.snapshot;
134
136
  while (((_a = current === null || current === void 0 ? void 0 : current.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
135
137
  // handle multiple children
136
138
  let primary = null;
137
- current === null || current === void 0 ? void 0 : current.children.forEach(childSnapshot => {
139
+ current === null || current === void 0 ? void 0 : current.children.forEach((childSnapshot) => {
138
140
  if (childSnapshot.outlet === 'primary') {
139
141
  primary = childSnapshot;
140
142
  }
@@ -155,8 +157,8 @@ class LuigiAutoRoutingService {
155
157
  let route = current.data.luigiRoute;
156
158
  if (current.params) {
157
159
  const pmap = convertToParamMap(current.params);
158
- pmap.keys.forEach(key => {
159
- const val = pmap.getAll(key).forEach(param => {
160
+ pmap.keys.forEach((key) => {
161
+ const val = pmap.getAll(key).forEach((param) => {
160
162
  route = route.replace(':' + key, param);
161
163
  });
162
164
  });
@@ -190,10 +192,12 @@ class LuigiAutoRoutingService {
190
192
  }
191
193
  }
192
194
  console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
193
- linkManager()
194
- .fromVirtualTreeRoot()
195
- .withoutSync()
196
- .navigate(url);
195
+ linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);
196
+ }
197
+ const ux = uxManager();
198
+ if (ux.isModal() && current.data.updateModalDataPath && ((_b = current.routeConfig) === null || _b === void 0 ? void 0 : _b.path)) {
199
+ const lm = linkManager();
200
+ lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);
197
201
  }
198
202
  }
199
203
  }
@@ -204,7 +208,7 @@ class LuigiAutoRoutingService {
204
208
  LuigiAutoRoutingService.ɵprov = ɵɵdefineInjectable({ factory: function LuigiAutoRoutingService_Factory() { return new LuigiAutoRoutingService(ɵɵinject(Router), ɵɵinject(LuigiContextService)); }, token: LuigiAutoRoutingService, providedIn: "root" });
205
209
  LuigiAutoRoutingService.decorators = [
206
210
  { type: Injectable, args: [{
207
- providedIn: 'root'
211
+ providedIn: 'root',
208
212
  },] }
209
213
  ];
210
214
  LuigiAutoRoutingService.ctorParameters = () => [
@@ -219,7 +223,7 @@ class LuigiRouteStrategy extends BaseRouteReuseStrategy {
219
223
  }
220
224
  }
221
225
 
222
- const ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true };
226
+ const ɵ0 = { fromVirtualTreeRoot: true }, ɵ1 = { luigiRoute: '/home/reload' }, ɵ2 = { reuse: true }, ɵ3 = { updateModalPathParam: true };
223
227
  const staticRoutes = [
224
228
  /** here an example if you want to specify that this component is a virtualTree element in Luigi Core navigation*/
225
229
  {
@@ -238,6 +242,12 @@ const staticRoutes = [
238
242
  path: 'luigi-client-support-preload=component',
239
243
  component: LuigiPreloadComponent,
240
244
  data: ɵ2
245
+ },
246
+ /** here an example if you want to update modalPathParam on internal navigation */
247
+ {
248
+ path: 'luigi-client-support-preload',
249
+ component: LuigiPreloadComponent,
250
+ data: ɵ3
241
251
  }
242
252
  ];
243
253
  class LuigiAngularSupportModule {
@@ -434,5 +444,5 @@ LuigiMockModule.decorators = [
434
444
  * Generated bundle index. Do not edit.
435
445
  */
436
446
 
437
- export { ILuigiContextTypes, LuigiAngularSupportModule, LuigiAutoRoutingService, LuigiContextService, LuigiContextServiceImpl, LuigiMockModule, LuigiPreloadComponent, staticRoutes, ɵ0, ɵ1, ɵ2, LuigiRouteStrategy as ɵa };
447
+ export { ILuigiContextTypes, LuigiAngularSupportModule, LuigiAutoRoutingService, LuigiContextService, LuigiContextServiceImpl, LuigiMockModule, LuigiPreloadComponent, staticRoutes, ɵ0, ɵ1, ɵ2, ɵ3, LuigiRouteStrategy as ɵa };
438
448
  //# sourceMappingURL=luigi-project-client-support-angular.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"luigi-project-client-support-angular.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","../../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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent\n} from '@angular/router';\nimport { linkManager } 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 * @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\n if (current?.data) {\n if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 }\n else if (url.indexOf(truncate) === 0) {\n url = url.substr(truncate.length);\n }\n }\n console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager()\n .fromVirtualTreeRoot()\n .withoutSync()\n .navigate(url);\n }\n }\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\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];\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(\n navigation: LuigiAutoRoutingService,\n context: LuigiContextService\n ) {}\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":[],"mappings":";;;;;;;MAOa,qBAAqB;IAChC,iBAAgB;IAChB,QAAQ,MAAW;;;YAPpB,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,mDAA6C;aAE9C;;;;MCHqB,mBAAmB;CAgBxC;IAEW;AAAZ,WAAY,kBAAkB;IAC5B,2DAAI,CAAA;IACJ,+DAAM,CAAA;AACR,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB;;MCZjB,uBAAuB;IAIlC,YAAoB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAHxB,YAAO,GAAmC,IAAI,aAAa,CAAkB,CAAC,CAAC,CAAC;QAChF,mBAAc,GAAqB,IAAmC,CAAC;QAG7E,eAAe,CAAC,WAAW;YACzB,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SACxD,CAAC,CAAC;QACH,wBAAwB,CAAC,aAAa;YACpC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;SAC5D,CAAC,CAAC;KACJ;IAEM,iBAAiB;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;KACpC;;;;IAKM,UAAU;QACf,OAAO,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;KAC3D;;;;IAKM,eAAe;QACpB,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,MAAM;YAC1C,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;aAC5B;iBAAM;gBACL,IAAI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iBACF,CAAC;;gBAGF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAG,MAAc,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;aACtF;SACF,CAAA,CAAC;KACH;;;;;IAMM,OAAO,SAAS,CAAC,IAAY;QAClC,IAAI,2BAA2B,GAAmB,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;;QAEjG,IAAI,CAAC,2BAA2B,EAAE;YAChC,2BAA2B,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC5D,2BAA2B,CAAC,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;;YAEtE,2BAA2B,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;YAClE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;SACxD;QACD,MAAM,IAAI,GAAmB,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,2BAA2B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAC/C;;;YAvKF,QAAQ,SAAC;gBACR,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,eAAe;wBACxB,UAAU,EAAE,eAAe,CAAC,mBAAmB;wBAC/C,KAAK,EAAE,IAAI;qBACZ;iBACF;aACF;;;ACXD;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"luigi-project-client-support-angular.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","../../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 {\n convertToParamMap,\n NavigationEnd,\n ParamMap,\n Router,\n RouterEvent,\n} 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(\n private router: Router,\n private luigiContextService: LuigiContextService\n ) {\n this.subscription.add(\n this.router.events\n .pipe(this.doFilter())\n .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 =\n 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 if (current.data.luigiRoute) {\n let 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 let lm = linkManager();\n if (current.data.fromContext) {\n if (!this.luigiContextService.getContext()) {\n console.debug(\n 'Ignoring auto navigation request, luigi context not set'\n );\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\n lm.withoutSync().navigate(route);\n return;\n }\n 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 console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);\n linkManager().fromVirtualTreeRoot().withoutSync().navigate(url);\n }\n const ux = uxManager();\n if (ux.isModal() && current.data.updateModalDataPath && current.routeConfig?.path) {\n const lm = linkManager();\n lm.updateModalPathInternalNavigation(current.routeConfig.path, {}, current.data.addHistoryEntry);\n }\n }\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\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":[],"mappings":";;;;;;;MAOa,qBAAqB;IAChC,iBAAgB;IAChB,QAAQ,MAAW;;;YAPpB,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,mDAA6C;aAE9C;;;;MCHqB,mBAAmB;CAgBxC;IAEW;AAAZ,WAAY,kBAAkB;IAC5B,2DAAI,CAAA;IACJ,+DAAM,CAAA;AACR,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB;;MCZjB,uBAAuB;IAIlC,YAAoB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAHxB,YAAO,GAAmC,IAAI,aAAa,CAAkB,CAAC,CAAC,CAAC;QAChF,mBAAc,GAAqB,IAAmC,CAAC;QAG7E,eAAe,CAAC,WAAW;YACzB,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SACxD,CAAC,CAA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A2B,EAAE;YAChC,2BAA2B,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC5D,2BAA2B,CAAC,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;;YAEtE,2BAA2B,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;YAClE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;SACxD;QACD,MAAM,IAAI,GAAmB,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,2BAA2B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAC/C;;;YAvKF,QAAQ,SAAC;gBACR,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,eAAe;wBACxB,UAAU,EAAE,eAAe,CAAC,mBAAmB;wBAC/C,KAAK,EAAE,IAAI;qBACZ;iBACF;aACF;;;ACXD;;;;ACAA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"luigi.angular.support.module.d.ts","sourceRoot":"../../../../projects/client-support-angular/src/","sources":["lib/luigi.angular.support.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,eAAO,MAAM,YAAY,EAAE,MAmB1B,CAAC;AAEF,qBAea,yBAAyB;gBAElC,UAAU,EAAE,uBAAuB,EACnC,OAAO,EAAE,mBAAmB;CAE/B"}
1
+ {"version":3,"file":"luigi.angular.support.module.d.ts","sourceRoot":"../../../../projects/client-support-angular/src/","sources":["lib/luigi.angular.support.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,eAAO,MAAM,YAAY,EAAE,MAyB1B,CAAC;AAEF,qBAea,yBAAyB;gBACxB,UAAU,EAAE,uBAAuB,EAAE,OAAO,EAAE,mBAAmB;CAC9E"}
@@ -15,6 +15,8 @@ export declare class LuigiAutoRoutingService implements OnDestroy {
15
15
  * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx';
16
16
  * in the case we will update the path in LuigiCore navigation, here an example
17
17
  * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}}
18
+ * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation:
19
+ * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}}
18
20
  * @param event the NavigationEnd event
19
21
  */
20
22
  doSubscription(event: NavigationEnd): void;
@@ -1 +1 @@
1
- {"version":3,"file":"luigi-auto-routing.service.d.ts","sourceRoot":"../../../../projects/client-support-angular/src/","sources":["lib/service/luigi-auto-routing.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAiC,MAAM,MAAM,CAAC;AACvE,OAAO,EAEL,aAAa,EAEb,MAAM,EACN,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,qBAGa,uBAAwB,YAAW,SAAS;IAIrD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,mBAAmB;IAJ7B,OAAO,CAAC,YAAY,CAAoC;gBAG9C,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,mBAAmB;IASlD,QAAQ,IAAI,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC;IAWlD;;;;;;;;OAQG;IACH,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA2E1C,WAAW,IAAI,IAAI;CAGpB"}
1
+ {"version":3,"file":"luigi-auto-routing.service.d.ts","sourceRoot":"../../../../projects/client-support-angular/src/","sources":["lib/service/luigi-auto-routing.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAiC,MAAM,MAAM,CAAC;AACvE,OAAO,EAEL,aAAa,EAEb,MAAM,EACN,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,qBAGa,uBAAwB,YAAW,SAAS;IAIrD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,mBAAmB;IAJ7B,OAAO,CAAC,YAAY,CAAoC;gBAG9C,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,mBAAmB;IASlD,QAAQ,IAAI,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC;IAWlD;;;;;;;;;;OAUG;IACH,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA4E1C,WAAW,IAAI,IAAI;CAGpB"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"LuigiPreloadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-client-support-angular","styles":[],"template":"<p luigipreload=\"luigipreload\"></p>\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"staticRoutes":[{"path":"luigi-client-support-preload","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"fromVirtualTreeRoot":true}},{"path":"luigi-client-support-preload","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"luigiRoute":"/home/reload"}},{"path":"luigi-client-support-preload=component","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"reuse":true}}],"LuigiAngularSupportModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":29,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LuigiPreloadComponent"}],"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":31,"character":12},"member":"forChild"},"arguments":[{"__symbolic":"reference","name":"staticRoutes"}]}],"providers":[{"provide":{"__symbolic":"reference","name":"LuigiContextService"},"useClass":{"__symbolic":"reference","name":"LuigiContextServiceImpl"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"RouteReuseStrategy","line":38,"character":15},"useClass":{"__symbolic":"reference","name":"ɵa"}}],"exports":[{"__symbolic":"reference","name":"LuigiPreloadComponent"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LuigiAutoRoutingService"},{"__symbolic":"reference","name":"LuigiContextService"}]}]}},"LuigiContextService":{"__symbolic":"class","members":{"contextObservable":[{"__symbolic":"method"}],"getContext":[{"__symbolic":"method"}],"getContextAsync":[{"__symbolic":"method"}]}},"ILuigiContextTypes":{"INIT":0,"UPDATE":1},"IContextMessage":{"__symbolic":"interface"},"LuigiContextServiceImpl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":13,"character":28}]}],"contextObservable":[{"__symbolic":"method"}],"getContext":[{"__symbolic":"method"}],"getContextAsync":[{"__symbolic":"method"}],"setContext":[{"__symbolic":"method"}],"addListener":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LuigiAutoRoutingService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":22,"character":20},{"__symbolic":"reference","name":"LuigiContextService"}]}],"doFilter":[{"__symbolic":"method"}],"doSubscription":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LuigiMockModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":6,"character":15},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LuigiMockModule"},"member":"initPostMessageHook"},"multi":true}]}]}],"members":{},"statics":{"initPostMessageHook":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Lambda not supported","line":28,"character":11,"module":"./lib/luigi-mock/luigi-mock.module"}}}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/router","name":"BaseRouteReuseStrategy","line":4,"character":40},"members":{"retrieve":[{"__symbolic":"method"}]}}},"origins":{"LuigiPreloadComponent":"./lib/component/luigi.preload.component","staticRoutes":"./lib/luigi.angular.support.module","LuigiAngularSupportModule":"./lib/luigi.angular.support.module","LuigiContextService":"./lib/service/luigi-context-service","ILuigiContextTypes":"./lib/service/luigi-context-service","IContextMessage":"./lib/service/luigi-context-service","LuigiContextServiceImpl":"./lib/service/luigi-context.service.impl","LuigiAutoRoutingService":"./lib/service/luigi-auto-routing.service","LuigiMockModule":"./lib/luigi-mock/luigi-mock.module","ɵa":"./lib/route/luigi-route-strategy"},"importAs":"@luigi-project/client-support-angular"}
1
+ {"__symbolic":"module","version":4,"metadata":{"LuigiPreloadComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-client-support-angular","styles":[],"template":"<p luigipreload=\"luigipreload\"></p>\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"staticRoutes":[{"path":"luigi-client-support-preload","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"fromVirtualTreeRoot":true}},{"path":"luigi-client-support-preload","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"luigiRoute":"/home/reload"}},{"path":"luigi-client-support-preload=component","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"reuse":true}},{"path":"luigi-client-support-preload","component":{"__symbolic":"reference","name":"LuigiPreloadComponent"},"data":{"updateModalPathParam":true}}],"LuigiAngularSupportModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":35,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LuigiPreloadComponent"}],"imports":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":37,"character":12},"member":"forChild"},"arguments":[{"__symbolic":"reference","name":"staticRoutes"}]}],"providers":[{"provide":{"__symbolic":"reference","name":"LuigiContextService"},"useClass":{"__symbolic":"reference","name":"LuigiContextServiceImpl"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"RouteReuseStrategy","line":44,"character":15},"useClass":{"__symbolic":"reference","name":"ɵa"}}],"exports":[{"__symbolic":"reference","name":"LuigiPreloadComponent"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"LuigiAutoRoutingService"},{"__symbolic":"reference","name":"LuigiContextService"}]}]}},"LuigiContextService":{"__symbolic":"class","members":{"contextObservable":[{"__symbolic":"method"}],"getContext":[{"__symbolic":"method"}],"getContextAsync":[{"__symbolic":"method"}]}},"ILuigiContextTypes":{"INIT":0,"UPDATE":1},"IContextMessage":{"__symbolic":"interface"},"LuigiContextServiceImpl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":13,"character":28}]}],"contextObservable":[{"__symbolic":"method"}],"getContext":[{"__symbolic":"method"}],"getContextAsync":[{"__symbolic":"method"}],"setContext":[{"__symbolic":"method"}],"addListener":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LuigiAutoRoutingService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":22,"character":20},{"__symbolic":"reference","name":"LuigiContextService"}]}],"doFilter":[{"__symbolic":"method"}],"doSubscription":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LuigiMockModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":6,"character":15},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"LuigiMockModule"},"member":"initPostMessageHook"},"multi":true}]}]}],"members":{},"statics":{"initPostMessageHook":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Lambda not supported","line":28,"character":11,"module":"./lib/luigi-mock/luigi-mock.module"}}}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/router","name":"BaseRouteReuseStrategy","line":4,"character":40},"members":{"retrieve":[{"__symbolic":"method"}]}}},"origins":{"LuigiPreloadComponent":"./lib/component/luigi.preload.component","staticRoutes":"./lib/luigi.angular.support.module","LuigiAngularSupportModule":"./lib/luigi.angular.support.module","LuigiContextService":"./lib/service/luigi-context-service","ILuigiContextTypes":"./lib/service/luigi-context-service","IContextMessage":"./lib/service/luigi-context-service","LuigiContextServiceImpl":"./lib/service/luigi-context.service.impl","LuigiAutoRoutingService":"./lib/service/luigi-auto-routing.service","LuigiMockModule":"./lib/luigi-mock/luigi-mock.module","ɵa":"./lib/route/luigi-route-strategy"},"importAs":"@luigi-project/client-support-angular"}
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "publishConfig": {
18
18
  "tag": "client-support-angular"
19
19
  },
20
- "version": "1.20.2-dev.20220372156",
20
+ "version": "1.20.2-dev.20220412211",
21
21
  "main": "bundles/luigi-project-client-support-angular.umd.js",
22
22
  "module": "fesm2015/luigi-project-client-support-angular.js",
23
23
  "es2015": "fesm2015/luigi-project-client-support-angular.js",