@wavemaker/app-ng-runtime 11.4.0-next.25720 → 11.4.0-next.25724

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.
Files changed (38) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +15 -4
  2. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/components/base/esm2015/directives/show-in-device.directive.js +16 -5
  4. app-ng-runtime/components/base/fesm2015/index.js +15 -4
  5. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/chart/bundles/index.umd.js +1 -1
  7. app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
  8. app-ng-runtime/components/chart/esm2015/chart.component.js +2 -2
  9. app-ng-runtime/components/chart/fesm2015/index.js +1 -1
  10. app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
  11. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +43 -2
  12. app-ng-runtime/components/containers/wizard/bundles/index.umd.js.map +1 -1
  13. app-ng-runtime/components/containers/wizard/esm2015/wizard-step/wizard-step.props.js +3 -2
  14. app-ng-runtime/components/containers/wizard/esm2015/wizard.component.js +42 -2
  15. app-ng-runtime/components/containers/wizard/fesm2015/index.js +43 -2
  16. app-ng-runtime/components/containers/wizard/fesm2015/index.js.map +1 -1
  17. app-ng-runtime/components/containers/wizard/index.metadata.json +1 -1
  18. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  19. app-ng-runtime/core/bundles/index.umd.js +12 -2
  20. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  21. app-ng-runtime/core/esm2015/services/viewport.service.js +6 -4
  22. app-ng-runtime/core/esm2015/utils/utils.js +11 -3
  23. app-ng-runtime/core/fesm2015/index.js +15 -5
  24. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  25. app-ng-runtime/core/index.metadata.json +1 -1
  26. app-ng-runtime/core/utils/utils.d.ts +2 -2
  27. app-ng-runtime/package.json +1 -1
  28. app-ng-runtime/runtime/base/bundles/index.umd.js +163 -132
  29. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  30. app-ng-runtime/runtime/base/esm2015/public_api.js +2 -1
  31. app-ng-runtime/runtime/base/esm2015/runtime-base.module.js +3 -1
  32. app-ng-runtime/runtime/base/esm2015/services/app.service.js +3 -1
  33. app-ng-runtime/runtime/base/esm2015/services/pipe.service.js +33 -0
  34. app-ng-runtime/runtime/base/fesm2015/index.js +148 -119
  35. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  36. app-ng-runtime/runtime/base/index.metadata.json +1 -1
  37. app-ng-runtime/runtime/base/public_api.d.ts +1 -0
  38. app-ng-runtime/runtime/base/services/pipe.service.d.ts +9 -0
@@ -2425,8 +2425,16 @@ const isIpad = () => {
2425
2425
  return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
2426
2426
  };
2427
2427
  const isIos = () => isIphone() || isIpod() || isIpad();
2428
- const isLargeTabletLandscape = () => 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;
2429
- const isLargeTabletPortrait = () => 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;
2428
+ const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
2429
+ const width = landScapeWidth || '1366px';
2430
+ const height = landScapeHeight || '1024px';
2431
+ 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;
2432
+ };
2433
+ const isLargeTabletPortrait = (landScapeWidth, landScapeHeight) => {
2434
+ const height = landScapeWidth || '1366px';
2435
+ const width = landScapeHeight || '1024px';
2436
+ 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;
2437
+ };
2430
2438
  const isMobile = () => isAndroid() || isIos() || isAndroidTablet() || $('#wm-mobile-display:visible').length > 0;
2431
2439
  const isTablet = () => {
2432
2440
  const scope = document.querySelector('.app-page').widget;
@@ -3974,9 +3982,9 @@ class EventNotifier {
3974
3982
  }
3975
3983
  }
3976
3984
 
3977
- const MINIMUM_MOBILE_WIDTH = 480;
3978
- const MINIMUM_TAB_WIDTH = 768;
3979
- const MINIMUM_LARGE_SCREEN_WIDTH = 1280;
3985
+ let MINIMUM_MOBILE_WIDTH = 480;
3986
+ let MINIMUM_TAB_WIDTH = 768;
3987
+ let MINIMUM_LARGE_SCREEN_WIDTH = 1280;
3980
3988
  class IViewportService {
3981
3989
  }
3982
3990
  class Viewport {
@@ -4043,6 +4051,8 @@ class Viewport {
4043
4051
  }
4044
4052
  }
4045
4053
  else {
4054
+ MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-xs')) || 480;
4055
+ MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--screen-sm')) || 768;
4046
4056
  // Tablet specification: min >= 480 max >= 768
4047
4057
  if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
4048
4058
  this.type = 1 /* TABLET */;