@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.
@@ -2898,8 +2898,16 @@
2898
2898
  return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
2899
2899
  };
2900
2900
  var isIos = function () { return isIphone() || isIpod() || isIpad(); };
2901
- var isLargeTabletLandscape = function () { return 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; };
2902
- var isLargeTabletPortrait = function () { return 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; };
2901
+ var isLargeTabletLandscape = function (landScapeWidth, landScapeHeight) {
2902
+ var width = landScapeWidth || '1366px';
2903
+ var height = landScapeHeight || '1024px';
2904
+ 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;
2905
+ };
2906
+ var isLargeTabletPortrait = function (landScapeWidth, landScapeHeight) {
2907
+ var height = landScapeWidth || '1366px';
2908
+ var width = landScapeHeight || '1024px';
2909
+ 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;
2910
+ };
2903
2911
  var isMobile = function () { return isAndroid() || isIos() || isAndroidTablet() || $('#wm-mobile-display:visible').length > 0; };
2904
2912
  var isTablet = function () {
2905
2913
  var scope = document.querySelector('.app-page').widget;