@iapps/ng-dhis2-ui 1.2.132 → 1.2.133
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.
- package/fesm2022/iapps-ng-dhis2-ui.mjs +348 -48
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +10 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -363,6 +363,7 @@ interface IFormField<T> {
|
|
|
363
363
|
isDataElement?: boolean;
|
|
364
364
|
isAttribute?: boolean;
|
|
365
365
|
isOrgUnit?: boolean;
|
|
366
|
+
isGeometryField?: boolean;
|
|
366
367
|
isEnrollmentDate?: boolean;
|
|
367
368
|
event?: string;
|
|
368
369
|
programStage?: string;
|
|
@@ -528,6 +529,7 @@ declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
|
|
|
528
529
|
isDataElement?: boolean;
|
|
529
530
|
isAttribute?: boolean;
|
|
530
531
|
isOrgUnit?: boolean;
|
|
532
|
+
isGeometryField?: boolean;
|
|
531
533
|
isEnrollmentDate?: boolean;
|
|
532
534
|
event?: string;
|
|
533
535
|
programStage?: string;
|
|
@@ -1011,12 +1013,15 @@ interface IProgramEntryFormConfig {
|
|
|
1011
1013
|
formType: 'TRACKER' | 'EVENT';
|
|
1012
1014
|
hideRegistrationUnit?: boolean;
|
|
1013
1015
|
hideEnrollmentDate?: boolean;
|
|
1016
|
+
hideGeometryField?: boolean;
|
|
1014
1017
|
hideTrackedEntityTypeAttributes?: boolean;
|
|
1015
1018
|
disableRegistrationUnit?: boolean;
|
|
1016
1019
|
disableEnrollmentDate?: boolean;
|
|
1017
1020
|
disabledIncidentDate?: boolean;
|
|
1018
1021
|
excludeProgramStages?: boolean;
|
|
1019
1022
|
excludeInheritedAttributes?: boolean;
|
|
1023
|
+
disableEventDate?: boolean;
|
|
1024
|
+
hideEventDate?: boolean;
|
|
1020
1025
|
includedProgramStages?: string[];
|
|
1021
1026
|
submitButtonLabel?: string;
|
|
1022
1027
|
cancelButtonLabel?: string;
|
|
@@ -1037,10 +1042,13 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
|
1037
1042
|
formType: 'TRACKER' | 'EVENT';
|
|
1038
1043
|
hideRegistrationUnit?: boolean;
|
|
1039
1044
|
hideEnrollmentDate?: boolean;
|
|
1045
|
+
hideGeometryField?: boolean;
|
|
1040
1046
|
hideTrackedEntityTypeAttributes?: boolean;
|
|
1041
1047
|
disableRegistrationUnit?: boolean;
|
|
1042
1048
|
disableEnrollmentDate?: boolean;
|
|
1043
1049
|
disabledIncidentDate?: boolean;
|
|
1050
|
+
disableEventDate?: boolean;
|
|
1051
|
+
hideEventDate?: boolean;
|
|
1044
1052
|
excludeProgramStages?: boolean;
|
|
1045
1053
|
excludeInheritedAttributes?: boolean;
|
|
1046
1054
|
includedProgramStages?: string[];
|
|
@@ -1208,7 +1216,7 @@ declare class D2FormModule {
|
|
|
1208
1216
|
declare class FieldUtil {
|
|
1209
1217
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1210
1218
|
static sanitizeOptions(options: any[]): any;
|
|
1211
|
-
static getFieldType(valueType: string): "
|
|
1219
|
+
static getFieldType(valueType: string): "org-unit" | "date" | "date-time" | "file" | "coordinate" | "number" | "tel" | "email" | "text";
|
|
1212
1220
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1213
1221
|
static getOptionEntities?(options: any[]): any;
|
|
1214
1222
|
}
|
|
@@ -1218,7 +1226,7 @@ declare class FieldControlTypeUtil {
|
|
|
1218
1226
|
}
|
|
1219
1227
|
|
|
1220
1228
|
declare class FormFieldTypeUtil {
|
|
1221
|
-
static getFieldType(valueType: string): "
|
|
1229
|
+
static getFieldType(valueType: string): "org-unit" | "date-time" | "image" | "file" | "coordinate" | "number" | "text";
|
|
1222
1230
|
}
|
|
1223
1231
|
|
|
1224
1232
|
declare class FormUtil {
|