@churchillliving/se-ui-toolkit 6.53.412 → 6.53.413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/churchillliving-se-ui-toolkit.umd.js +9 -9
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +5 -5
- package/esm2015/lib/services/sidebar.service.js +6 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js +9 -9
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/sidebar.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -8362,7 +8362,7 @@
|
|
|
8362
8362
|
sidebar = __spreadArray([], __read(sidebar));
|
|
8363
8363
|
return sidebar;
|
|
8364
8364
|
};
|
|
8365
|
-
SideBarService.prototype.createWindowInstance = function (
|
|
8365
|
+
SideBarService.prototype.createWindowInstance = function (obj, windowInstance) {
|
|
8366
8366
|
if (windowInstance) {
|
|
8367
8367
|
// Create a PortalOutlet with the body of the new window document
|
|
8368
8368
|
var outlet = new portal.DomPortalOutlet(windowInstance.document.body, this.componentFactoryResolver, this.applicationRef, this.injector);
|
|
@@ -8370,13 +8370,13 @@
|
|
|
8370
8370
|
this.styleSheetElement = this.getStyleSheetElement();
|
|
8371
8371
|
windowInstance.document.head.appendChild(this.styleSheetElement);
|
|
8372
8372
|
windowInstance.document.body.innerText = '';
|
|
8373
|
-
this.attachComponentContainer(outlet,
|
|
8373
|
+
this.attachComponentContainer(outlet, obj);
|
|
8374
8374
|
}
|
|
8375
8375
|
};
|
|
8376
|
-
SideBarService.prototype.attachComponentContainer = function (outlet,
|
|
8377
|
-
var containerPortal = new portal.ComponentPortal(
|
|
8376
|
+
SideBarService.prototype.attachComponentContainer = function (outlet, obj) {
|
|
8377
|
+
var containerPortal = new portal.ComponentPortal(obj.component, null);
|
|
8378
8378
|
var containerRef = outlet.attach(containerPortal);
|
|
8379
|
-
containerRef.instance.config =
|
|
8379
|
+
containerRef.instance.config = obj.data;
|
|
8380
8380
|
};
|
|
8381
8381
|
SideBarService.prototype.getStyleSheetElement = function () {
|
|
8382
8382
|
var styleSheetElement = document.createElement('link');
|
|
@@ -8435,8 +8435,8 @@
|
|
|
8435
8435
|
});
|
|
8436
8436
|
SidebarComponent.prototype.ngOnInit = function () {
|
|
8437
8437
|
var _a, _b;
|
|
8438
|
-
if ((_a = this.router.url.toString()) === null || _a === void 0 ? void 0 : _a.includes('
|
|
8439
|
-
var componentName = (_b = this.router.url) === null || _b === void 0 ? void 0 : _b.split('
|
|
8438
|
+
if ((_a = this.router.url.toString()) === null || _a === void 0 ? void 0 : _a.includes('component=')) {
|
|
8439
|
+
var componentName = (_b = this.router.url) === null || _b === void 0 ? void 0 : _b.split('component=')[1];
|
|
8440
8440
|
if (componentName) {
|
|
8441
8441
|
this.loadComponentName = componentName;
|
|
8442
8442
|
}
|
|
@@ -8509,10 +8509,10 @@
|
|
|
8509
8509
|
winRef = window.open();
|
|
8510
8510
|
if (winRef.location.href === 'about:blank') {
|
|
8511
8511
|
if (this.router.url && ((_b = (_a = this.router.url) === null || _a === void 0 ? void 0 : _a.toString()) === null || _b === void 0 ? void 0 : _b.includes('?'))) {
|
|
8512
|
-
winRef.location.href = this.router.url + '&&
|
|
8512
|
+
winRef.location.href = this.router.url + '&&component=' + menu.component.name;
|
|
8513
8513
|
}
|
|
8514
8514
|
else {
|
|
8515
|
-
winRef.location.href = this.router.url + "?
|
|
8515
|
+
winRef.location.href = this.router.url + "?component=" + menu.component.name;
|
|
8516
8516
|
}
|
|
8517
8517
|
}
|
|
8518
8518
|
}
|