@wavemaker/app-ng-runtime 11.4.0-next.28152 → 11.4.0-rc.121

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 (153) hide show
  1. app-ng-runtime/build-task/basic/tree/tree.build.d.ts +1 -2
  2. app-ng-runtime/build-task/bundles/index.umd.js +8 -10
  3. app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
  4. app-ng-runtime/build-task/esm2015/basic/tree/tree.build.js +3 -4
  5. app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
  6. app-ng-runtime/build-task/esm2015/navigation/popover/popover.build.js +3 -3
  7. app-ng-runtime/build-task/fesm2015/index.js +8 -10
  8. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  9. app-ng-runtime/components/base/bundles/index.umd.js +44 -8
  10. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  11. app-ng-runtime/components/base/esm2015/directives/show-in-device.directive.js +16 -5
  12. app-ng-runtime/components/base/esm2015/public_api.js +2 -2
  13. app-ng-runtime/components/base/esm2015/utils/widget-utils.js +22 -4
  14. app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
  15. app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
  16. app-ng-runtime/components/base/fesm2015/index.js +45 -10
  17. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  18. app-ng-runtime/components/base/index.metadata.json +1 -1
  19. app-ng-runtime/components/base/public_api.d.ts +1 -1
  20. app-ng-runtime/components/base/utils/widget-utils.d.ts +8 -1
  21. app-ng-runtime/components/basic/tree/bundles/index.umd.js +369 -245
  22. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  23. app-ng-runtime/components/basic/tree/esm2015/public_api.js +2 -2
  24. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +403 -0
  25. app-ng-runtime/components/basic/tree/esm2015/tree.module.js +3 -3
  26. app-ng-runtime/components/basic/tree/fesm2015/index.js +333 -240
  27. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  28. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  29. app-ng-runtime/components/basic/tree/public_api.d.ts +1 -1
  30. app-ng-runtime/components/basic/tree/tree.component.d.ts +43 -0
  31. app-ng-runtime/components/chart/bundles/index.umd.js +1 -1
  32. app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
  33. app-ng-runtime/components/chart/esm2015/chart.component.js +2 -2
  34. app-ng-runtime/components/chart/fesm2015/index.js +1 -1
  35. app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
  36. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
  37. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  38. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
  39. app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
  40. app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
  41. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  42. app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
  43. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +43 -2
  44. app-ng-runtime/components/containers/wizard/bundles/index.umd.js.map +1 -1
  45. app-ng-runtime/components/containers/wizard/esm2015/wizard-step/wizard-step.props.js +3 -2
  46. app-ng-runtime/components/containers/wizard/esm2015/wizard.component.js +42 -2
  47. app-ng-runtime/components/containers/wizard/fesm2015/index.js +43 -2
  48. app-ng-runtime/components/containers/wizard/fesm2015/index.js.map +1 -1
  49. app-ng-runtime/components/containers/wizard/index.metadata.json +1 -1
  50. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  51. app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
  52. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  53. app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
  54. app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
  55. app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
  56. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  57. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  58. app-ng-runtime/components/data/list/bundles/index.umd.js +52 -43
  59. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  60. app-ng-runtime/components/data/list/esm2015/list.component.js +52 -43
  61. app-ng-runtime/components/data/list/fesm2015/index.js +51 -42
  62. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  63. app-ng-runtime/components/data/list/index.metadata.json +1 -1
  64. app-ng-runtime/components/data/list/list.component.d.ts +1 -1
  65. app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
  66. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  67. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
  68. app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
  69. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  70. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  71. app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
  72. app-ng-runtime/components/data/table/bundles/index.umd.js +64 -12
  73. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  74. app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
  75. app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
  76. app-ng-runtime/components/data/table/fesm2015/index.js +64 -12
  77. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  78. app-ng-runtime/components/data/table/index.metadata.json +1 -1
  79. app-ng-runtime/components/data/table/table.component.d.ts +9 -0
  80. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
  81. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
  82. app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
  83. app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
  84. app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
  85. app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
  86. app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
  87. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -0
  88. app-ng-runtime/components/input/epoch/bundles/index.umd.js +78 -35
  89. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  90. app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
  91. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +55 -31
  92. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +3 -3
  93. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
  94. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.component.js +2 -2
  95. app-ng-runtime/components/input/epoch/fesm2015/index.js +87 -43
  96. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  97. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  98. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
  99. app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
  100. app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
  101. app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
  102. app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
  103. app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
  104. app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
  105. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
  106. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
  107. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -1
  108. app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
  109. app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +5 -3
  110. app-ng-runtime/components/navigation/popover/fesm2015/index.js +4 -2
  111. app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
  112. app-ng-runtime/core/bundles/index.umd.js +19 -3
  113. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  114. app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
  115. app-ng-runtime/core/esm2015/services/viewport.service.js +6 -4
  116. app-ng-runtime/core/esm2015/utils/utils.js +11 -3
  117. app-ng-runtime/core/fesm2015/index.js +22 -6
  118. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  119. app-ng-runtime/core/index.metadata.json +1 -1
  120. app-ng-runtime/core/utils/utils.d.ts +2 -2
  121. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
  122. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
  123. app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
  124. app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
  125. app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
  126. app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
  127. app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
  128. app-ng-runtime/package.json +1 -1
  129. app-ng-runtime/runtime/base/bundles/index.umd.js +164 -133
  130. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  131. app-ng-runtime/runtime/base/esm2015/components/app-component/app.component.js +2 -2
  132. app-ng-runtime/runtime/base/esm2015/public_api.js +2 -1
  133. app-ng-runtime/runtime/base/esm2015/runtime-base.module.js +3 -1
  134. app-ng-runtime/runtime/base/esm2015/services/app.service.js +3 -1
  135. app-ng-runtime/runtime/base/esm2015/services/pipe.service.js +33 -0
  136. app-ng-runtime/runtime/base/fesm2015/index.js +149 -120
  137. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  138. app-ng-runtime/runtime/base/index.metadata.json +1 -1
  139. app-ng-runtime/runtime/base/public_api.d.ts +1 -0
  140. app-ng-runtime/runtime/base/services/pipe.service.d.ts +9 -0
  141. app-ng-runtime/scripts/datatable/datatable.js +86 -36
  142. app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
  143. app-ng-runtime/variables/bundles/index.umd.js +37 -22
  144. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  145. app-ng-runtime/variables/esm2015/manager/action/notification-action.manager.js +29 -24
  146. app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
  147. app-ng-runtime/variables/fesm2015/index.js +35 -24
  148. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  149. app-ng-runtime/variables/index.metadata.json +1 -1
  150. app-ng-runtime/variables/manager/action/notification-action.manager.d.ts +1 -0
  151. app-ng-runtime/variables/service/variables.service.d.ts +4 -0
  152. app-ng-runtime/components/basic/tree/esm2015/tree.directive.js +0 -310
  153. app-ng-runtime/components/basic/tree/tree.directive.d.ts +0 -35
@@ -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 */;
@@ -4778,7 +4788,13 @@ class PaginationService {
4778
4788
  fieldDefs = [];
4779
4789
  parent.gridOptions.setCurrentPage(1);
4780
4790
  }
4781
- let currentPage = parent.currentPage;
4791
+ let currentPage;
4792
+ if (parent.widgetType === 'wm-table') {
4793
+ currentPage = parent.gridOptions.showviewlessbutton && (parent.gridOptions.mode === 'viewless') ? parent.gridOptions.getCurrentPage() : parent.currentPage;
4794
+ }
4795
+ else {
4796
+ currentPage = parent.currentPage;
4797
+ }
4782
4798
  const dataNavigator = parent.dataNavigator;
4783
4799
  const pagesize = parent.pagesize;
4784
4800
  if (!isDefined(fieldDefs) || dataNavigator.isFirstPage()) {