@wavemaker/angular-codegen 11.5.0-next.40002 → 11.5.0-next.40301

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.
@@ -46992,7 +46992,7 @@ const VALIDATOR = {
46992
46992
  EXCLUDEDAYS: 'excludedays'
46993
46993
  };
46994
46994
  const transformFileURI = (url) => {
46995
- if (_.isString(url) && hasCordova() && url.startsWith('file://')) {
46995
+ if (url && hasCordova() && url.startsWith('file://')) {
46996
46996
  if (isIos()) {
46997
46997
  return url.replace('file://', '/_app_file_');
46998
46998
  }
@@ -47231,7 +47231,6 @@ class EventNotifier {
47231
47231
 
47232
47232
  let MINIMUM_MOBILE_WIDTH = 480;
47233
47233
  let MINIMUM_TAB_WIDTH = 768;
47234
- let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
47235
47234
  class Viewport {
47236
47235
  constructor() {
47237
47236
  this.orientation = {
@@ -47298,14 +47297,12 @@ class Viewport {
47298
47297
  else {
47299
47298
  MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
47300
47299
  MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
47301
- MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
47302
- if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
47303
- this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
47304
- this.isMobileType = false;
47305
- }
47306
- else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
47300
+ // Tablet specification: min >= 480 max >= 768
47301
+ if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
47307
47302
  this.type = 1 /* TABLET */;
47308
- this.isTabletType = true;
47303
+ if (isAndroid() || isIos() || isAndroidTablet()) {
47304
+ this.isTabletType = true;
47305
+ }
47309
47306
  }
47310
47307
  else {
47311
47308
  this.type = 0 /* MOBILE */;
@@ -47873,9 +47870,7 @@ class StatePersistence {
47873
47870
  if (!_.get(parsedObj, [stateParam]) && !_.get(parsedObj, key)) {
47874
47871
  return;
47875
47872
  }
47876
- // Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
47877
- // _.get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
47878
- if (_.get(parsedObj, stateParam + '.' + key) || (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key])) {
47873
+ if (_.get(parsedObj, stateParam + '.' + key)) {
47879
47874
  if (subParam) {
47880
47875
  delete parsedObj[stateParam][key][subParam];
47881
47876
  }
@@ -43070,7 +43070,7 @@ const VALIDATOR = {
43070
43070
  EXCLUDEDAYS: 'excludedays'
43071
43071
  };
43072
43072
  const transformFileURI = (url) => {
43073
- if (_.isString(url) && hasCordova() && url.startsWith('file://')) {
43073
+ if (url && hasCordova() && url.startsWith('file://')) {
43074
43074
  if (isIos()) {
43075
43075
  return url.replace('file://', '/_app_file_');
43076
43076
  }
@@ -43309,7 +43309,6 @@ class EventNotifier {
43309
43309
 
43310
43310
  let MINIMUM_MOBILE_WIDTH = 480;
43311
43311
  let MINIMUM_TAB_WIDTH = 768;
43312
- let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
43313
43312
  class Viewport {
43314
43313
  constructor() {
43315
43314
  this.orientation = {
@@ -43376,14 +43375,12 @@ class Viewport {
43376
43375
  else {
43377
43376
  MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
43378
43377
  MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
43379
- MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
43380
- if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
43381
- this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
43382
- this.isMobileType = false;
43383
- }
43384
- else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
43378
+ // Tablet specification: min >= 480 max >= 768
43379
+ if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
43385
43380
  this.type = 1 /* TABLET */;
43386
- this.isTabletType = true;
43381
+ if (isAndroid() || isIos() || isAndroidTablet()) {
43382
+ this.isTabletType = true;
43383
+ }
43387
43384
  }
43388
43385
  else {
43389
43386
  this.type = 0 /* MOBILE */;
@@ -43951,9 +43948,7 @@ class StatePersistence {
43951
43948
  if (!_.get(parsedObj, [stateParam]) && !_.get(parsedObj, key)) {
43952
43949
  return;
43953
43950
  }
43954
- // Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
43955
- // _.get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
43956
- if (_.get(parsedObj, stateParam + '.' + key) || (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key])) {
43951
+ if (_.get(parsedObj, stateParam + '.' + key)) {
43957
43952
  if (subParam) {
43958
43953
  delete parsedObj[stateParam][key][subParam];
43959
43954
  }
@@ -43070,7 +43070,7 @@ const VALIDATOR = {
43070
43070
  EXCLUDEDAYS: 'excludedays'
43071
43071
  };
43072
43072
  const transformFileURI = (url) => {
43073
- if (_.isString(url) && hasCordova() && url.startsWith('file://')) {
43073
+ if (url && hasCordova() && url.startsWith('file://')) {
43074
43074
  if (isIos()) {
43075
43075
  return url.replace('file://', '/_app_file_');
43076
43076
  }
@@ -43309,7 +43309,6 @@ class EventNotifier {
43309
43309
 
43310
43310
  let MINIMUM_MOBILE_WIDTH = 480;
43311
43311
  let MINIMUM_TAB_WIDTH = 768;
43312
- let MINIMUM_LARGE_SCREEN_WIDTH = 1200;
43313
43312
  class Viewport {
43314
43313
  constructor() {
43315
43314
  this.orientation = {
@@ -43376,14 +43375,12 @@ class Viewport {
43376
43375
  else {
43377
43376
  MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
43378
43377
  MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
43379
- MINIMUM_LARGE_SCREEN_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-lg')) || 1200;
43380
- if (this.screenWidth >= MINIMUM_LARGE_SCREEN_WIDTH) {
43381
- this.isTabletType = isAndroid() || isIos() || isAndroidTablet();
43382
- this.isMobileType = false;
43383
- }
43384
- else if (this.screenWidth >= MINIMUM_TAB_WIDTH) {
43378
+ // Tablet specification: min >= 480 max >= 768
43379
+ if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
43385
43380
  this.type = 1 /* TABLET */;
43386
- this.isTabletType = true;
43381
+ if (isAndroid() || isIos() || isAndroidTablet()) {
43382
+ this.isTabletType = true;
43383
+ }
43387
43384
  }
43388
43385
  else {
43389
43386
  this.type = 0 /* MOBILE */;
@@ -43951,9 +43948,7 @@ class StatePersistence {
43951
43948
  if (!_.get(parsedObj, [stateParam]) && !_.get(parsedObj, key)) {
43952
43949
  return;
43953
43950
  }
43954
- // Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
43955
- // _.get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
43956
- if (_.get(parsedObj, stateParam + '.' + key) || (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key])) {
43951
+ if (_.get(parsedObj, stateParam + '.' + key)) {
43957
43952
  if (subParam) {
43958
43953
  delete parsedObj[stateParam][key][subParam];
43959
43954
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.5.0-next.40002",
3
+ "version": "11.5.0-next.40301",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {