@eui/core 15.3.6-snapshot-1686687199764 → 15.3.6

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.
@@ -1145,6 +1145,7 @@ class UxAppShellService {
1145
1145
  this.i18nService = i18nService;
1146
1146
  this.growlMessages = [];
1147
1147
  this.isGrowlSticky = false;
1148
+ this.isCloseAllSticky = false;
1148
1149
  this.growlLife = 3000;
1149
1150
  this.growlPosition = 'bottom-right';
1150
1151
  this.growlCallback = null;
@@ -1473,6 +1474,20 @@ class UxAppShellService {
1473
1474
  activateSidebarFooterCssVars() {
1474
1475
  this.setCssVar('--eui-app-sidebar-footer-height-active', '--eui-app-sidebar-footer-height');
1475
1476
  }
1477
+ /**
1478
+ * Gets the viewport height and width and multiple it by 1% to get a value for a vh/vw unit
1479
+ * Sets the value in the --eui-app-vh custom property to the root of the document
1480
+ * Sets the value in the --eui-app-vw custom property to the root of the document
1481
+ * Example for 100% height: calc(var(--eui-app-vh, 1vh) * 100);
1482
+ * Example for 50% height: calc(var(--eui-app-vh, 1vh) * 50);
1483
+ * Example for 50% width: calc(var(--eui-app-vw, 1vw) * 50);
1484
+ */
1485
+ setAppViewportCssVars() {
1486
+ let vh = window.innerHeight * 0.01;
1487
+ let vw = window.innerWidth * 0.01;
1488
+ this._setCssVarValue('--eui-app-vh', `${vh}px`);
1489
+ this._setCssVarValue('--eui-app-vw', `${vw}px`);
1490
+ }
1476
1491
  /**
1477
1492
  * displays a growl UxMessage item, isSticky
1478
1493
  */