@churchillliving/se-ui-toolkit 6.53.481 → 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 +16 -16
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +17 -17
- package/fesm2015/churchillliving-se-ui-toolkit.js +16 -16
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/sidebar/sidebar.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8642,14 +8642,12 @@
|
|
|
8642
8642
|
*/
|
|
8643
8643
|
SidebarComponent.prototype.openDialog = function (menu, item) {
|
|
8644
8644
|
var _this = this;
|
|
8645
|
-
var ctrl;
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
}
|
|
8650
|
-
};
|
|
8645
|
+
var ctrl = '';
|
|
8646
|
+
this.globalListenFunc = this.instance.listen('document', 'keydown', function (e) {
|
|
8647
|
+
ctrl = e.key;
|
|
8648
|
+
});
|
|
8651
8649
|
setTimeout(function () {
|
|
8652
|
-
if (ctrl) {
|
|
8650
|
+
if (ctrl === 'Control') {
|
|
8653
8651
|
//open component on new tab
|
|
8654
8652
|
_this.openComponentInTab(menu);
|
|
8655
8653
|
}
|
|
@@ -8660,15 +8658,17 @@
|
|
|
8660
8658
|
}, 250);
|
|
8661
8659
|
};
|
|
8662
8660
|
SidebarComponent.prototype.openComponentInTab = function (menu) {
|
|
8663
|
-
var route =
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
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;
|
|
8667
8666
|
}
|
|
8668
|
-
if (
|
|
8669
|
-
(
|
|
8670
|
-
|
|
8671
|
-
|
|
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;
|
|
8672
8672
|
}
|
|
8673
8673
|
});
|
|
8674
8674
|
}
|
|
@@ -8681,7 +8681,7 @@
|
|
|
8681
8681
|
params_1 = param;
|
|
8682
8682
|
}
|
|
8683
8683
|
});
|
|
8684
|
-
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 }));
|
|
8685
8685
|
window.open(url, '_blank');
|
|
8686
8686
|
}
|
|
8687
8687
|
};
|