@wavemaker/app-ng-runtime 11.3.4-rc.5300 → 11.3.4-rc.5309

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.
@@ -2425,8 +2425,16 @@ const isIpad = () => {
2425
2425
  return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
2426
2426
  };
2427
2427
  const isIos = () => isIphone() || isIpod() || isIpad();
2428
- const isLargeTabletLandscape = () => window.matchMedia("only screen and (min-device-width : 1366px) and (max-device-width : 1366px) and (min-device-height : 1024px) and (max-device-height : 1024px) and (min-width: 1366px) and (max-width: 1366px)").matches;
2429
- const isLargeTabletPortrait = () => window.matchMedia("only screen and (min-device-width : 1024px) and (max-device-width : 1024px) and (min-device-height : 1366px) and (max-device-height : 1366px) and (min-width: 1024px) and (max-width: 1024px)").matches;
2428
+ const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
2429
+ const width = landScapeWidth || '1366px';
2430
+ const height = landScapeHeight || '1024px';
2431
+ return window.matchMedia("only screen and (min-device-width : " + width + ") and (max-device-width : " + width + ") and (min-device-height : " + height + ") and (max-device-height : " + height + ") and (min-width: " + width + ") and (max-width: " + width + ")").matches;
2432
+ };
2433
+ const isLargeTabletPortrait = (landScapeWidth, landScapeHeight) => {
2434
+ const height = landScapeWidth || '1366px';
2435
+ const width = landScapeHeight || '1024px';
2436
+ return window.matchMedia("only screen and (min-device-width : " + width + ") and (max-device-width : " + width + ") and (min-device-height : " + height + ") and (max-device-height : " + height + ") and (min-width: " + width + ") and (max-width: " + width + ")").matches;
2437
+ };
2430
2438
  const isMobile = () => isAndroid() || isIos() || isAndroidTablet() || $('#wm-mobile-display:visible').length > 0;
2431
2439
  const isTablet = () => {
2432
2440
  const scope = document.querySelector('.app-page').widget;