@iapps/ng-dhis2-ui 1.2.86 → 1.2.89

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.
@@ -4054,8 +4054,12 @@ class LineListTableComponent extends ReactWrapperModule {
4054
4054
  if (this.programStageId || isEvent) {
4055
4055
  setLoading(true);
4056
4056
  d2.eventModule.event
4057
+ .setEndDate(endDate)
4058
+ .setStartDate(startDateState)
4057
4059
  .setProgram(this.programId)
4058
4060
  .setProgramStage(this.programStageId)
4061
+ .setOrgUnit(orgUnitState)
4062
+ .setOuMode(this.ouMode)
4059
4063
  .setPagination(new Pager({
4060
4064
  pageSize: pager.pageSize,
4061
4065
  page: pager.page,
@@ -6040,6 +6044,7 @@ class BaseFormFieldComponent extends ReactWrapperModule {
6040
6044
  setTouched(true);
6041
6045
  };
6042
6046
  const checkValueUniqueness = async () => {
6047
+ console.log('Checking uniqueness for value:', value);
6043
6048
  if (this.field().unique && value && value.length > 0 && touched) {
6044
6049
  setCheckingUniqueness(true);
6045
6050
  setRecordExistError(undefined);
@@ -6457,6 +6462,14 @@ class FormComponent {
6457
6462
  this.#processRules(this.programRuleActions());
6458
6463
  });
6459
6464
  }
6465
+ ngOnInit() {
6466
+ this.values = this.form().getRawValue();
6467
+ // TODO: This is uneccesary emit at this stage of execution, since nothing has changes at initiation and potentially break some of implementation that depends formUpdate, which also is triggered when there is actual change in the form apart form initial values that came with it
6468
+ this.formUpdate.emit(new FormValue(this.form(), this.fields()));
6469
+ }
6470
+ // ngOnChanges(changes: SimpleChanges): void {
6471
+ // this.values = this.form.getRawValue();
6472
+ // }
6460
6473
  ngOnChanges(changes) {
6461
6474
  this.values = this.form().getRawValue();
6462
6475
  }