@wavemaker/app-ng-runtime 11.4.3-next.30201 → 11.4.3-rc.125

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 (63) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +1 -1
  2. app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/build-task/esm2015/input/default/button/button.build.js +2 -2
  4. app-ng-runtime/build-task/fesm2015/index.js +1 -1
  5. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/base/bundles/index.umd.js +21 -3
  7. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  8. app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +22 -4
  9. app-ng-runtime/components/base/fesm2015/index.js +21 -3
  10. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  11. app-ng-runtime/components/basic/search/bundles/index.umd.js +1 -1
  12. app-ng-runtime/components/basic/search/bundles/index.umd.js.map +1 -1
  13. app-ng-runtime/components/basic/search/esm2015/search.component.js +2 -2
  14. app-ng-runtime/components/basic/search/fesm2015/index.js +1 -1
  15. app-ng-runtime/components/basic/search/fesm2015/index.js.map +1 -1
  16. app-ng-runtime/components/basic/search/index.metadata.json +1 -1
  17. app-ng-runtime/components/data/table/bundles/index.umd.js +6 -1
  18. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  19. app-ng-runtime/components/data/table/esm2015/table.component.js +7 -2
  20. app-ng-runtime/components/data/table/fesm2015/index.js +6 -1
  21. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  22. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +1 -1
  23. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js.map +1 -1
  24. app-ng-runtime/components/dialogs/alert-dialog/esm2015/alert-dialog.component.js +2 -2
  25. app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.js +1 -1
  26. app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.js.map +1 -1
  27. app-ng-runtime/components/dialogs/alert-dialog/index.metadata.json +1 -1
  28. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +2 -2
  29. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js.map +1 -1
  30. app-ng-runtime/components/dialogs/design-dialog/esm2015/dialog.component.js +2 -2
  31. app-ng-runtime/components/dialogs/design-dialog/esm2015/dialog.props.js +2 -2
  32. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.js +2 -2
  33. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.js.map +1 -1
  34. app-ng-runtime/components/input/epoch/bundles/index.umd.js +8 -2
  35. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  36. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +7 -1
  37. app-ng-runtime/components/input/epoch/esm2015/date/date.props.js +2 -2
  38. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.props.js +2 -2
  39. app-ng-runtime/components/input/epoch/fesm2015/index.js +8 -2
  40. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  41. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +1 -1
  42. app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
  43. app-ng-runtime/components/navigation/popover/esm2015/popover.props.js +2 -2
  44. app-ng-runtime/components/navigation/popover/fesm2015/index.js +1 -1
  45. app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
  46. app-ng-runtime/core/bundles/index.umd.js +3 -1
  47. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  48. app-ng-runtime/core/esm2015/services/state-persistence.service.js +4 -2
  49. app-ng-runtime/core/fesm2015/index.js +3 -1
  50. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  51. app-ng-runtime/http/bundles/index.umd.js +3 -3
  52. app-ng-runtime/http/bundles/index.umd.js.map +1 -1
  53. app-ng-runtime/http/esm2015/http.service.js +4 -4
  54. app-ng-runtime/http/fesm2015/index.js +3 -3
  55. app-ng-runtime/http/fesm2015/index.js.map +1 -1
  56. app-ng-runtime/http/http.service.d.ts +2 -2
  57. app-ng-runtime/package.json +1 -1
  58. app-ng-runtime/scripts/datatable/datatable.js +6 -0
  59. app-ng-runtime/variables/bundles/index.umd.js +1 -0
  60. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  61. app-ng-runtime/variables/esm2015/service/variables.service.js +2 -1
  62. app-ng-runtime/variables/fesm2015/index.js +1 -0
  63. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
@@ -4902,7 +4902,13 @@
4902
4902
  };
4903
4903
  this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]);
4904
4904
  if (this.widgetContext.ngform.touched) {
4905
- this.widgetControl.updateValueAndValidity();
4905
+ var opt = {};
4906
+ // updating the value only when prevData is not equal to current value.
4907
+ // emitEvent flag will prevent from emitting the valueChanges when value is equal to the prevDatavalue.
4908
+ if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
4909
+ opt['emitEvent'] = false;
4910
+ }
4911
+ this.widgetControl.updateValueAndValidity(opt);
4906
4912
  }
4907
4913
  };
4908
4914
  BaseFieldValidations.prototype.isDefaultValidator = function (type) {
@@ -4967,8 +4973,14 @@
4967
4973
  BaseFieldValidations.prototype.validate = function () {
4968
4974
  this.applyDefaultValidators();
4969
4975
  if (this._asyncValidatorFn) {
4976
+ var opt = {};
4977
+ // updating the value only when prevData is not equal to current value.
4978
+ // emitEvent flag will prevent from emitting the valueChanges when value is equal to the prevDatavalue.
4979
+ if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
4980
+ opt['emitEvent'] = false;
4981
+ }
4970
4982
  this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]);
4971
- this.widgetControl.updateValueAndValidity();
4983
+ this.widgetControl.updateValueAndValidity(opt);
4972
4984
  }
4973
4985
  // show the validation erros show when form is touched and not on load. This just highlights the field that is subscribed for changes.
4974
4986
  if (this.widgetContext.ngform.touched) {
@@ -4989,8 +5001,14 @@
4989
5001
  // invokes both custom sync validations and default validations.
4990
5002
  BaseFieldValidations.prototype.applyDefaultValidators = function () {
4991
5003
  var validators = this.getDefaultValidators();
5004
+ var opt = {};
5005
+ // updating the value only when prevData is not equal to current value.
5006
+ // emitEvent flag will prevent from emitting the valueChanges when value is equal to the prevDatavalue.
5007
+ if (this.formwidget && this.instance.value === this.formwidget.prevDatavalue) {
5008
+ opt['emitEvent'] = false;
5009
+ }
4992
5010
  this.widgetControl.setValidators(_.concat(this._syncValidators || [], validators));
4993
- this.widgetControl.updateValueAndValidity();
5011
+ this.widgetControl.updateValueAndValidity(opt);
4994
5012
  this.setCustomValidationMessage();
4995
5013
  };
4996
5014
  BaseFieldValidations.prototype.setCustomValidationMessage = function () {