@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
@@ -315,13 +315,9 @@ class BaseFormCustomComponent extends BaseFormComponent {
315
315
  invokeOnChange(value, $event, valid) {
316
316
  // let the angular know about the change
317
317
  this._onChange(value);
318
- if ($event) {
318
+ if (valid) {
319
319
  super.invokeOnChange(value, $event);
320
320
  }
321
- else if (valid) {
322
- // Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.
323
- this.updatePrevDatavalue(value);
324
- }
325
321
  }
326
322
  invokeOnTouched($event) {
327
323
  this._onTouched();
@@ -1422,9 +1418,16 @@ class NumberLocale extends BaseInput {
1422
1418
  * @returns {number}
1423
1419
  */
1424
1420
  parseNumber(val) {
1425
- // WMS-22179: split number based on the decimal separator in the val
1421
+ // WMS-22179: split number based on the decimal seperator in the val
1422
+ let seperator;
1423
+ if (val.indexOf(this.DECIMAL) > -1) {
1424
+ seperator = this.DECIMAL;
1425
+ }
1426
+ else {
1427
+ seperator = '.';
1428
+ }
1426
1429
  // splits string into two parts. decimal and number.
1427
- const parts = val.split(this.inputmode === INPUTMODE.FINANCIAL ? (val.indexOf(this.DECIMAL) > -1 ? this.DECIMAL : '.') : this.DECIMAL);
1430
+ const parts = val.split(seperator);
1428
1431
  if (!parts.length) {
1429
1432
  return null;
1430
1433
  }
@@ -2145,17 +2148,6 @@ class SelectComponent extends DatasetAwareFormComponent {
2145
2148
  return;
2146
2149
  }
2147
2150
  if (key === 'class' || key === 'tabindex') {
2148
- if (key === 'class') {
2149
- // After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
2150
- const isNgUntouchedValid = this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid');
2151
- if (isNgUntouchedValid && nv.includes('ng-untouched') && nv.includes('ng-invalid')) {
2152
- setTimeout(() => {
2153
- if (this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid') && this.selectEl.nativeElement.classList.contains('ng-invalid')) {
2154
- this.selectEl.nativeElement.classList.remove('ng-invalid');
2155
- }
2156
- });
2157
- }
2158
- }
2159
2151
  return;
2160
2152
  }
2161
2153
  else if (key === 'readonly') {