@wavemaker/app-ng-runtime 11.4.0-next.25501 → 11.4.0-next.25701

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 (145) 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 +9 -11
  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 +3 -3
  6. app-ng-runtime/build-task/esm2015/navigation/popover/popover.build.js +3 -3
  7. app-ng-runtime/build-task/fesm2015/index.js +9 -11
  8. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  9. app-ng-runtime/components/base/bundles/index.umd.js +29 -4
  10. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  11. app-ng-runtime/components/base/esm2015/public_api.js +2 -2
  12. app-ng-runtime/components/base/esm2015/utils/widget-utils.js +22 -4
  13. app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
  14. app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
  15. app-ng-runtime/components/base/fesm2015/index.js +30 -6
  16. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  17. app-ng-runtime/components/base/index.metadata.json +1 -1
  18. app-ng-runtime/components/base/public_api.d.ts +1 -1
  19. app-ng-runtime/components/base/utils/widget-utils.d.ts +8 -1
  20. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -2
  21. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js.map +1 -1
  22. app-ng-runtime/components/basic/rich-text-editor/esm2015/rich-text-editor.component.js +3 -3
  23. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js +2 -2
  24. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js.map +1 -1
  25. app-ng-runtime/components/basic/tree/bundles/index.umd.js +280 -256
  26. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  27. app-ng-runtime/components/basic/tree/esm2015/public_api.js +2 -2
  28. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +322 -0
  29. app-ng-runtime/components/basic/tree/esm2015/tree.module.js +3 -3
  30. app-ng-runtime/components/basic/tree/fesm2015/index.js +260 -248
  31. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  32. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  33. app-ng-runtime/components/basic/tree/public_api.d.ts +1 -1
  34. app-ng-runtime/components/basic/tree/tree.component.d.ts +34 -0
  35. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
  36. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  37. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
  38. app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
  39. app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
  40. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  41. app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
  42. app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
  43. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  44. app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
  45. app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
  46. app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
  47. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  48. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  49. app-ng-runtime/components/data/list/bundles/index.umd.js +63 -48
  50. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  51. app-ng-runtime/components/data/list/esm2015/list.component.js +61 -46
  52. app-ng-runtime/components/data/list/fesm2015/index.js +60 -45
  53. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  54. app-ng-runtime/components/data/list/index.metadata.json +1 -1
  55. app-ng-runtime/components/data/list/list.component.d.ts +1 -1
  56. app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
  57. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  58. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
  59. app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
  60. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  61. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  62. app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
  63. app-ng-runtime/components/data/table/bundles/index.umd.js +66 -13
  64. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  65. app-ng-runtime/components/data/table/esm2015/table-filter.directive.js +3 -2
  66. app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
  67. app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
  68. app-ng-runtime/components/data/table/fesm2015/index.js +66 -13
  69. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  70. app-ng-runtime/components/data/table/index.metadata.json +1 -1
  71. app-ng-runtime/components/data/table/table.component.d.ts +9 -0
  72. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
  73. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
  74. app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
  75. app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
  76. app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
  77. app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
  78. app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
  79. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +5 -0
  80. app-ng-runtime/components/input/epoch/bundles/index.umd.js +97 -32
  81. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  82. app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
  83. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +73 -26
  84. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +3 -4
  85. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
  86. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.component.js +2 -2
  87. app-ng-runtime/components/input/epoch/fesm2015/index.js +105 -39
  88. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  89. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  90. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
  91. app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
  92. app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
  93. app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
  94. app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
  95. app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
  96. app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
  97. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
  98. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
  99. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -1
  100. app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
  101. app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +5 -3
  102. app-ng-runtime/components/navigation/popover/fesm2015/index.js +4 -2
  103. app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
  104. app-ng-runtime/core/bundles/index.umd.js +7 -1
  105. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  106. app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
  107. app-ng-runtime/core/fesm2015/index.js +7 -1
  108. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  109. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
  110. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
  111. app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
  112. app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
  113. app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
  114. app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
  115. app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
  116. app-ng-runtime/mobile/core/bundles/index.umd.js +2 -1
  117. app-ng-runtime/mobile/core/bundles/index.umd.js.map +1 -1
  118. app-ng-runtime/mobile/core/esm2015/services/device.service.js +3 -2
  119. app-ng-runtime/mobile/core/fesm2015/index.js +2 -1
  120. app-ng-runtime/mobile/core/fesm2015/index.js.map +1 -1
  121. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +3 -2
  122. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js.map +1 -1
  123. app-ng-runtime/mobile/runtime-dynamic/esm2015/services/live-sync.service.js +4 -3
  124. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js +3 -2
  125. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js.map +1 -1
  126. app-ng-runtime/package.json +1 -1
  127. app-ng-runtime/runtime/base/bundles/index.umd.js +1 -0
  128. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  129. app-ng-runtime/runtime/base/esm2015/services/prefab-manager.service.js +2 -1
  130. app-ng-runtime/runtime/base/fesm2015/index.js +1 -0
  131. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  132. app-ng-runtime/scripts/datatable/datatable.js +117 -48
  133. app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -3
  134. app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
  135. app-ng-runtime/variables/bundles/index.umd.js +19 -16
  136. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  137. app-ng-runtime/variables/esm2015/constants/variables.constants.js +3 -9
  138. app-ng-runtime/variables/esm2015/manager/action/notification-action.manager.js +5 -6
  139. app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
  140. app-ng-runtime/variables/fesm2015/index.js +13 -14
  141. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  142. app-ng-runtime/variables/index.metadata.json +1 -1
  143. app-ng-runtime/variables/service/variables.service.d.ts +4 -0
  144. app-ng-runtime/components/basic/tree/esm2015/tree.directive.js +0 -310
  145. app-ng-runtime/components/basic/tree/tree.directive.d.ts +0 -35
