@wavemaker/app-runtime-wm-build 11.3.4-rc.5300 → 11.3.4-rc.5301

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-runtime-wm-build",
3
- "version": "11.3.4-rc.5300",
3
+ "version": "11.3.4-rc.5301",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3012,11 +3012,15 @@
3012
3012
  var isIos = function() {
3013
3013
  return isIphone() || isIpod() || isIpad();
3014
3014
  };
3015
- var isLargeTabletLandscape = function() {
3016
- 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;
3015
+ var isLargeTabletLandscape = function(landScapeWidth, landScapeHeight) {
3016
+ var width = landScapeWidth || "1366px";
3017
+ var height = landScapeHeight || "1024px";
3018
+ 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;
3017
3019
  };
3018
- var isLargeTabletPortrait = function() {
3019
- 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;
3020
+ var isLargeTabletPortrait = function(landScapeWidth, landScapeHeight) {
3021
+ var height = landScapeWidth || "1366px";
3022
+ var width = landScapeHeight || "1024px";
3023
+ 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;
3020
3024
  };
3021
3025
  var isMobile = function() {
3022
3026
  return isAndroid() || isIos() || isAndroidTablet() || $("#wm-mobile-display:visible").length > 0;
@@ -10367,7 +10371,18 @@
10367
10371
  configurable: true
10368
10372
  });
10369
10373
  ShowInDeviceDirective.prototype.onResize = function($event) {
10370
- if (this.devices.indexOf("lg") > -1 && window.matchMedia("(min-width: 1200px)").matches && !core$1.isLargeTabletLandscape() || this.devices.indexOf("md") > -1 && (core$1.isLargeTabletLandscape() || window.matchMedia("(min-width: 992px) and (max-width: 1199px)").matches && !core$1.isLargeTabletPortrait()) || this.devices.indexOf("sm") > -1 && (window.matchMedia("(min-width: 768px) and (max-width: 991px)").matches || core$1.isLargeTabletPortrait()) || this.devices.indexOf("xs") > -1 && window.matchMedia("(max-width: 767px)").matches || this.devices.indexOf("all") > -1) {
10374
+ var lgWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg") || "1200px";
10375
+ var mdWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-md") || "992px";
10376
+ var smWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-sm") || "768px";
10377
+ var lgTabLandScapeWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-landscape") || "1366px";
10378
+ var lgTabPortraitWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-portrait") || "1024px";
10379
+ var lgWidthMin = parseFloat(lgWidth) - 1;
10380
+ var lgUnit = lgWidth.replace(lgWidthMin.toString(), "").trim();
10381
+ var mdWidthMin = parseFloat(mdWidth) - 1;
10382
+ var mdUnit = mdWidth.replace(mdWidthMin.toString(), "").trim();
10383
+ var smWidthMin = parseFloat(smWidth) - 1;
10384
+ var smUnit = smWidth.replace(smWidthMin.toString(), "").trim();
10385
+ if (this.devices.indexOf("lg") > -1 && window.matchMedia("(min-width: " + lgWidth + ")").matches && !core$1.isLargeTabletLandscape(lgTabLandScapeWidth, lgTabPortraitWidth) || this.devices.indexOf("md") > -1 && (core$1.isLargeTabletLandscape(lgTabLandScapeWidth, lgTabPortraitWidth) || window.matchMedia("(min-width: " + mdWidth + ") and (max-width: " + lgWidthMin + lgUnit + ")").matches && !core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("sm") > -1 && (window.matchMedia("(min-width: " + smWidth + ") and (max-width: " + mdWidthMin + mdUnit + ")").matches || core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("xs") > -1 && window.matchMedia("(max-width: " + smWidthMin + smUnit + ")").matches || this.devices.indexOf("all") > -1) {
10371
10386
  if (!this.embeddedView) {
10372
10387
  this.embeddedView = this.viewContainerRef.createEmbeddedView(this.templateRef, this.context);
10373
10388
  }