@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.
- package/assets/i18n-eui/bg.json +3 -2
- package/assets/i18n-eui/cs.json +3 -2
- package/assets/i18n-eui/da.json +3 -2
- package/assets/i18n-eui/de.json +3 -2
- package/assets/i18n-eui/el.json +3 -2
- package/assets/i18n-eui/en.json +2 -1
- package/assets/i18n-eui/es.json +3 -2
- package/assets/i18n-eui/et.json +3 -2
- package/assets/i18n-eui/fi.json +3 -2
- package/assets/i18n-eui/fr.json +3 -2
- package/assets/i18n-eui/ga.json +3 -2
- package/assets/i18n-eui/hr.json +3 -2
- package/assets/i18n-eui/hu.json +2 -1
- package/assets/i18n-eui/it.json +2 -1
- package/assets/i18n-eui/lt.json +2 -1
- package/assets/i18n-eui/lv.json +2 -1
- package/assets/i18n-eui/mt.json +2 -1
- package/assets/i18n-eui/nl.json +2 -1
- package/assets/i18n-eui/pl.json +2 -1
- package/assets/i18n-eui/pt.json +2 -1
- package/assets/i18n-eui/ro.json +2 -1
- package/assets/i18n-eui/sk.json +2 -1
- package/assets/i18n-eui/sl.json +2 -1
- package/assets/i18n-eui/sv.json +2 -1
- package/docs/dependencies.html +2 -2
- package/docs/injectables/UxAppShellService.html +67 -0
- package/docs/js/search/search_index.js +2 -2
- package/esm2020/lib/services/ux-app-shell.service.mjs +16 -1
- package/fesm2015/eui-core.mjs +15 -0
- package/fesm2015/eui-core.mjs.map +1 -1
- package/fesm2020/eui-core.mjs +15 -0
- package/fesm2020/eui-core.mjs.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +10 -0
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/package.json +2 -2
package/fesm2020/eui-core.mjs
CHANGED
|
@@ -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
|
*/
|