ngx-kit 8.3.1 → 8.3.3

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.
@@ -1131,7 +1131,7 @@ function resolveDirection(doc) {
1131
1131
  const htmlDir = doc.documentElement.dir;
1132
1132
  if (htmlDir === 'rtl' || htmlDir === 'ltr')
1133
1133
  return htmlDir;
1134
- return getComputedStyle(doc.documentElement).direction === 'rtl' ? 'rtl' : 'ltr';
1134
+ return getComputedStyle?.(doc.documentElement)?.direction === 'rtl' ? 'rtl' : 'ltr';
1135
1135
  }
1136
1136
  /**
1137
1137
  * جهت صفحه را به‌صورت خودکار و زنده تشخیص می‌دهد — بدون این‌که کاربرِ این
@@ -1435,7 +1435,7 @@ class OverlayService {
1435
1435
  element.style.overflow = 'auto';
1436
1436
  element.style.transformOrigin = 'left top';
1437
1437
  element.style.background = 'none';
1438
- element.style.boxShadow = '0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4)';
1438
+ element.style.filter = 'drop-shadow(0px 0px 6px black)';
1439
1439
  element.style.borderRadius = 'var(--ngx-dialog-corner-radius,8px)';
1440
1440
  this.addClasses(element, options.panelClass);
1441
1441
  return element;
@@ -1549,6 +1549,9 @@ class OverlayService {
1549
1549
  // body scroll lock
1550
1550
  // ---------------------------------------------------------------------------
1551
1551
  lockBodyScroll() {
1552
+ if (!this.isBrowser) {
1553
+ return;
1554
+ }
1552
1555
  this.bodyScrollLockCount++;
1553
1556
  if (this.bodyScrollLockCount > 1) {
1554
1557
  return;