@churchillliving/se-ui-toolkit 6.53.412 → 6.53.414
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 -10
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +5 -6
- package/esm2015/lib/services/sidebar.service.js +6 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js +9 -10
- 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
|
}
|
|
@@ -8496,7 +8496,6 @@
|
|
|
8496
8496
|
onReturn: x.onReturn,
|
|
8497
8497
|
disabled: x.disabled,
|
|
8498
8498
|
}); });
|
|
8499
|
-
console.log('menu items', this.menuItems);
|
|
8500
8499
|
};
|
|
8501
8500
|
//ref link: https://medium.com/@saranya.thangaraj/open-angular-component-in-a-new-tab-without-bootstrapping-the-whole-app-again-e329af460e92
|
|
8502
8501
|
SidebarComponent.prototype.navigateComponentToNewTab = function (menu, onNewTab) {
|
|
@@ -8509,10 +8508,10 @@
|
|
|
8509
8508
|
winRef = window.open();
|
|
8510
8509
|
if (winRef.location.href === 'about:blank') {
|
|
8511
8510
|
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 + '&&
|
|
8511
|
+
winRef.location.href = this.router.url + '&&component=' + menu.component.name;
|
|
8513
8512
|
}
|
|
8514
8513
|
else {
|
|
8515
|
-
winRef.location.href = this.router.url + "?
|
|
8514
|
+
winRef.location.href = this.router.url + "?component=" + menu.component.name;
|
|
8516
8515
|
}
|
|
8517
8516
|
}
|
|
8518
8517
|
}
|