@wavemaker/app-runtime-wm-build 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.
|
@@ -3012,11 +3012,15 @@
|
|
|
3012
3012
|
var isIos = function() {
|
|
3013
3013
|
return isIphone() || isIpod() || isIpad();
|
|
3014
3014
|
};
|
|
3015
|
-
var isLargeTabletLandscape = function() {
|
|
3016
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 = lgWidthMin + "px";
|
|
10381
|
+
var mdWidthMin = parseFloat(mdWidth) - 1;
|
|
10382
|
+
var mdUnit = mdWidthMin + "px";
|
|
10383
|
+
var smWidthMin = parseFloat(smWidth) - 1;
|
|
10384
|
+
var smUnit = smWidthMin + "px";
|
|
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: " + lgUnit + ")").matches && !core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("sm") > -1 && (window.matchMedia("(min-width: " + smWidth + ") and (max-width: " + mdUnit + ")").matches || core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("xs") > -1 && window.matchMedia("(max-width: " + 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
|
}
|