@wavemaker/angular-codegen 11.2.5-rc.5364 → 11.2.5-rc.5365

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.
@@ -70,7 +70,7 @@
70
70
  "tslib": "^2.0.0",
71
71
  "x2js": "3.2.6",
72
72
  "zone.js": "~0.11.4",
73
- "@wavemaker/app-ng-runtime": "11.2.5-rc.5364"
73
+ "@wavemaker/app-ng-runtime": "11.2.5-rc.5365"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -47220,8 +47220,9 @@ class EventNotifier {
47220
47220
  }
47221
47221
  }
47222
47222
 
47223
- const MINIMUM_MOBILE_WIDTH = 480;
47224
- const MINIMUM_TAB_WIDTH = 768;
47223
+ let MINIMUM_MOBILE_WIDTH = 480;
47224
+ let MINIMUM_TAB_WIDTH = 768;
47225
+ let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
47225
47226
  class Viewport {
47226
47227
  constructor() {
47227
47228
  this.orientation = {
@@ -47286,12 +47287,16 @@ class Viewport {
47286
47287
  }
47287
47288
  }
47288
47289
  else {
47289
- // Tablet specification: min >= 480 max >= 768
47290
- if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
47290
+ MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
47291
+ MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
47292
+ MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
47293
+ if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
47294
+ this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
47295
+ this.isMobileType = false;
47296
+ }
47297
+ else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
47291
47298
  this.type = 1 /* TABLET */;
47292
- if (isAndroid() || isIos() || isAndroidTablet()) {
47293
- this.isTabletType = true;
47294
- }
47299
+ this.isTabletType = true;
47295
47300
  }
47296
47301
  else {
47297
47302
  this.type = 0 /* MOBILE */;
@@ -43298,8 +43298,9 @@ class EventNotifier {
43298
43298
  }
43299
43299
  }
43300
43300
 
43301
- const MINIMUM_MOBILE_WIDTH = 480;
43302
- const MINIMUM_TAB_WIDTH = 768;
43301
+ let MINIMUM_MOBILE_WIDTH = 480;
43302
+ let MINIMUM_TAB_WIDTH = 768;
43303
+ let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
43303
43304
  class Viewport {
43304
43305
  constructor() {
43305
43306
  this.orientation = {
@@ -43364,12 +43365,16 @@ class Viewport {
43364
43365
  }
43365
43366
  }
43366
43367
  else {
43367
- // Tablet specification: min >= 480 max >= 768
43368
- if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
43368
+ MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
43369
+ MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
43370
+ MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
43371
+ if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
43372
+ this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
43373
+ this.isMobileType = false;
43374
+ }
43375
+ else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
43369
43376
  this.type = 1 /* TABLET */;
43370
- if (isAndroid() || isIos() || isAndroidTablet()) {
43371
- this.isTabletType = true;
43372
- }
43377
+ this.isTabletType = true;
43373
43378
  }
43374
43379
  else {
43375
43380
  this.type = 0 /* MOBILE */;
@@ -43298,8 +43298,9 @@ class EventNotifier {
43298
43298
  }
43299
43299
  }
43300
43300
 
43301
- const MINIMUM_MOBILE_WIDTH = 480;
43302
- const MINIMUM_TAB_WIDTH = 768;
43301
+ let MINIMUM_MOBILE_WIDTH = 480;
43302
+ let MINIMUM_TAB_WIDTH = 768;
43303
+ let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
43303
43304
  class Viewport {
43304
43305
  constructor() {
43305
43306
  this.orientation = {
@@ -43364,12 +43365,16 @@ class Viewport {
43364
43365
  }
43365
43366
  }
43366
43367
  else {
43367
- // Tablet specification: min >= 480 max >= 768
43368
- if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
43368
+ MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
43369
+ MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
43370
+ MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
43371
+ if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
43372
+ this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
43373
+ this.isMobileType = false;
43374
+ }
43375
+ else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
43369
43376
  this.type = 1 /* TABLET */;
43370
- if (isAndroid() || isIos() || isAndroidTablet()) {
43371
- this.isTabletType = true;
43372
- }
43377
+ this.isTabletType = true;
43373
43378
  }
43374
43379
  else {
43375
43380
  this.type = 0 /* MOBILE */;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.5-rc.5364",
3
+ "version": "11.2.5-rc.5365",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {