@wavemaker/app-ng-runtime 11.5.2-rc.5436 → 11.5.3-next.141099

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 (87) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +1 -8
  2. app-ng-runtime/build-task/esm2020/data/form/form.build.mjs +2 -9
  3. app-ng-runtime/build-task/fesm2015/index.mjs +1 -8
  4. app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
  5. app-ng-runtime/build-task/fesm2020/index.mjs +1 -8
  6. app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
  7. app-ng-runtime/components/base/bundles/index.umd.js +58 -23
  8. app-ng-runtime/components/base/esm2020/widgets/common/base/base-field-validations.mjs +9 -12
  9. app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +39 -13
  10. app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +16 -3
  11. app-ng-runtime/components/base/fesm2015/index.mjs +60 -24
  12. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  13. app-ng-runtime/components/base/fesm2020/index.mjs +60 -24
  14. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  15. app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +0 -1
  16. app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +1 -0
  17. app-ng-runtime/components/data/form/bundles/index.umd.js +1 -1
  18. app-ng-runtime/components/data/form/esm2020/form.component.mjs +2 -2
  19. app-ng-runtime/components/data/form/fesm2015/index.mjs +1 -1
  20. app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
  21. app-ng-runtime/components/data/form/fesm2020/index.mjs +1 -1
  22. app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
  23. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +0 -1
  24. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +0 -1
  25. app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +1 -2
  26. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +0 -1
  27. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
  28. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +0 -1
  29. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
  30. app-ng-runtime/components/input/default/bundles/index.umd.js +10 -18
  31. app-ng-runtime/components/input/default/esm2020/base-form-custom.component.mjs +2 -6
  32. app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +1 -12
  33. app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +10 -3
  34. app-ng-runtime/components/input/default/fesm2015/index.mjs +10 -18
  35. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  36. app-ng-runtime/components/input/default/fesm2020/index.mjs +10 -18
  37. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  38. app-ng-runtime/components/input/epoch/bundles/index.umd.js +11 -8
  39. app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -8
  40. app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +8 -2
  41. app-ng-runtime/components/input/epoch/fesm2015/index.mjs +11 -8
  42. app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
  43. app-ng-runtime/components/input/epoch/fesm2020/index.mjs +11 -8
  44. app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
  45. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +9 -12
  46. app-ng-runtime/components/navigation/menu/esm2020/menu-dropdown-item/menu-dropdown-item.component.mjs +5 -6
  47. app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +5 -6
  48. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -6
  49. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +9 -12
  50. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
  51. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +9 -12
  52. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
  53. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +3 -4
  54. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -4
  55. app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -4
  56. app-ng-runtime/core/bundles/index.umd.js +1 -43
  57. app-ng-runtime/core/esm2020/public_api.mjs +2 -2
  58. app-ng-runtime/core/esm2020/utils/dom.mjs +1 -6
  59. app-ng-runtime/core/esm2020/utils/utils.mjs +1 -35
  60. app-ng-runtime/core/esm2020/utils/watcher.mjs +2 -2
  61. app-ng-runtime/core/fesm2015/index.mjs +2 -43
  62. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  63. app-ng-runtime/core/fesm2020/index.mjs +2 -43
  64. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  65. app-ng-runtime/core/public_api.d.ts +1 -1
  66. app-ng-runtime/core/utils/utils.d.ts +0 -2
  67. app-ng-runtime/package.json +1 -1
  68. app-ng-runtime/runtime/base/bundles/index.umd.js +0 -4
  69. app-ng-runtime/runtime/base/esm2020/services/dynamic-component-ref-provider.service.mjs +1 -4
  70. app-ng-runtime/runtime/base/esm2020/util/fragment-monitor.mjs +1 -2
  71. app-ng-runtime/runtime/base/fesm2015/index.mjs +0 -4
  72. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  73. app-ng-runtime/runtime/base/fesm2020/index.mjs +0 -4
  74. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  75. app-ng-runtime/runtime/base/util/fragment-monitor.d.ts +0 -1
  76. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +0 -1
  77. app-ng-runtime/runtime/dynamic/esm2020/app/services/component-ref-provider.service.mjs +1 -2
  78. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs +0 -1
  79. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs.map +1 -1
  80. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs +0 -1
  81. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs.map +1 -1
  82. app-ng-runtime/variables/bundles/index.umd.js +1 -2
  83. app-ng-runtime/variables/esm2020/service/variables.service.mjs +2 -3
  84. app-ng-runtime/variables/fesm2015/index.mjs +1 -2
  85. app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
  86. app-ng-runtime/variables/fesm2020/index.mjs +1 -2
  87. app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
