@churchillliving/se-ui-toolkit 6.53.482 → 6.53.483
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 +11 -9
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +12 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js +11 -9
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -8658,15 +8658,17 @@
|
|
|
8658
8658
|
}, 250);
|
|
8659
8659
|
};
|
|
8660
8660
|
SidebarComponent.prototype.openComponentInTab = function (menu) {
|
|
8661
|
-
var route =
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8661
|
+
var route = {};
|
|
8662
|
+
this.router.config.forEach(function (parentRoute) {
|
|
8663
|
+
var _a, _b, _c;
|
|
8664
|
+
if (((_a = parentRoute.component) === null || _a === void 0 ? void 0 : _a.name) === ((_b = menu.component) === null || _b === void 0 ? void 0 : _b.name)) {
|
|
8665
|
+
route = parentRoute;
|
|
8665
8666
|
}
|
|
8666
|
-
if (
|
|
8667
|
-
(
|
|
8668
|
-
|
|
8669
|
-
|
|
8667
|
+
else if (parentRoute.children) {
|
|
8668
|
+
(_c = parentRoute === null || parentRoute === void 0 ? void 0 : parentRoute.children) === null || _c === void 0 ? void 0 : _c.forEach(function (childRoute) {
|
|
8669
|
+
var _a, _b;
|
|
8670
|
+
if (((_a = childRoute.component) === null || _a === void 0 ? void 0 : _a.name) === ((_b = menu.component) === null || _b === void 0 ? void 0 : _b.name)) {
|
|
8671
|
+
route = childRoute;
|
|
8670
8672
|
}
|
|
8671
8673
|
});
|
|
8672
8674
|
}
|
|
@@ -8679,7 +8681,7 @@
|
|
|
8679
8681
|
params_1 = param;
|
|
8680
8682
|
}
|
|
8681
8683
|
});
|
|
8682
|
-
var url = this.router.serializeUrl(this.router.createUrlTree([route.path], { queryParams: params_1 }));
|
|
8684
|
+
var url = this.router.serializeUrl(this.router.createUrlTree([route === null || route === void 0 ? void 0 : route.path], { queryParams: params_1 }));
|
|
8683
8685
|
window.open(url, '_blank');
|
|
8684
8686
|
}
|
|
8685
8687
|
};
|