@iapps/ng-dhis2-ui 1.2.87 → 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);
|
|
@@ -6459,6 +6464,7 @@ class FormComponent {
|
|
|
6459
6464
|
}
|
|
6460
6465
|
ngOnInit() {
|
|
6461
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
|
|
6462
6468
|
this.formUpdate.emit(new FormValue(this.form(), this.fields()));
|
|
6463
6469
|
}
|
|
6464
6470
|
// ngOnChanges(changes: SimpleChanges): void {
|