@@ -1313,17 +1313,14 @@ class BaseDateTimeComponent extends BaseFormCustomComponent {
1313
1313
  this.invalidDateTimeFormat = false;
1314
1314
  this.invokeOnChange(this.datavalue, undefined, false);
1315
1315
  }
1316
- updateTimeValue(el, value, fieldName) {
1317
- let minEl = el.find('input[aria-label="minutes"]');
1318
- let secEl = el.find('input[aria-label="seconds"]');
1319
- minEl.value = secEl.value = '00';
1316
+ updateTimeValue(value, fieldName) {
1320
1317
  if (value.length < 2) {
1321
1318
  setTimeout(() => {
1322
- fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
1319
+ fieldName === 'minutes' ? this.bsTimePicker.updateMinutes('00') : this.bsTimePicker.updateSeconds('00');
1323
1320
  }, 500);
1324
1321
  }
1325
1322
  else {
1326
- fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
1323
+ fieldName === 'minutes' ? this.bsTimePicker.updateMinutes('00') : this.bsTimePicker.updateSeconds('00');
1327
1324
  }
1328
1325
  }
1329
1326
  /**
@@ -1338,7 +1335,7 @@ class BaseDateTimeComponent extends BaseFormCustomComponent {
1338
1335
  _.forEach(inputFields, (field, index) => {
1339
1336
  if (evt.target !== field && field.value === '' && hourValue.length) {
1340
1337
  const fieldName = index === 1 ? 'minutes' : 'seconds';
1341
- this.updateTimeValue($el, hourValue, fieldName);
1338
+ this.updateTimeValue(hourValue, fieldName);
1342
1339
  }
1343
1340
  });
1344
1341
  });
@@ -1713,6 +1710,8 @@ class DateComponent extends BaseDateTimeComponent {
1713
1710
  * This is an internal method triggered when the date input changes
1714
1711
  */
1715
1712
  onDisplayDateChange($event, isNativePicker = false) {
1713
+ this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
1714
+ this.updateFormat('datepattern');
1716
1715
  if (this.isEnterPressedOnDateInput) {
1717
1716
  this.isEnterPressedOnDateInput = false;
1718
1717
  return;
@@ -1794,7 +1793,7 @@ class DateComponent extends BaseDateTimeComponent {
1794
1793
  */
1795
1794
  toggleDpDropdown($event, skipFocus = false) {
1796
1795
  if (this.loadNativeDateInput) {
1797
- // Fixes click event getting triggred twice in Mobile devices.
1796
+ //Fixes click event getting triggred twice in Mobile devices.
1798
1797
  if (!skipFocus) {
1799
1798
  this.onDateTimeInputFocus();
1800
1799
  }
@@ -1826,6 +1825,8 @@ class DateComponent extends BaseDateTimeComponent {
1826
1825
  * This is an internal method triggered when pressing key on the date input
1827
1826
  */
1828
1827
  onDisplayKeydown(event) {
1828
+ this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
1829
+ this.updateFormat('datepattern');
1829
1830
  if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
1830
1831
  event.stopPropagation();
1831
1832
  if (event.key === 'Enter') {
@@ -1862,6 +1863,8 @@ class DateComponent extends BaseDateTimeComponent {
1862
1863
  * This is an internal method triggered when the date selection changes
1863
1864
  */
1864
1865
  onDateChange(newVal) {
1866
+ this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
1867
+ this.updateFormat('datepattern');
1865
1868
  /**
1866
1869
  * Ngx-bootstrap upgrade : To avoid the page load datechange event;
1867
1870
  * TODO: