@iapps/ng-dhis2-ui 1.2.122 → 1.2.129
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 +2995 -2099
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +200 -115
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import React, { ComponentProps } from 'react';
|
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
|
|
7
|
-
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery,
|
|
7
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2EventResponse, D2TrackerResponse } from '@iapps/d2-web-sdk';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
9
|
import { Observable, Subject } from 'rxjs';
|
|
10
10
|
import * as i8 from '@angular/forms';
|
|
@@ -257,7 +257,7 @@ declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
257
257
|
action: string;
|
|
258
258
|
data: TrackedEntityInstance | DHIS2Event;
|
|
259
259
|
}>;
|
|
260
|
-
rowsSelected: EventEmitter<
|
|
260
|
+
rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
|
|
261
261
|
showActionButtons: boolean;
|
|
262
262
|
showEnrollmentDates: boolean;
|
|
263
263
|
showDownloadButton: boolean;
|
|
@@ -495,6 +495,7 @@ interface IFormMetadata {
|
|
|
495
495
|
description?: string;
|
|
496
496
|
fields: IFormField<string>[];
|
|
497
497
|
sections: IFormMetadataSection[];
|
|
498
|
+
programStageSections: IFormMetadataSection[];
|
|
498
499
|
rules: any[];
|
|
499
500
|
downloadSqlView?: string;
|
|
500
501
|
}
|
|
@@ -709,6 +710,7 @@ declare class FormMetaData implements IFormMetadata {
|
|
|
709
710
|
name: string;
|
|
710
711
|
description?: string | undefined;
|
|
711
712
|
downloadSqlView?: string | undefined;
|
|
713
|
+
programStageSections: IFormMetadataSection[];
|
|
712
714
|
constructor(params: {
|
|
713
715
|
programs: Program[];
|
|
714
716
|
locale?: string;
|
|
@@ -758,20 +760,76 @@ interface EocForm {
|
|
|
758
760
|
}
|
|
759
761
|
|
|
760
762
|
declare enum OrgUnitLevel {
|
|
763
|
+
SHEHIA = "SHEHIA",
|
|
761
764
|
FACILITY = "FACILITY",
|
|
762
765
|
HAMLET = "HAMLET",
|
|
763
766
|
STREET = "STREET",
|
|
764
767
|
WARD = "WARD",
|
|
765
768
|
COUNCIL = "COUNCIL",
|
|
766
769
|
REGION = "REGION",
|
|
767
|
-
NATIONAL = "NATIONAL"
|
|
770
|
+
NATIONAL = "NATIONAL",
|
|
771
|
+
VILLAGE = "VILLAGE"
|
|
772
|
+
}
|
|
773
|
+
type OrgUnitLevelKeyword = 'COUNTRY' | 'REGION' | 'COUNCIL' | 'DISTRICT' | 'WARD' | 'SHEHIA' | 'VILLAGE' | 'HAMLET' | 'FACILITY' | 'HOSPITAL' | 'HEALTH_CENTRE' | 'DISPENSARY' | 'CLINIC' | 'UNKNOWN';
|
|
774
|
+
type OrgUnitSemanticType = 'COUNTRY' | 'REGION' | 'COUNCIL' | 'DISTRICT' | 'WARD' | 'SHEHIA' | 'VILLAGE' | 'HAMLET' | 'FACILITY' | 'HOSPITAL' | 'HEALTH_CENTRE' | 'DISPENSARY' | 'CLINIC' | 'UNKNOWN' | string;
|
|
775
|
+
declare enum LevelSelectorMode {
|
|
776
|
+
RELATIVE = "relative",
|
|
777
|
+
ABSOLUTE = "absolute",
|
|
778
|
+
KEYWORD = "keyword"
|
|
779
|
+
}
|
|
780
|
+
declare enum LevelMatchMode {
|
|
781
|
+
STRICT = "strict",
|
|
782
|
+
SOFT = "soft"
|
|
783
|
+
}
|
|
784
|
+
interface RelativeLevelSelector {
|
|
785
|
+
mode: LevelSelectorMode.RELATIVE;
|
|
786
|
+
offset: number;
|
|
787
|
+
maxOffset?: number;
|
|
788
|
+
}
|
|
789
|
+
interface AbsoluteLevelSelector {
|
|
790
|
+
mode: LevelSelectorMode.ABSOLUTE;
|
|
791
|
+
level: number;
|
|
792
|
+
}
|
|
793
|
+
interface KeywordLevelSelector {
|
|
794
|
+
mode: LevelSelectorMode.KEYWORD;
|
|
795
|
+
keyword: string;
|
|
796
|
+
}
|
|
797
|
+
type LevelSelector = RelativeLevelSelector | AbsoluteLevelSelector | KeywordLevelSelector;
|
|
798
|
+
interface OrgUnitTypeKeywordRule {
|
|
799
|
+
type: OrgUnitSemanticType;
|
|
800
|
+
keywords: string[];
|
|
801
|
+
baseConfidence?: number;
|
|
768
802
|
}
|
|
769
803
|
interface CustomOrgUnitConfig {
|
|
770
804
|
field: string;
|
|
771
805
|
orgUnit: string;
|
|
772
|
-
|
|
806
|
+
levelSelector?: LevelSelector;
|
|
807
|
+
level?: OrgUnitLevel;
|
|
808
|
+
confidence?: number;
|
|
809
|
+
typeRules?: OrgUnitTypeKeywordRule[];
|
|
810
|
+
levelMatchMode?: LevelMatchMode;
|
|
811
|
+
}
|
|
812
|
+
interface CustomOrgUnitRootConfig {
|
|
813
|
+
field: string;
|
|
814
|
+
orgUnit: string;
|
|
815
|
+
levelSelector?: LevelSelector;
|
|
816
|
+
level?: OrgUnitLevel;
|
|
817
|
+
confidence?: number;
|
|
818
|
+
typeRules?: OrgUnitTypeKeywordRule[];
|
|
819
|
+
levelMatchMode?: LevelMatchMode;
|
|
820
|
+
}
|
|
821
|
+
interface KeywordLevelMap {
|
|
822
|
+
[keyword: string]: number;
|
|
823
|
+
}
|
|
824
|
+
declare const ORG_UNIT_LEVEL_TO_KEYWORD: Record<OrgUnitLevel, OrgUnitLevelKeyword>;
|
|
825
|
+
interface OrgUnitTypeMatch {
|
|
826
|
+
type: OrgUnitSemanticType;
|
|
773
827
|
confidence: number;
|
|
774
828
|
}
|
|
829
|
+
declare const DEFAULT_KEYWORD_TO_LEVEL: KeywordLevelMap;
|
|
830
|
+
declare const FACILITY_KEYWORDS: string[];
|
|
831
|
+
declare const GLOBAL_TYPE_RULES: OrgUnitTypeKeywordRule[];
|
|
832
|
+
declare const LOWERCASE_FACILITY_KEYWORDS: string[];
|
|
775
833
|
|
|
776
834
|
declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
777
835
|
#private;
|
|
@@ -829,12 +887,15 @@ declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
829
887
|
|
|
830
888
|
declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
831
889
|
#private;
|
|
890
|
+
programEntryFormConfig: _angular_core.InputSignal<any>;
|
|
832
891
|
formConfig: _angular_core.InputSignal<FormConfig>;
|
|
833
892
|
fields: _angular_core.InputSignal<IFormField<string>[]>;
|
|
834
893
|
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
835
894
|
isFormHorizontal: _angular_core.InputSignal<boolean>;
|
|
836
895
|
showSaveButton: _angular_core.InputSignal<boolean>;
|
|
837
896
|
fieldsData: _angular_core.InputSignal<FieldsData>;
|
|
897
|
+
formMetaData: _angular_core.InputSignal<any>;
|
|
898
|
+
programEntryFormMetaData: _angular_core.InputSignal<any>;
|
|
838
899
|
fieldClass: _angular_core.InputSignal<string>;
|
|
839
900
|
shouldRenderAsCheckBoxesButton: _angular_core.InputSignal<boolean>;
|
|
840
901
|
programRuleActions: _angular_core.InputSignal<IMetadataRuleAction[]>;
|
|
@@ -842,15 +903,24 @@ declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
842
903
|
dataId: _angular_core.InputSignal<string>;
|
|
843
904
|
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
844
905
|
program: _angular_core.InputSignal<string>;
|
|
906
|
+
collapsibleSections: _angular_core.InputSignal<boolean>;
|
|
907
|
+
private openSectionId;
|
|
845
908
|
configuration: _angular_core.Signal<FormConfig>;
|
|
846
909
|
formUpdate: EventEmitter<any>;
|
|
847
910
|
formValidityUpdate: EventEmitter<boolean>;
|
|
848
911
|
fieldComponents: FormFieldComponent[];
|
|
849
912
|
values: any;
|
|
850
|
-
get sanitizedFields(): IFormField<string>[];
|
|
851
913
|
get layoutCssClass(): string;
|
|
852
914
|
ruleProcessor: EffectRef;
|
|
853
915
|
constructor();
|
|
916
|
+
resolveSections(meta: any): any;
|
|
917
|
+
private getSections;
|
|
918
|
+
openSection(section: {
|
|
919
|
+
id?: string | number;
|
|
920
|
+
}, index: number): void;
|
|
921
|
+
isSectionOpen(section: {
|
|
922
|
+
id?: string | number;
|
|
923
|
+
}, index: number): boolean;
|
|
854
924
|
ngOnInit(): void;
|
|
855
925
|
ngOnChanges(changes: SimpleChanges): void;
|
|
856
926
|
onSubmit(): void;
|
|
@@ -859,8 +929,12 @@ declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
859
929
|
isFormInValid(): boolean;
|
|
860
930
|
onRunTimeOptionUpdate(result: any): void;
|
|
861
931
|
ngOnDestroy(): void;
|
|
932
|
+
private readonly hiddenFieldIds;
|
|
933
|
+
get sanitizedFields(): IFormField<string>[];
|
|
934
|
+
getVisibleSectionFields(section: any): IFormField<string>[];
|
|
935
|
+
private isFieldHiddenByRules;
|
|
862
936
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
863
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
937
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "programEntryFormConfig": { "alias": "programEntryFormConfig"; "required": false; "isSignal": true; }; "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": false; "isSignal": true; }; "programEntryFormMetaData": { "alias": "programEntryFormMetaData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; "collapsibleSections": { "alias": "collapsibleSections"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
864
938
|
}
|
|
865
939
|
|
|
866
940
|
declare class RepeatableFormComponent implements OnInit {
|
|
@@ -925,6 +999,108 @@ declare class SectionFormComponent implements OnInit {
|
|
|
925
999
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionFormComponent, "ng-dhis2-ui-section-form", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": true; "isSignal": true; }; "dataValueEntities": { "alias": "dataValueEntities"; "required": true; "isSignal": true; }; }, { "save": "save"; "formUpdate": "formUpdate"; "cancel": "cancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
926
1000
|
}
|
|
927
1001
|
|
|
1002
|
+
type AutoAssignedValues = {
|
|
1003
|
+
field: string;
|
|
1004
|
+
value: string;
|
|
1005
|
+
};
|
|
1006
|
+
interface IProgramEntryFormConfig {
|
|
1007
|
+
program: string;
|
|
1008
|
+
programStage?: string;
|
|
1009
|
+
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1010
|
+
formType: 'TRACKER' | 'EVENT';
|
|
1011
|
+
hideRegistrationUnit?: boolean;
|
|
1012
|
+
hideEnrollmentDate?: boolean;
|
|
1013
|
+
hideTrackedEntityTypeAttributes?: boolean;
|
|
1014
|
+
disableRegistrationUnit?: boolean;
|
|
1015
|
+
disableEnrollmentDate?: boolean;
|
|
1016
|
+
disabledIncidentDate?: boolean;
|
|
1017
|
+
excludeProgramStages?: boolean;
|
|
1018
|
+
excludeInheritedAttributes?: boolean;
|
|
1019
|
+
includedProgramStages?: string[];
|
|
1020
|
+
submitButtonLabel?: string;
|
|
1021
|
+
cancelButtonLabel?: string;
|
|
1022
|
+
hideActionButtons?: boolean;
|
|
1023
|
+
hideSubmitButton?: boolean;
|
|
1024
|
+
hideCancelButton?: boolean;
|
|
1025
|
+
ignoreRepeatability?: boolean;
|
|
1026
|
+
autoAssignedValues?: AutoAssignedValues[];
|
|
1027
|
+
hideCustomAssignedFields?: boolean;
|
|
1028
|
+
autoComplete?: boolean;
|
|
1029
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
1030
|
+
updateTeiOrgUnit?: boolean;
|
|
1031
|
+
}
|
|
1032
|
+
declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
1033
|
+
program: string;
|
|
1034
|
+
programStage?: string;
|
|
1035
|
+
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1036
|
+
formType: 'TRACKER' | 'EVENT';
|
|
1037
|
+
hideRegistrationUnit?: boolean;
|
|
1038
|
+
hideEnrollmentDate?: boolean;
|
|
1039
|
+
hideTrackedEntityTypeAttributes?: boolean;
|
|
1040
|
+
disableRegistrationUnit?: boolean;
|
|
1041
|
+
disableEnrollmentDate?: boolean;
|
|
1042
|
+
disabledIncidentDate?: boolean;
|
|
1043
|
+
excludeProgramStages?: boolean;
|
|
1044
|
+
excludeInheritedAttributes?: boolean;
|
|
1045
|
+
includedProgramStages?: string[];
|
|
1046
|
+
submitButtonLabel: string;
|
|
1047
|
+
cancelButtonLabel: string;
|
|
1048
|
+
hideActionButtons?: boolean;
|
|
1049
|
+
hideSubmitButton?: boolean;
|
|
1050
|
+
hideCancelButton?: boolean;
|
|
1051
|
+
ignoreRepeatability?: boolean;
|
|
1052
|
+
autoAssignedValues?: AutoAssignedValues[];
|
|
1053
|
+
hideCustomAssignedFields?: boolean;
|
|
1054
|
+
autoComplete?: boolean;
|
|
1055
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
1056
|
+
updateTeiOrgUnit: boolean;
|
|
1057
|
+
constructor(config: IProgramEntryFormConfig);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
interface IProgramEntryFormSection {
|
|
1061
|
+
id: string;
|
|
1062
|
+
name: string;
|
|
1063
|
+
description?: string;
|
|
1064
|
+
formFields: IFormField<string>[];
|
|
1065
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1066
|
+
}
|
|
1067
|
+
declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
1068
|
+
id: string;
|
|
1069
|
+
name: string;
|
|
1070
|
+
description?: string;
|
|
1071
|
+
formFields: IFormField<string>[];
|
|
1072
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1073
|
+
constructor(props: IProgramEntryFormSection);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface IProgramEntryFormMetaData {
|
|
1077
|
+
id: string;
|
|
1078
|
+
name: string;
|
|
1079
|
+
description?: string;
|
|
1080
|
+
program: Program;
|
|
1081
|
+
formFields: IFormField<string>[];
|
|
1082
|
+
sections: IProgramEntryFormSection[];
|
|
1083
|
+
programStageSections: IProgramEntryFormSection[];
|
|
1084
|
+
rules: IMetadataRule[];
|
|
1085
|
+
}
|
|
1086
|
+
declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
1087
|
+
#private;
|
|
1088
|
+
id: string;
|
|
1089
|
+
name: string;
|
|
1090
|
+
description?: string;
|
|
1091
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1092
|
+
config: ProgramEntryFormConfig;
|
|
1093
|
+
program: Program;
|
|
1094
|
+
setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
|
|
1095
|
+
getProgramPromise(): Promise<_iapps_d2_web_sdk.D2Response<Program>>;
|
|
1096
|
+
get formFields(): IFormField<string>[];
|
|
1097
|
+
get sections(): IProgramEntryFormSection[];
|
|
1098
|
+
get programStageSections(): IProgramEntryFormSection[];
|
|
1099
|
+
get rules(): IMetadataRule[];
|
|
1100
|
+
toJson(): IProgramEntryFormMetaData;
|
|
1101
|
+
get(): Promise<IProgramEntryFormMetaData>;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
928
1104
|
declare class BaseFormWrapperComponent implements OnDestroy {
|
|
929
1105
|
#private;
|
|
930
1106
|
ngZone: NgZone;
|
|
@@ -934,6 +1110,9 @@ declare class BaseFormWrapperComponent implements OnDestroy {
|
|
|
934
1110
|
dataValues: _angular_core.InputSignal<Record<string, unknown>>;
|
|
935
1111
|
dataId: _angular_core.InputSignal<string>;
|
|
936
1112
|
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
1113
|
+
formMetaData: _angular_core.InputSignal<IFormMetadata>;
|
|
1114
|
+
programEntryFormMetaData: _angular_core.InputSignal<IProgramEntryFormMetaData>;
|
|
1115
|
+
programStage: _angular_core.InputSignal<string>;
|
|
937
1116
|
program: _angular_core.InputSignal<string>;
|
|
938
1117
|
ruleActions: _angular_core.WritableSignal<IMetadataRuleAction[]>;
|
|
939
1118
|
isFormValid: _angular_core.WritableSignal<boolean>;
|
|
@@ -948,15 +1127,17 @@ declare class BaseFormWrapperComponent implements OnDestroy {
|
|
|
948
1127
|
protected executeRules(): void;
|
|
949
1128
|
ngOnDestroy(): void;
|
|
950
1129
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormWrapperComponent, never>;
|
|
951
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormWrapperComponent, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "dataValues": { "alias": "dataValues"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
1130
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormWrapperComponent, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "dataValues": { "alias": "dataValues"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": false; "isSignal": true; }; "programEntryFormMetaData": { "alias": "programEntryFormMetaData"; "required": false; "isSignal": true; }; "programStage": { "alias": "programStage"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
952
1131
|
}
|
|
953
1132
|
|
|
954
1133
|
declare class FlatFormComponent extends BaseFormWrapperComponent implements OnInit {
|
|
955
1134
|
formGroup: FormGroup;
|
|
1135
|
+
collapsibleSections: _angular_core.InputSignal<boolean>;
|
|
1136
|
+
programEntryFormConfig: _angular_core.InputSignal<any>;
|
|
956
1137
|
ngOnInit(): void;
|
|
957
1138
|
onFormUpdate(): void;
|
|
958
1139
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlatFormComponent, never>;
|
|
959
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlatFormComponent, "ng-dhis2-ui-flat-form", never, {}, {}, never, never, false, never>;
|
|
1140
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlatFormComponent, "ng-dhis2-ui-flat-form", never, { "collapsibleSections": { "alias": "collapsibleSections"; "required": false; "isSignal": true; }; "programEntryFormConfig": { "alias": "programEntryFormConfig"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
960
1141
|
}
|
|
961
1142
|
|
|
962
1143
|
declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
@@ -1008,7 +1189,7 @@ declare class D2FormModule {
|
|
|
1008
1189
|
declare class FieldUtil {
|
|
1009
1190
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1010
1191
|
static sanitizeOptions(options: any[]): any;
|
|
1011
|
-
static getFieldType(valueType: string): "
|
|
1192
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
|
|
1012
1193
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1013
1194
|
static getOptionEntities?(options: any[]): any;
|
|
1014
1195
|
}
|
|
@@ -1103,6 +1284,8 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1103
1284
|
endDate?: string;
|
|
1104
1285
|
program?: string;
|
|
1105
1286
|
organisationUnit?: string;
|
|
1287
|
+
selectedOrgUnit?: any;
|
|
1288
|
+
orgUnitFieldTitle?: string;
|
|
1106
1289
|
actionSelected: EventEmitter<SelectionFiltersProps>;
|
|
1107
1290
|
ngZone: NgZone;
|
|
1108
1291
|
private getAppConfig;
|
|
@@ -1124,7 +1307,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1124
1307
|
}> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
|
|
1125
1308
|
showOrgUnitTree: _angular_core.WritableSignal<boolean>;
|
|
1126
1309
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
1127
|
-
|
|
1310
|
+
selectedOrgUnitSignal: _angular_core.WritableSignal<any>;
|
|
1128
1311
|
selectedOrgUnit$: rxjs.Observable<any>;
|
|
1129
1312
|
SelectionFiltersUI: () => React.DetailedReactHTMLElement<{
|
|
1130
1313
|
style: {
|
|
@@ -1137,7 +1320,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1137
1320
|
}, HTMLElement>;
|
|
1138
1321
|
ngAfterViewInit(): Promise<void>;
|
|
1139
1322
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectionFiltersComponent, never>;
|
|
1140
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectionFiltersComponent, "app-selection-filters-ui", never, { "actionOptions": { "alias": "actionOptions"; "required": false; }; "programAttributesFilters": { "alias": "programAttributesFilters"; "required": false; }; "programStageDataElementFilters": { "alias": "programStageDataElementFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "program": { "alias": "program"; "required": false; }; "organisationUnit": { "alias": "organisationUnit"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
1323
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectionFiltersComponent, "app-selection-filters-ui", never, { "actionOptions": { "alias": "actionOptions"; "required": false; }; "programAttributesFilters": { "alias": "programAttributesFilters"; "required": false; }; "programStageDataElementFilters": { "alias": "programStageDataElementFilters"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "program": { "alias": "program"; "required": false; }; "organisationUnit": { "alias": "organisationUnit"; "required": false; }; "selectedOrgUnit": { "alias": "selectedOrgUnit"; "required": false; }; "orgUnitFieldTitle": { "alias": "orgUnitFieldTitle"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
1141
1324
|
}
|
|
1142
1325
|
|
|
1143
1326
|
declare class SelectionFiltersUiModule {
|
|
@@ -1192,106 +1375,6 @@ declare class EventFormModule {
|
|
|
1192
1375
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<EventFormModule>;
|
|
1193
1376
|
}
|
|
1194
1377
|
|
|
1195
|
-
type AutoAssignedValues = {
|
|
1196
|
-
field: string;
|
|
1197
|
-
value: string;
|
|
1198
|
-
};
|
|
1199
|
-
interface IProgramEntryFormConfig {
|
|
1200
|
-
program: string;
|
|
1201
|
-
programStage?: string;
|
|
1202
|
-
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1203
|
-
formType: 'TRACKER' | 'EVENT';
|
|
1204
|
-
hideRegistrationUnit?: boolean;
|
|
1205
|
-
hideEnrollmentDate?: boolean;
|
|
1206
|
-
hideTrackedEntityTypeAttributes?: boolean;
|
|
1207
|
-
disableRegistrationUnit?: boolean;
|
|
1208
|
-
disableEnrollmentDate?: boolean;
|
|
1209
|
-
disabledIncidentDate?: boolean;
|
|
1210
|
-
excludeProgramStages?: boolean;
|
|
1211
|
-
excludeInheritedAttributes?: boolean;
|
|
1212
|
-
includedProgramStages?: string[];
|
|
1213
|
-
submitButtonLabel?: string;
|
|
1214
|
-
cancelButtonLabel?: string;
|
|
1215
|
-
hideActionButtons?: boolean;
|
|
1216
|
-
hideSubmitButton?: boolean;
|
|
1217
|
-
hideCancelButton?: boolean;
|
|
1218
|
-
ignoreRepeatability?: boolean;
|
|
1219
|
-
autoAssignedValues?: AutoAssignedValues[];
|
|
1220
|
-
hideCustomAssignedFields?: boolean;
|
|
1221
|
-
autoComplete?: boolean;
|
|
1222
|
-
formFieldExtensions?: FormFieldExtension[];
|
|
1223
|
-
updateTeiOrgUnit?: boolean;
|
|
1224
|
-
}
|
|
1225
|
-
declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
1226
|
-
program: string;
|
|
1227
|
-
programStage?: string;
|
|
1228
|
-
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1229
|
-
formType: 'TRACKER' | 'EVENT';
|
|
1230
|
-
hideRegistrationUnit?: boolean;
|
|
1231
|
-
hideEnrollmentDate?: boolean;
|
|
1232
|
-
hideTrackedEntityTypeAttributes?: boolean;
|
|
1233
|
-
disableRegistrationUnit?: boolean;
|
|
1234
|
-
disableEnrollmentDate?: boolean;
|
|
1235
|
-
disabledIncidentDate?: boolean;
|
|
1236
|
-
excludeProgramStages?: boolean;
|
|
1237
|
-
excludeInheritedAttributes?: boolean;
|
|
1238
|
-
includedProgramStages?: string[];
|
|
1239
|
-
submitButtonLabel: string;
|
|
1240
|
-
cancelButtonLabel: string;
|
|
1241
|
-
hideActionButtons?: boolean;
|
|
1242
|
-
hideSubmitButton?: boolean;
|
|
1243
|
-
hideCancelButton?: boolean;
|
|
1244
|
-
ignoreRepeatability?: boolean;
|
|
1245
|
-
autoAssignedValues?: AutoAssignedValues[];
|
|
1246
|
-
hideCustomAssignedFields?: boolean;
|
|
1247
|
-
autoComplete?: boolean;
|
|
1248
|
-
formFieldExtensions?: FormFieldExtension[];
|
|
1249
|
-
updateTeiOrgUnit: boolean;
|
|
1250
|
-
constructor(config: IProgramEntryFormConfig);
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
interface IProgramEntryFormSection {
|
|
1254
|
-
id: string;
|
|
1255
|
-
name: string;
|
|
1256
|
-
description?: string;
|
|
1257
|
-
formFields: IFormField<string>[];
|
|
1258
|
-
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1259
|
-
}
|
|
1260
|
-
declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
1261
|
-
id: string;
|
|
1262
|
-
name: string;
|
|
1263
|
-
description?: string;
|
|
1264
|
-
formFields: IFormField<string>[];
|
|
1265
|
-
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1266
|
-
constructor(props: IProgramEntryFormSection);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
interface IProgramEntryFormMetaData {
|
|
1270
|
-
id: string;
|
|
1271
|
-
name: string;
|
|
1272
|
-
description?: string;
|
|
1273
|
-
program: Program;
|
|
1274
|
-
formFields: IFormField<string>[];
|
|
1275
|
-
sections: IProgramEntryFormSection[];
|
|
1276
|
-
rules: IMetadataRule[];
|
|
1277
|
-
}
|
|
1278
|
-
declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
1279
|
-
#private;
|
|
1280
|
-
id: string;
|
|
1281
|
-
name: string;
|
|
1282
|
-
description?: string;
|
|
1283
|
-
d2: _iapps_d2_web_sdk.D2Web;
|
|
1284
|
-
config: ProgramEntryFormConfig;
|
|
1285
|
-
program: Program;
|
|
1286
|
-
setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
|
|
1287
|
-
getProgramPromise(): Promise<_iapps_d2_web_sdk.D2Response<Program>>;
|
|
1288
|
-
get formFields(): IFormField<string>[];
|
|
1289
|
-
get sections(): IProgramEntryFormSection[];
|
|
1290
|
-
get rules(): IMetadataRule[];
|
|
1291
|
-
toJson(): IProgramEntryFormMetaData;
|
|
1292
|
-
get(): Promise<IProgramEntryFormMetaData>;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
1378
|
declare class ProgramEntryFormModule {
|
|
1296
1379
|
#private;
|
|
1297
1380
|
config: _angular_core.InputSignal<ProgramEntryFormConfig>;
|
|
@@ -1300,6 +1383,8 @@ declare class ProgramEntryFormModule {
|
|
|
1300
1383
|
enrollment: _angular_core.InputSignal<string>;
|
|
1301
1384
|
orgUnit: _angular_core.InputSignal<string>;
|
|
1302
1385
|
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
1386
|
+
formMetaData: _angular_core.InputSignal<IFormMetadata>;
|
|
1387
|
+
collapsibleSections: _angular_core.InputSignal<boolean>;
|
|
1303
1388
|
ngZone: NgZone;
|
|
1304
1389
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1305
1390
|
loading: _angular_core.WritableSignal<boolean>;
|
|
@@ -1312,7 +1397,7 @@ declare class ProgramEntryFormModule {
|
|
|
1312
1397
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1313
1398
|
}) => void>;
|
|
1314
1399
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1315
|
-
instanceSaveCompleted: EventEmitter<
|
|
1400
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1316
1401
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1317
1402
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1318
1403
|
formCancel: EventEmitter<any>;
|
|
@@ -1324,8 +1409,8 @@ declare class ProgramEntryFormModule {
|
|
|
1324
1409
|
onValidityUpdate(isFormValid: boolean): void;
|
|
1325
1410
|
onCancel(): void;
|
|
1326
1411
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgramEntryFormModule, never>;
|
|
1327
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgramEntryFormModule, "ng-dhis2-ui-program-entry-form", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; "event": { "alias": "event"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "orgUnit": { "alias": "orgUnit"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "preprocess": { "alias": "preprocess"; "required": false; "isSignal": true; }; }, { "instanceSave": "instanceSave"; "instanceSaveCompleted": "instanceSaveCompleted"; "instanceUpdate": "instanceUpdate"; "formValidityUpdate": "formValidityUpdate"; "formCancel": "formCancel"; }, never, never, true, never>;
|
|
1412
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgramEntryFormModule, "ng-dhis2-ui-program-entry-form", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; "event": { "alias": "event"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "orgUnit": { "alias": "orgUnit"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": false; "isSignal": true; }; "collapsibleSections": { "alias": "collapsibleSections"; "required": false; "isSignal": true; }; "preprocess": { "alias": "preprocess"; "required": false; "isSignal": true; }; }, { "instanceSave": "instanceSave"; "instanceSaveCompleted": "instanceSaveCompleted"; "instanceUpdate": "instanceUpdate"; "formValidityUpdate": "formValidityUpdate"; "formCancel": "formCancel"; }, never, never, true, never>;
|
|
1328
1413
|
}
|
|
1329
1414
|
|
|
1330
|
-
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CheckBox, D2FormModule, DataTableUIComponent, DataTableUIModule, DateField, DateRangeValue, Dropdown, EventFormComponent, EventFormModule, FieldConfig, FieldControlTypeUtil, FieldDropdown, FieldType, FieldUtil, FlatFormComponent, FormComponent, FormConfig, FormField, FormFieldComponent, FormFieldGroup, FormFieldTypeUtil, FormMetaData, FormMetadataSection, FormUtil, FormValue, FormValueUtil, HeaderBarComponent, HeaderBarModule, LineListModule, LineListTableComponent, MetadataRule, MetadataRuleAction, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1331
|
-
export type { ActionOption, ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, ColumnDefinition, CustomOrgUnitConfig, DropdownMenuOption$1 as DropdownMenuOption, DropdownOption, EocForm, FieldControlType, FieldData, FieldsData, FormConfiguration, FormDirection, FormFieldExtension, FormFieldMetaType, FormGroupField, FormSection, IFieldDropdown, IFormField, IFormFieldGroup, IFormMetadata, IFormMetadataSection, IMetadataRule, IMetadataRuleAction, IProgramEntryFormConfig, IProgramEntryFormMetaData, IProgramEntryFormSection, LineListActionOption, Option, OrganisationUnitSelectionUsageType, ProgramAttributesFilter, ProgramStageDataElementFilter, SelectionFilterColumnDefinition, SelectionFilterTableRow, SelectionFiltersProps, TableRow };
|
|
1415
|
+
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CheckBox, D2FormModule, DEFAULT_KEYWORD_TO_LEVEL, DataTableUIComponent, DataTableUIModule, DateField, DateRangeValue, Dropdown, EventFormComponent, EventFormModule, FACILITY_KEYWORDS, FieldConfig, FieldControlTypeUtil, FieldDropdown, FieldType, FieldUtil, FlatFormComponent, FormComponent, FormConfig, FormField, FormFieldComponent, FormFieldGroup, FormFieldTypeUtil, FormMetaData, FormMetadataSection, FormUtil, FormValue, FormValueUtil, GLOBAL_TYPE_RULES, HeaderBarComponent, HeaderBarModule, LOWERCASE_FACILITY_KEYWORDS, LevelMatchMode, LevelSelectorMode, LineListModule, LineListTableComponent, MetadataRule, MetadataRuleAction, ORG_UNIT_LEVEL_TO_KEYWORD, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1416
|
+
export type { AbsoluteLevelSelector, ActionOption, ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, ColumnDefinition, CustomOrgUnitConfig, CustomOrgUnitRootConfig, DropdownMenuOption$1 as DropdownMenuOption, DropdownOption, EocForm, FieldControlType, FieldData, FieldsData, FormConfiguration, FormDirection, FormFieldExtension, FormFieldMetaType, FormGroupField, FormSection, IFieldDropdown, IFormField, IFormFieldGroup, IFormMetadata, IFormMetadataSection, IMetadataRule, IMetadataRuleAction, IProgramEntryFormConfig, IProgramEntryFormMetaData, IProgramEntryFormSection, KeywordLevelMap, KeywordLevelSelector, LevelSelector, LineListActionOption, Option, OrgUnitLevelKeyword, OrgUnitSemanticType, OrgUnitTypeKeywordRule, OrgUnitTypeMatch, OrganisationUnitSelectionUsageType, ProgramAttributesFilter, ProgramStageDataElementFilter, RelativeLevelSelector, SelectionFilterColumnDefinition, SelectionFilterTableRow, SelectionFiltersProps, TableRow };
|