@iapps/ng-dhis2-ui 1.1.54 → 1.1.56
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 +874 -263
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/modules/event-form/event-form.component.d.ts +21 -0
- package/lib/modules/event-form/event-form.module.d.ts +9 -0
- package/lib/modules/event-form/index.d.ts +2 -0
- package/lib/modules/form/components/base-form-field.component.d.ts +8 -23
- package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +11 -0
- package/lib/modules/form/containers/form/form.component.d.ts +14 -10
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +10 -5
- package/lib/modules/form/containers/section-form/section-form.component.d.ts +1 -1
- package/lib/modules/form/form.module.d.ts +7 -6
- package/lib/modules/form/hooks/field-validation.hook.d.ts +2 -2
- package/lib/modules/form/index.d.ts +1 -0
- package/lib/modules/form/interfaces/form-field.interface.d.ts +4 -0
- package/lib/modules/form/models/form-field.model.d.ts +7 -1
- package/lib/modules/form/models/form-metadata-rule.model.d.ts +9 -2
- package/lib/modules/form/models/form-metadata-section.model.d.ts +2 -0
- package/lib/modules/form/models/form-metadata.model.d.ts +3 -3
- package/lib/modules/form/models/form-value.model.d.ts +4 -4
- package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +26 -0
- package/lib/modules/form/shared/components/index.d.ts +1 -0
- package/lib/modules/form/shared/index.d.ts +1 -0
- package/lib/modules/form/utils/field-type.util.d.ts +1 -1
- package/lib/modules/form/utils/field.util.d.ts +1 -1
- package/lib/modules/form/utils/form.util.d.ts +3 -2
- package/lib/modules/program-entry-form/index.d.ts +2 -0
- package/lib/modules/program-entry-form/models/index.d.ts +3 -0
- package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +28 -0
- package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +16 -0
- package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +47 -0
- package/lib/modules/program-entry-form/program-entry-form.component.d.ts +35 -0
- package/lib/modules/program-entry-form/utils/index.d.ts +2 -0
- package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +62 -0
- package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +8 -0
- package/lib/modules/tracker-form/tracker-form.component.d.ts +1 -0
- package/lib/shared/utils/predefinedDimensions.d.ts +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Program } from '@iapps/d2-web-sdk';
|
|
2
|
+
import { ProgramEntryFormConfig } from '../models';
|
|
3
|
+
import { FormField, IFormField } from '../../form';
|
|
4
|
+
export declare class ProgramEntryFormFieldUtil {
|
|
5
|
+
#private;
|
|
6
|
+
private program;
|
|
7
|
+
private config;
|
|
8
|
+
constructor(program: Program, config: ProgramEntryFormConfig);
|
|
9
|
+
get attributes(): {
|
|
10
|
+
sortOrder: number;
|
|
11
|
+
mandatory: boolean;
|
|
12
|
+
allowFutureDate: boolean;
|
|
13
|
+
metaType: string;
|
|
14
|
+
stepId: any;
|
|
15
|
+
formName?: string;
|
|
16
|
+
valueType: string;
|
|
17
|
+
aggregationType?: string;
|
|
18
|
+
generated?: boolean;
|
|
19
|
+
unique?: boolean;
|
|
20
|
+
optionSetValue?: boolean;
|
|
21
|
+
optionSetValueCount?: number;
|
|
22
|
+
optionSet?: import("@iapps/d2-web-sdk").OptionSet;
|
|
23
|
+
id: string;
|
|
24
|
+
lastUpdated: string;
|
|
25
|
+
created: string;
|
|
26
|
+
name: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
shortName: string;
|
|
29
|
+
code?: string;
|
|
30
|
+
attributeValues?: any[];
|
|
31
|
+
}[];
|
|
32
|
+
get dataElements(): {
|
|
33
|
+
sortOrder: number;
|
|
34
|
+
mandatory: boolean;
|
|
35
|
+
allowFutureDate: boolean;
|
|
36
|
+
stepId: string;
|
|
37
|
+
metaType: string;
|
|
38
|
+
formName?: string;
|
|
39
|
+
valueType: string;
|
|
40
|
+
aggregationType: string;
|
|
41
|
+
domainType: string;
|
|
42
|
+
displayDescription?: string;
|
|
43
|
+
displayFormName?: string;
|
|
44
|
+
skipSynchronization?: boolean;
|
|
45
|
+
zeroIsSignificant?: boolean;
|
|
46
|
+
periodOffset?: number;
|
|
47
|
+
optionSetValue?: boolean;
|
|
48
|
+
optionSet?: import("@iapps/d2-web-sdk").OptionSet;
|
|
49
|
+
programStageId?: string;
|
|
50
|
+
isProgramStageRepeatable?: boolean;
|
|
51
|
+
id: string;
|
|
52
|
+
lastUpdated: string;
|
|
53
|
+
created: string;
|
|
54
|
+
name: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
shortName: string;
|
|
57
|
+
code?: string;
|
|
58
|
+
attributeValues?: any[];
|
|
59
|
+
}[];
|
|
60
|
+
get reportFields(): FormField<string>[];
|
|
61
|
+
get fields(): IFormField<string>[];
|
|
62
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Program } from '@iapps/d2-web-sdk';
|
|
2
|
+
import { IProgramEntryFormSection, ProgramEntryFormConfig } from '../models';
|
|
3
|
+
export declare class ProgramEntryFormSectionUtil {
|
|
4
|
+
private program;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(program: Program, config: ProgramEntryFormConfig);
|
|
7
|
+
get sections(): IProgramEntryFormSection[];
|
|
8
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class TrackerFormComponent implements OnInit {
|
|
|
11
11
|
formMetaData: IFormMetadata;
|
|
12
12
|
instance: TrackedEntityInstance;
|
|
13
13
|
ngOnInit(): Promise<void>;
|
|
14
|
+
onFormUpdate(values: any): void;
|
|
14
15
|
onSave(event: any): void;
|
|
15
16
|
onCancel(): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormComponent, never>;
|
|
@@ -11,19 +11,19 @@ export declare const getFixedDimensions: () => {
|
|
|
11
11
|
id: string;
|
|
12
12
|
name: any;
|
|
13
13
|
iconName: string;
|
|
14
|
-
icon:
|
|
14
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
15
15
|
};
|
|
16
16
|
pe: {
|
|
17
17
|
id: string;
|
|
18
18
|
name: any;
|
|
19
19
|
iconName: string;
|
|
20
|
-
icon:
|
|
20
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
21
21
|
};
|
|
22
22
|
ou: {
|
|
23
23
|
id: string;
|
|
24
24
|
name: any;
|
|
25
25
|
iconName: string;
|
|
26
|
-
icon:
|
|
26
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
export declare const getDynamicDimensions: () => {
|
|
@@ -47,19 +47,19 @@ export declare const getPredefinedDimensions: () => {
|
|
|
47
47
|
id: string;
|
|
48
48
|
name: any;
|
|
49
49
|
iconName: string;
|
|
50
|
-
icon:
|
|
50
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
51
51
|
};
|
|
52
52
|
pe: {
|
|
53
53
|
id: string;
|
|
54
54
|
name: any;
|
|
55
55
|
iconName: string;
|
|
56
|
-
icon:
|
|
56
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
57
57
|
};
|
|
58
58
|
ou: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: any;
|
|
61
61
|
iconName: string;
|
|
62
|
-
icon:
|
|
62
|
+
icon: React.FC<import("@dhis2/ui-icons").IconProps>;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export declare const filterOutPredefinedDimensions: (dimensionIds: string[]) => string[];
|