@churchillliving/se-ui-toolkit 6.53.478 → 6.53.479

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.
@@ -8706,9 +8706,47 @@
8706
8706
  * Passes the event of the menu
8707
8707
  */
8708
8708
  SidebarComponent.prototype.openDialog = function (menu, item) {
8709
+ var _this = this;
8710
+ var ctrl;
8711
+ document.body.onclick = function (e) {
8712
+ if (e.ctrlKey) {
8713
+ ctrl = e.ctrlKey;
8714
+ }
8715
+ };
8716
+ setTimeout(function () {
8717
+ if (ctrl) {
8718
+ //open component on new tab
8719
+ _this.openComponentInTab(menu);
8720
+ }
8721
+ else {
8722
+ //open component in dialog
8723
+ _this.openComponentInDialog(menu, item);
8724
+ }
8725
+ }, 250);
8726
+ };
8727
+ SidebarComponent.prototype.openComponentInTab = function (menu) {
8728
+ var route = this.router.config.find(function (x) {
8729
+ var _a;
8730
+ if (x.component == menu.component) {
8731
+ return x.component == menu.component;
8732
+ }
8733
+ if (x.children) {
8734
+ (_a = x === null || x === void 0 ? void 0 : x.children) === null || _a === void 0 ? void 0 : _a.find(function (y) {
8735
+ if (y.component == menu.component) {
8736
+ return y.component == menu.component;
8737
+ }
8738
+ });
8739
+ }
8740
+ });
8741
+ if (route) {
8742
+ window.open(route.path, "_blank");
8743
+ }
8744
+ };
8745
+ SidebarComponent.prototype.openComponentInDialog = function (menu, item) {
8709
8746
  var _this = this;
8710
8747
  var _a, _b;
8711
8748
  var menuData = menu.data ? menu.data : menu;
8749
+ menuData.style = { background: '#fff' };
8712
8750
  if (menuData.scrollable == false) {
8713
8751
  menuData.styleClass = "small-model";
8714
8752
  }