@@ -450,6 +450,21 @@
450
450
  var routeRegex = new RegExp('^(#\/|#)' + routeName + '$');
451
451
  return routeRegex.test(link);
452
452
  };
453
+ /**
454
+ * returns true if the menu has link to the current page.
455
+ * @param nodes
456
+ * @param routeUrl
457
+ */
458
+ var hasLinkToCurrentPage = function (nodes, routeUrl) {
459
+ return nodes.some(function (node) {
460
+ if (isActiveNavItem(node.link, routeUrl)) {
461
+ return true;
462
+ }
463
+ if (node.children) {
464
+ return hasLinkToCurrentPage(node.children, routeUrl);
465
+ }
466
+ });
467
+ };
453
468
  /**
454
469
  * Returns the orderBy Expression based on the 'sort 'option in pageable object
455
470
  * returned by backend
@@ -796,9 +811,12 @@
796
811
  * @returns {Array}
797
812
  */
798
813
  var getKeyboardFocusableElements = function (element) {
799
- return [element.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter(function (el) {
800
- return (!el[0].hasAttribute('disabled') && !el[0].hasAttribute('hidden'));
801
- })[0];
814
+ var elementNodeList = element.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable]');
815
+ var elements = Array.from(elementNodeList);
816
+ return elements.filter(function (el) {
817
+ return (!el.hasAttribute('disabled') && !el.hasAttribute('hidden')
818
+ && (!el.hasAttribute('tabindex') || (el.hasAttribute('tabindex') && !el.getAttribute("tabindex").startsWith('-'))));
819
+ });
802
820
  };
803
821
 
804
822
  exports.APPLY_STYLES_TYPE = void 0;
@@ -3229,6 +3247,11 @@
3229
3247
  if (openedDialogs.indexOf(ref) !== -1) {
3230
3248
  openedDialogs.splice(openedDialogs.indexOf(ref), 1);
3231
3249
  }
3250
+ if (openedDialogs.length === 0 && (core$1.isMobile() || core$1.isMobileApp())) {
3251
+ //Fix for [WMS-23948]: remove aria-hidden attribute only after all dialogs are closed
3252
+ var parentSelector = $('body > app-root')[0];
3253
+ parentSelector.removeAttribute('aria-hidden');
3254
+ }
3232
3255
  };
3233
3256
  DialogServiceImpl.prototype.getOpenedDialogs = function () {
3234
3257
  return openedDialogs;
@@ -4752,7 +4775,8 @@
4752
4775
  mindate: 'mindate',
4753
4776
  maxdate: 'maxdate',
4754
4777
  excludedates: 'excludedates',
4755
- excludedays: 'excludedays'
4778
+ excludedays: 'excludedays',
4779
+ invalidNumber: 'invalidNumber'
4756
4780
  };
4757
4781
  var BaseFieldValidations = /** @class */ (function () {
4758
4782
  function BaseFieldValidations(instance, formwidget, widgettype, widgetControl, widgetContext, tableFieldType) {
@@ -5471,6 +5495,7 @@
5471
5495
  exports.getWidgetPropsByType = getWidgetPropsByType;
5472
5496
  exports.groupData = groupData;
5473
5497
  exports.handleHeaderClick = handleHeaderClick;
5498
+ exports.hasLinkToCurrentPage = hasLinkToCurrentPage;
5474
5499
  exports.interpolateBindExpressions = interpolateBindExpressions;
5475
5500
  exports.isActiveNavItem = isActiveNavItem;
5476
5501
  exports.isBooleanAttr = isBooleanAttr;