@iapps/ng-dhis2-ui 1.2.121 → 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 +3001 -2099
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +357 -269
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, AfterViewInit, ElementRef, EventEmitter, NgZone, SimpleChanges, OnChanges, OnInit, EffectRef, Signal } from '@angular/core';
|
|
3
3
|
import React, { ComponentProps } from 'react';
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
@@ -22,27 +22,27 @@ declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
|
|
|
22
22
|
ngAfterViewInit(): void;
|
|
23
23
|
ngOnDestroy(): void;
|
|
24
24
|
protected render(): void;
|
|
25
|
-
static ɵfac:
|
|
26
|
-
static ɵdir:
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReactWrapperModule, never>;
|
|
26
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ReactWrapperModule, "ng-dhis2-ui-wrapper", never, { "props": { "alias": "props"; "required": false; }; "component": { "alias": "component"; "required": false; }; }, {}, ["content"], never, true, never>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare class HeaderBarComponent extends ReactWrapperModule {
|
|
30
30
|
constructor();
|
|
31
31
|
ngAfterViewInit(): Promise<void>;
|
|
32
|
-
static ɵfac:
|
|
33
|
-
static ɵcmp:
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderBarComponent, never>;
|
|
33
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderBarComponent, "ng-dhis2-ui-header-bar", never, {}, {}, never, never, false, never>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
declare class SharedDhis2UiModule {
|
|
37
|
-
static ɵfac:
|
|
38
|
-
static ɵmod:
|
|
39
|
-
static ɵinj:
|
|
37
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SharedDhis2UiModule, never>;
|
|
38
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SharedDhis2UiModule, never, [typeof i2.CommonModule], never>;
|
|
39
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SharedDhis2UiModule>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
declare class HeaderBarModule {
|
|
43
|
-
static ɵfac:
|
|
44
|
-
static ɵmod:
|
|
45
|
-
static ɵinj:
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderBarModule, never>;
|
|
44
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HeaderBarModule, [typeof HeaderBarComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof HeaderBarComponent]>;
|
|
45
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<HeaderBarModule>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
declare class ButtonComponent extends ReactWrapperModule {
|
|
@@ -57,14 +57,14 @@ declare class ButtonComponent extends ReactWrapperModule {
|
|
|
57
57
|
ngAfterViewInit(): Promise<void>;
|
|
58
58
|
ngOnInit(): void;
|
|
59
59
|
onButtonClick(event: any): void;
|
|
60
|
-
static ɵfac:
|
|
61
|
-
static ɵcmp:
|
|
60
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
61
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ng-dhis2-ui-button", never, { "label": { "alias": "label"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "destructive": { "alias": "destructive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, ["*"], false, never>;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare class ButtonModule {
|
|
65
|
-
static ɵfac:
|
|
66
|
-
static ɵmod:
|
|
67
|
-
static ɵinj:
|
|
65
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
66
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ButtonModule, [typeof ButtonComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof ButtonComponent]>;
|
|
67
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ButtonModule>;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
interface BreadcrumbItem {
|
|
@@ -76,17 +76,17 @@ interface BreadcrumbItem {
|
|
|
76
76
|
|
|
77
77
|
declare class BreadcrumbComponent extends ReactWrapperModule {
|
|
78
78
|
#private;
|
|
79
|
-
breadcrumbs:
|
|
79
|
+
breadcrumbs: _angular_core.InputSignal<BreadcrumbItem[]>;
|
|
80
80
|
selectBreadcrumb: EventEmitter<BreadcrumbItem>;
|
|
81
81
|
ngAfterViewInit(): Promise<void>;
|
|
82
|
-
static ɵfac:
|
|
83
|
-
static ɵcmp:
|
|
82
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
83
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "ng-dhis2-ui-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; }, { "selectBreadcrumb": "selectBreadcrumb"; }, never, ["*"], false, never>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
declare class BreadcrumbModule {
|
|
87
|
-
static ɵfac:
|
|
88
|
-
static ɵmod:
|
|
89
|
-
static ɵinj:
|
|
87
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbModule, never>;
|
|
88
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<BreadcrumbModule, [typeof BreadcrumbComponent], [typeof i2.CommonModule], [typeof BreadcrumbComponent]>;
|
|
89
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<BreadcrumbModule>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
type PeriodSelectionEvent = {
|
|
@@ -103,8 +103,8 @@ declare class PeriodSelectorComponent extends ReactWrapperModule {
|
|
|
103
103
|
ngAfterViewInit(): Promise<void>;
|
|
104
104
|
onSelectItems(selectionEvent: PeriodSelectionEvent): void;
|
|
105
105
|
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
106
|
-
static ɵfac:
|
|
107
|
-
static ɵcmp:
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PeriodSelectorComponent, never>;
|
|
107
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PeriodSelectorComponent, "ng-dhis2-ui-period-selector", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "selectPeriods": "selectPeriods"; }, never, never, false, never>;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
declare class PeriodSelectorModalComponent extends ReactWrapperModule {
|
|
@@ -117,14 +117,14 @@ declare class PeriodSelectorModalComponent extends ReactWrapperModule {
|
|
|
117
117
|
onCancel(): void;
|
|
118
118
|
onConfirm(selectedItems: any[]): void;
|
|
119
119
|
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
120
|
-
static ɵfac:
|
|
121
|
-
static ɵcmp:
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PeriodSelectorModalComponent, never>;
|
|
121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PeriodSelectorModalComponent, "ng-dhis2-ui-period-selector-modal", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "cancel": "cancel"; "confirm": "confirm"; }, never, never, false, never>;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
declare class PeriodSelectorModule {
|
|
125
|
-
static ɵfac:
|
|
126
|
-
static ɵmod:
|
|
127
|
-
static ɵinj:
|
|
125
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PeriodSelectorModule, never>;
|
|
126
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<PeriodSelectorModule, [typeof PeriodSelectorComponent, typeof PeriodSelectorModalComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof PeriodSelectorComponent, typeof PeriodSelectorModalComponent]>;
|
|
127
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<PeriodSelectorModule>;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
type OrganisationUnitSelectionUsageType = 'DATA_ENTRY' | 'DATA_VIEW';
|
|
@@ -161,8 +161,8 @@ declare class OrganisationUnitSelectorComponent extends ReactWrapperModule {
|
|
|
161
161
|
getOrgUnitGroups(): Promise<any>;
|
|
162
162
|
getOrgUnitLevels(): Promise<any>;
|
|
163
163
|
onSelectItems(selectionEvent: OrganisationUnitSelectionEvent$1): void;
|
|
164
|
-
static ɵfac:
|
|
165
|
-
static ɵcmp:
|
|
164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OrganisationUnitSelectorComponent, never>;
|
|
165
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OrganisationUnitSelectorComponent, "ng-dhis2-ui-org-unit-selector", never, { "selectedOrgUnits": { "alias": "selectedOrgUnits"; "required": false; }; "orgUnitSelectionConfig": { "alias": "orgUnitSelectionConfig"; "required": false; }; }, { "selectOrgUnits": "selectOrgUnits"; }, never, never, false, never>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
type OrganisationUnitSelectionEvent = {
|
|
@@ -187,14 +187,14 @@ declare class OrganisationUnitSelectorModalComponent extends ReactWrapperModule
|
|
|
187
187
|
getOrgUnitGroups(): Promise<any>;
|
|
188
188
|
getOrgUnitLevels(): Promise<any>;
|
|
189
189
|
onSelectItems(selectionEvent: OrganisationUnitSelectionEvent): void;
|
|
190
|
-
static ɵfac:
|
|
191
|
-
static ɵcmp:
|
|
190
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OrganisationUnitSelectorModalComponent, never>;
|
|
191
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OrganisationUnitSelectorModalComponent, "ng-dhis2-ui-org-unit-selector-modal", never, { "selectedOrgUnits": { "alias": "selectedOrgUnits"; "required": false; }; "orgUnitSelectionConfig": { "alias": "orgUnitSelectionConfig"; "required": false; }; }, { "selectOrgUnits": "selectOrgUnits"; "cancel": "cancel"; "confirm": "confirm"; }, never, never, false, never>;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
declare class OrganisationUnitSelectorModule {
|
|
195
|
-
static ɵfac:
|
|
196
|
-
static ɵmod:
|
|
197
|
-
static ɵinj:
|
|
195
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OrganisationUnitSelectorModule, never>;
|
|
196
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<OrganisationUnitSelectorModule, [typeof OrganisationUnitSelectorComponent, typeof OrganisationUnitSelectorModalComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof OrganisationUnitSelectorComponent, typeof OrganisationUnitSelectorModalComponent]>;
|
|
197
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<OrganisationUnitSelectorModule>;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
type ActionOptionOrientation = 'DROPDOWN' | 'BUTTON' | 'LINK';
|
|
@@ -223,8 +223,8 @@ interface AttributeFilter {
|
|
|
223
223
|
|
|
224
224
|
declare class LineListService {
|
|
225
225
|
fetchOrgUnits(orgUnitIds: string[]): Observable<Map<string, string>>;
|
|
226
|
-
static ɵfac:
|
|
227
|
-
static ɵprov:
|
|
226
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineListService, never>;
|
|
227
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LineListService>;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
declare class LineListTableComponent extends ReactWrapperModule {
|
|
@@ -268,14 +268,14 @@ declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
268
268
|
lineListService: LineListService;
|
|
269
269
|
LineList: () => React.DetailedReactHTMLElement<null, HTMLElement>;
|
|
270
270
|
ngAfterViewInit(): Promise<void>;
|
|
271
|
-
static ɵfac:
|
|
272
|
-
static ɵcmp:
|
|
271
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineListTableComponent, never>;
|
|
272
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineListTableComponent, "ng-dhis2-ui-line-list", never, { "triggerToken": { "alias": "triggerToken"; "required": false; }; "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "actionOptionOrientation": { "alias": "actionOptionOrientation"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "useOuModeWithOlderDHIS2Instance": { "alias": "useOuModeWithOlderDHIS2Instance"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "dataQueryFilters": { "alias": "dataQueryFilters"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; "filterRootOrgUnit": { "alias": "filterRootOrgUnit"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; "isOptionSetNameVisible": { "alias": "isOptionSetNameVisible"; "required": false; }; "allowRowsSelection": { "alias": "allowRowsSelection"; "required": false; }; "enrollmentStatus": { "alias": "enrollmentStatus"; "required": false; }; "filterableColumnIds": { "alias": "filterableColumnIds"; "required": false; }; "triggerRefetch": { "alias": "triggerRefetch"; "required": false; }; "eventStatus": { "alias": "eventStatus"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "showEnrollmentDates": { "alias": "showEnrollmentDates"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "searcheableDataElements": { "alias": "searcheableDataElements"; "required": false; }; }, { "actionSelected": "actionSelected"; "rowsSelected": "rowsSelected"; }, never, ["*"], false, never>;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
declare class LineListModule {
|
|
276
|
-
static ɵfac:
|
|
277
|
-
static ɵmod:
|
|
278
|
-
static ɵinj:
|
|
276
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineListModule, never>;
|
|
277
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<LineListModule, [typeof LineListTableComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule], [typeof LineListTableComponent]>;
|
|
278
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<LineListModule>;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
interface TableRow {
|
|
@@ -309,14 +309,14 @@ declare class DataTableUIComponent extends ReactWrapperModule implements AfterVi
|
|
|
309
309
|
DataTableUI: () => React.DetailedReactHTMLElement<null, HTMLElement>;
|
|
310
310
|
ngAfterViewInit(): Promise<void>;
|
|
311
311
|
ngOnChanges(changes: SimpleChanges): void;
|
|
312
|
-
static ɵfac:
|
|
313
|
-
static ɵcmp:
|
|
312
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataTableUIComponent, never>;
|
|
313
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataTableUIComponent, "app-data-table-ui", never, { "data": { "alias": "data"; "required": false; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, ["*"], false, never>;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
declare class DataTableUIModule {
|
|
317
|
-
static ɵfac:
|
|
318
|
-
static ɵmod:
|
|
319
|
-
static ɵinj:
|
|
317
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataTableUIModule, never>;
|
|
318
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DataTableUIModule, [typeof DataTableUIComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule], [typeof DataTableUIComponent]>;
|
|
319
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<DataTableUIModule>;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
interface IFieldDropdown {
|
|
@@ -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,49 +760,105 @@ 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;
|
|
778
|
-
field:
|
|
779
|
-
fieldConfig:
|
|
836
|
+
field: _angular_core.InputSignal<IFormField<string>>;
|
|
837
|
+
fieldConfig: _angular_core.InputSignal<FieldConfig>;
|
|
780
838
|
form: FormGroup;
|
|
781
|
-
isCheckBoxButton:
|
|
782
|
-
fieldClass:
|
|
783
|
-
programRuleActions:
|
|
784
|
-
dataEntities:
|
|
785
|
-
minDate:
|
|
786
|
-
maxDate:
|
|
787
|
-
dataId:
|
|
788
|
-
customOrgUnitRoots:
|
|
789
|
-
program:
|
|
839
|
+
isCheckBoxButton: _angular_core.InputSignal<boolean>;
|
|
840
|
+
fieldClass: _angular_core.InputSignal<string>;
|
|
841
|
+
programRuleActions: _angular_core.InputSignal<IMetadataRuleAction[]>;
|
|
842
|
+
dataEntities: _angular_core.InputSignal<any>;
|
|
843
|
+
minDate: _angular_core.InputSignal<any>;
|
|
844
|
+
maxDate: _angular_core.InputSignal<Date>;
|
|
845
|
+
dataId: _angular_core.InputSignal<string>;
|
|
846
|
+
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
847
|
+
program: _angular_core.InputSignal<string>;
|
|
790
848
|
color: string;
|
|
791
849
|
fieldUpdate: EventEmitter<FormGroup>;
|
|
792
850
|
immediateFieldUpdate: EventEmitter<{
|
|
793
851
|
value: string;
|
|
794
852
|
}>;
|
|
795
853
|
runtimeOptionChange: EventEmitter<any>;
|
|
796
|
-
value:
|
|
797
|
-
runtimeError:
|
|
854
|
+
value: _angular_core.WritableSignal<any>;
|
|
855
|
+
runtimeError: _angular_core.WritableSignal<string>;
|
|
798
856
|
private _runtimeOptions;
|
|
799
857
|
runtimeOptions: any;
|
|
800
858
|
fieldFilterControl: FormControl;
|
|
801
859
|
protected _onDestroy: Subject<void>;
|
|
802
860
|
optionSearchTerm: string;
|
|
803
|
-
isValueAssigned:
|
|
861
|
+
isValueAssigned: _angular_core.WritableSignal<boolean>;
|
|
804
862
|
ruleProcessor: EffectRef;
|
|
805
863
|
constructor();
|
|
806
864
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -823,34 +881,46 @@ declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
823
881
|
}): void;
|
|
824
882
|
onFieldUpdate(e?: any, isDate?: boolean, isDateTime?: boolean): void;
|
|
825
883
|
onUpdateRuntimeOptions(options: any[]): void;
|
|
826
|
-
static ɵfac:
|
|
827
|
-
static ɵcmp:
|
|
884
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
885
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ng-dhis2-ui-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "isCheckBoxButton": { "alias": "isCheckBoxButton"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "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; }; }, { "fieldUpdate": "fieldUpdate"; "immediateFieldUpdate": "immediateFieldUpdate"; "runtimeOptionChange": "runtimeOptionChange"; }, never, never, false, never>;
|
|
828
886
|
}
|
|
829
887
|
|
|
830
888
|
declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
831
889
|
#private;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
890
|
+
programEntryFormConfig: _angular_core.InputSignal<any>;
|
|
891
|
+
formConfig: _angular_core.InputSignal<FormConfig>;
|
|
892
|
+
fields: _angular_core.InputSignal<IFormField<string>[]>;
|
|
893
|
+
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
894
|
+
isFormHorizontal: _angular_core.InputSignal<boolean>;
|
|
895
|
+
showSaveButton: _angular_core.InputSignal<boolean>;
|
|
896
|
+
fieldsData: _angular_core.InputSignal<FieldsData>;
|
|
897
|
+
formMetaData: _angular_core.InputSignal<any>;
|
|
898
|
+
programEntryFormMetaData: _angular_core.InputSignal<any>;
|
|
899
|
+
fieldClass: _angular_core.InputSignal<string>;
|
|
900
|
+
shouldRenderAsCheckBoxesButton: _angular_core.InputSignal<boolean>;
|
|
901
|
+
programRuleActions: _angular_core.InputSignal<IMetadataRuleAction[]>;
|
|
902
|
+
dataEntities: _angular_core.InputSignal<any>;
|
|
903
|
+
dataId: _angular_core.InputSignal<string>;
|
|
904
|
+
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
905
|
+
program: _angular_core.InputSignal<string>;
|
|
906
|
+
collapsibleSections: _angular_core.InputSignal<boolean>;
|
|
907
|
+
private openSectionId;
|
|
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;
|
|
862
|
-
|
|
863
|
-
|
|
932
|
+
private readonly hiddenFieldIds;
|
|
933
|
+
get sanitizedFields(): IFormField<string>[];
|
|
934
|
+
getVisibleSectionFields(section: any): IFormField<string>[];
|
|
935
|
+
private isFieldHiddenByRules;
|
|
936
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, 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 {
|
|
@@ -868,15 +942,15 @@ declare class RepeatableFormComponent implements OnInit {
|
|
|
868
942
|
ngZone: NgZone;
|
|
869
943
|
formObject: any;
|
|
870
944
|
formData: any;
|
|
871
|
-
fieldGroup:
|
|
945
|
+
fieldGroup: _angular_core.InputSignal<IFormFieldGroup>;
|
|
872
946
|
form: FormGroup;
|
|
873
947
|
numberOfRows: number | string;
|
|
874
948
|
programRuleActions: any[];
|
|
875
|
-
events:
|
|
949
|
+
events: _angular_core.ModelSignal<unknown>;
|
|
876
950
|
program: string;
|
|
877
951
|
programStage: string;
|
|
878
952
|
repeatDependentField: string;
|
|
879
|
-
dataEntities:
|
|
953
|
+
dataEntities: _angular_core.InputSignal<Record<string, unknown>>;
|
|
880
954
|
repeatableEvents: any[];
|
|
881
955
|
repeatableData: {
|
|
882
956
|
[index: number]: FormValue;
|
|
@@ -886,33 +960,33 @@ declare class RepeatableFormComponent implements OnInit {
|
|
|
886
960
|
[event: string]: FormGroup;
|
|
887
961
|
};
|
|
888
962
|
eventForm: FormGroup;
|
|
889
|
-
eventFormValue:
|
|
890
|
-
showForm:
|
|
891
|
-
eventIndex:
|
|
963
|
+
eventFormValue: _angular_core.WritableSignal<FormValue>;
|
|
964
|
+
showForm: _angular_core.WritableSignal<boolean>;
|
|
965
|
+
eventIndex: _angular_core.WritableSignal<number>;
|
|
892
966
|
constructor();
|
|
893
967
|
get isValid(): boolean;
|
|
894
968
|
ngOnInit(): void;
|
|
895
969
|
onFormUpdate(formValue: FormValue): void;
|
|
896
|
-
static ɵfac:
|
|
897
|
-
static ɵcmp:
|
|
970
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RepeatableFormComponent, never>;
|
|
971
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RepeatableFormComponent, "ng-dhis2-ui-repeatable-form", never, { "formObject": { "alias": "formObject"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "fieldGroup": { "alias": "fieldGroup"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "numberOfRows": { "alias": "numberOfRows"; "required": false; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; }; "events": { "alias": "events"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; }; "programStage": { "alias": "programStage"; "required": false; }; "repeatDependentField": { "alias": "repeatDependentField"; "required": false; }; "dataEntities": { "alias": "dataEntities"; "required": true; "isSignal": true; }; }, { "events": "eventsChange"; "repeatableStageUpdate": "repeatableStageUpdate"; }, never, never, false, never>;
|
|
898
972
|
}
|
|
899
973
|
|
|
900
974
|
declare class SectionFormComponent implements OnInit {
|
|
901
975
|
#private;
|
|
902
976
|
ngZone: NgZone;
|
|
903
|
-
loading:
|
|
977
|
+
loading: _angular_core.InputSignal<boolean>;
|
|
904
978
|
isloading: boolean;
|
|
905
|
-
formMetaData:
|
|
906
|
-
dataValueEntities:
|
|
979
|
+
formMetaData: _angular_core.InputSignal<IFormMetadata>;
|
|
980
|
+
dataValueEntities: _angular_core.InputSignal<Record<string, unknown>>;
|
|
907
981
|
formGroups: Record<string, FormGroup>;
|
|
908
982
|
formValueEntity: Record<string, FormValue>;
|
|
909
983
|
repeatableFormValueEntity: Record<string, Record<number, FormValue>>;
|
|
910
|
-
ruleActions:
|
|
984
|
+
ruleActions: _angular_core.WritableSignal<any[]>;
|
|
911
985
|
save: EventEmitter<Record<string, unknown>>;
|
|
912
986
|
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
913
987
|
cancel: EventEmitter<any>;
|
|
914
988
|
formValidityUpdate: EventEmitter<boolean>;
|
|
915
|
-
inValid:
|
|
989
|
+
inValid: _angular_core.WritableSignal<boolean>;
|
|
916
990
|
inValid$: Observable<boolean>;
|
|
917
991
|
constructor();
|
|
918
992
|
ngOnInit(): void;
|
|
@@ -921,22 +995,127 @@ declare class SectionFormComponent implements OnInit {
|
|
|
921
995
|
onSubmit(): void;
|
|
922
996
|
onCancel(event?: MouseEvent): void;
|
|
923
997
|
checkIfInValid(): boolean;
|
|
924
|
-
static ɵfac:
|
|
925
|
-
static ɵcmp:
|
|
998
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionFormComponent, never>;
|
|
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>;
|
|
1000
|
+
}
|
|
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>;
|
|
926
1102
|
}
|
|
927
1103
|
|
|
928
1104
|
declare class BaseFormWrapperComponent implements OnDestroy {
|
|
929
1105
|
#private;
|
|
930
1106
|
ngZone: NgZone;
|
|
931
|
-
name:
|
|
932
|
-
fields:
|
|
933
|
-
rules:
|
|
934
|
-
dataValues:
|
|
935
|
-
dataId:
|
|
936
|
-
customOrgUnitRoots:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
1107
|
+
name: _angular_core.InputSignal<string>;
|
|
1108
|
+
fields: _angular_core.InputSignal<IFormField<string>[]>;
|
|
1109
|
+
rules: _angular_core.InputSignal<IMetadataRule[]>;
|
|
1110
|
+
dataValues: _angular_core.InputSignal<Record<string, unknown>>;
|
|
1111
|
+
dataId: _angular_core.InputSignal<string>;
|
|
1112
|
+
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
1113
|
+
formMetaData: _angular_core.InputSignal<IFormMetadata>;
|
|
1114
|
+
programEntryFormMetaData: _angular_core.InputSignal<IProgramEntryFormMetaData>;
|
|
1115
|
+
programStage: _angular_core.InputSignal<string>;
|
|
1116
|
+
program: _angular_core.InputSignal<string>;
|
|
1117
|
+
ruleActions: _angular_core.WritableSignal<IMetadataRuleAction[]>;
|
|
1118
|
+
isFormValid: _angular_core.WritableSignal<boolean>;
|
|
940
1119
|
formSave: EventEmitter<Record<string, unknown>>;
|
|
941
1120
|
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
942
1121
|
formCancel: EventEmitter<void>;
|
|
@@ -947,32 +1126,34 @@ declare class BaseFormWrapperComponent implements OnDestroy {
|
|
|
947
1126
|
updateFormValidity(isFormValid: boolean): void;
|
|
948
1127
|
protected executeRules(): void;
|
|
949
1128
|
ngOnDestroy(): void;
|
|
950
|
-
static ɵfac:
|
|
951
|
-
static ɵdir:
|
|
1129
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormWrapperComponent, 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
|
-
static ɵfac:
|
|
959
|
-
static ɵcmp:
|
|
1139
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlatFormComponent, 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 {
|
|
963
1144
|
#private;
|
|
964
1145
|
ngZone: NgZone;
|
|
965
1146
|
fieldType: string;
|
|
966
|
-
field:
|
|
967
|
-
fieldError:
|
|
968
|
-
fieldConfig:
|
|
969
|
-
form:
|
|
970
|
-
isValid:
|
|
971
|
-
isValueAssigned:
|
|
972
|
-
dataId:
|
|
973
|
-
customOrgUnitRoots:
|
|
974
|
-
program:
|
|
975
|
-
value:
|
|
1147
|
+
field: _angular_core.InputSignal<IFormField<string>>;
|
|
1148
|
+
fieldError: _angular_core.InputSignal<string>;
|
|
1149
|
+
fieldConfig: _angular_core.InputSignal<FieldConfig>;
|
|
1150
|
+
form: _angular_core.ModelSignal<FormGroup<any>>;
|
|
1151
|
+
isValid: _angular_core.InputSignal<boolean>;
|
|
1152
|
+
isValueAssigned: _angular_core.InputSignal<boolean>;
|
|
1153
|
+
dataId: _angular_core.InputSignal<string>;
|
|
1154
|
+
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
1155
|
+
program: _angular_core.InputSignal<string>;
|
|
1156
|
+
value: _angular_core.ModelSignal<string>;
|
|
976
1157
|
protected value$: rxjs.Observable<string>;
|
|
977
1158
|
protected isValueAssigned$: rxjs.Observable<boolean>;
|
|
978
1159
|
protected fieldError$: rxjs.Observable<string>;
|
|
@@ -990,19 +1171,19 @@ declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
|
990
1171
|
ngAfterViewInit(): Promise<void>;
|
|
991
1172
|
onChange(event: any): void;
|
|
992
1173
|
searchForDuplicates(value: string): Promise<boolean>;
|
|
993
|
-
static ɵfac:
|
|
994
|
-
static ɵdir:
|
|
1174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormFieldComponent, never>;
|
|
1175
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "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; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
995
1176
|
}
|
|
996
1177
|
|
|
997
1178
|
declare class FormFieldItemComponent extends BaseFormFieldComponent {
|
|
998
|
-
static ɵfac:
|
|
999
|
-
static ɵcmp:
|
|
1179
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldItemComponent, never>;
|
|
1180
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldItemComponent, "ng-dhis2-ui-form-field-item", never, {}, {}, never, ["*"], false, never>;
|
|
1000
1181
|
}
|
|
1001
1182
|
|
|
1002
1183
|
declare class D2FormModule {
|
|
1003
|
-
static ɵfac:
|
|
1004
|
-
static ɵmod:
|
|
1005
|
-
static ɵinj:
|
|
1184
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<D2FormModule, never>;
|
|
1185
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<D2FormModule, [typeof FormFieldComponent, typeof FormComponent, typeof RepeatableFormComponent, typeof SectionFormComponent, typeof FlatFormComponent, typeof FormFieldItemComponent], [typeof i2.CommonModule, typeof i8.ReactiveFormsModule, typeof ReactWrapperModule, typeof OrganisationUnitSelectorModule], [typeof FormFieldComponent, typeof FormComponent, typeof RepeatableFormComponent, typeof SectionFormComponent, typeof FlatFormComponent]>;
|
|
1186
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<D2FormModule>;
|
|
1006
1187
|
}
|
|
1007
1188
|
|
|
1008
1189
|
declare class FieldUtil {
|
|
@@ -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;
|
|
@@ -1122,9 +1305,9 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1122
1305
|
parentAlertsAdd: any;
|
|
1123
1306
|
showAlertsInPlugin: boolean;
|
|
1124
1307
|
}> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
|
|
1125
|
-
showOrgUnitTree:
|
|
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: {
|
|
@@ -1136,20 +1319,20 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1136
1319
|
};
|
|
1137
1320
|
}, HTMLElement>;
|
|
1138
1321
|
ngAfterViewInit(): Promise<void>;
|
|
1139
|
-
static ɵfac:
|
|
1140
|
-
static ɵcmp:
|
|
1322
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectionFiltersComponent, 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 {
|
|
1144
|
-
static ɵfac:
|
|
1145
|
-
static ɵmod:
|
|
1146
|
-
static ɵinj:
|
|
1327
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectionFiltersUiModule, never>;
|
|
1328
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SelectionFiltersUiModule, [typeof SelectionFiltersComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule, typeof OrganisationUnitSelectorModule], [typeof SelectionFiltersComponent]>;
|
|
1329
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SelectionFiltersUiModule>;
|
|
1147
1330
|
}
|
|
1148
1331
|
|
|
1149
1332
|
declare class TrackerFormComponent implements OnInit {
|
|
1150
|
-
program:
|
|
1151
|
-
programStage:
|
|
1152
|
-
trackedEntity:
|
|
1333
|
+
program: _angular_core.InputSignal<string>;
|
|
1334
|
+
programStage: _angular_core.InputSignal<string>;
|
|
1335
|
+
trackedEntity: _angular_core.InputSignal<string>;
|
|
1153
1336
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1154
1337
|
trackerQuery: BaseTrackerQuery<TrackedEntityInstance>;
|
|
1155
1338
|
formMetaData: IFormMetadata;
|
|
@@ -1158,22 +1341,22 @@ declare class TrackerFormComponent implements OnInit {
|
|
|
1158
1341
|
onFormUpdate(values: any): void;
|
|
1159
1342
|
onSave(event: any): void;
|
|
1160
1343
|
onCancel(): void;
|
|
1161
|
-
static ɵfac:
|
|
1162
|
-
static ɵcmp:
|
|
1344
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TrackerFormComponent, never>;
|
|
1345
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TrackerFormComponent, "ng-dhis2-ui-tracker-form", never, { "program": { "alias": "program"; "required": true; "isSignal": true; }; "programStage": { "alias": "programStage"; "required": false; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
1163
1346
|
}
|
|
1164
1347
|
|
|
1165
1348
|
declare class TrackerFormModule {
|
|
1166
|
-
static ɵfac:
|
|
1167
|
-
static ɵmod:
|
|
1168
|
-
static ɵinj:
|
|
1349
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TrackerFormModule, never>;
|
|
1350
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TrackerFormModule, [typeof TrackerFormComponent], [typeof i2.CommonModule, typeof D2FormModule], [typeof TrackerFormComponent]>;
|
|
1351
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TrackerFormModule>;
|
|
1169
1352
|
}
|
|
1170
1353
|
|
|
1171
1354
|
declare class EventFormComponent implements OnInit {
|
|
1172
|
-
program:
|
|
1173
|
-
programStage:
|
|
1174
|
-
eventId:
|
|
1175
|
-
enrollment:
|
|
1176
|
-
trackedEntity:
|
|
1355
|
+
program: _angular_core.InputSignal<string>;
|
|
1356
|
+
programStage: _angular_core.InputSignal<string>;
|
|
1357
|
+
eventId: _angular_core.InputSignal<string>;
|
|
1358
|
+
enrollment: _angular_core.InputSignal<string>;
|
|
1359
|
+
trackedEntity: _angular_core.InputSignal<string>;
|
|
1177
1360
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1178
1361
|
eventQuery: BaseEventQuery<DHIS2Event>;
|
|
1179
1362
|
formMetaData: IFormMetadata;
|
|
@@ -1182,147 +1365,52 @@ declare class EventFormComponent implements OnInit {
|
|
|
1182
1365
|
onFormUpdate(values: any): void;
|
|
1183
1366
|
onSave(event: any): void;
|
|
1184
1367
|
onCancel(): void;
|
|
1185
|
-
static ɵfac:
|
|
1186
|
-
static ɵcmp:
|
|
1368
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventFormComponent, never>;
|
|
1369
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EventFormComponent, "ng-dhis2-ui-event-form", never, { "program": { "alias": "program"; "required": true; "isSignal": true; }; "programStage": { "alias": "programStage"; "required": true; "isSignal": true; }; "eventId": { "alias": "eventId"; "required": false; "isSignal": true; }; "enrollment": { "alias": "enrollment"; "required": false; "isSignal": true; }; "trackedEntity": { "alias": "trackedEntity"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
1187
1370
|
}
|
|
1188
1371
|
|
|
1189
1372
|
declare class EventFormModule {
|
|
1190
|
-
static ɵfac:
|
|
1191
|
-
static ɵmod:
|
|
1192
|
-
static ɵinj:
|
|
1193
|
-
}
|
|
1194
|
-
|
|
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>;
|
|
1373
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventFormModule, never>;
|
|
1374
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<EventFormModule, [typeof EventFormComponent], [typeof i2.CommonModule, typeof D2FormModule], [typeof EventFormComponent]>;
|
|
1375
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<EventFormModule>;
|
|
1293
1376
|
}
|
|
1294
1377
|
|
|
1295
1378
|
declare class ProgramEntryFormModule {
|
|
1296
1379
|
#private;
|
|
1297
|
-
config:
|
|
1298
|
-
trackedEntity:
|
|
1299
|
-
event:
|
|
1300
|
-
enrollment:
|
|
1301
|
-
orgUnit:
|
|
1302
|
-
customOrgUnitRoots:
|
|
1380
|
+
config: _angular_core.InputSignal<ProgramEntryFormConfig>;
|
|
1381
|
+
trackedEntity: _angular_core.InputSignal<string>;
|
|
1382
|
+
event: _angular_core.InputSignal<string>;
|
|
1383
|
+
enrollment: _angular_core.InputSignal<string>;
|
|
1384
|
+
orgUnit: _angular_core.InputSignal<string>;
|
|
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
|
-
loading:
|
|
1306
|
-
metaData:
|
|
1307
|
-
isFormValid:
|
|
1390
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
1391
|
+
metaData: _angular_core.WritableSignal<IProgramEntryFormMetaData>;
|
|
1392
|
+
isFormValid: _angular_core.WritableSignal<boolean>;
|
|
1308
1393
|
isFormValid$: Observable<boolean>;
|
|
1309
|
-
instance:
|
|
1394
|
+
instance: _angular_core.WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
1310
1395
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1396
|
+
preprocess: _angular_core.InputSignal<(payload: {
|
|
1397
|
+
instance: TrackedEntityInstance | DHIS2Event;
|
|
1398
|
+
}) => void>;
|
|
1311
1399
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1312
1400
|
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1313
1401
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1314
1402
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1315
1403
|
formCancel: EventEmitter<any>;
|
|
1316
1404
|
FormLoader: () => React.JSX.Element;
|
|
1317
|
-
dataId:
|
|
1318
|
-
FormActionButtons:
|
|
1405
|
+
dataId: _angular_core.Signal<any>;
|
|
1406
|
+
FormActionButtons: _angular_core.Signal<React.JSX.Element | (() => React.JSX.Element)>;
|
|
1319
1407
|
ngOnInit(): Promise<void>;
|
|
1320
1408
|
onFormUpdate(dataValues: Record<string, unknown>): void;
|
|
1321
1409
|
onValidityUpdate(isFormValid: boolean): void;
|
|
1322
1410
|
onCancel(): void;
|
|
1323
|
-
static ɵfac:
|
|
1324
|
-
static ɵcmp:
|
|
1411
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgramEntryFormModule, 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>;
|
|
1325
1413
|
}
|
|
1326
1414
|
|
|
1327
|
-
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 };
|
|
1328
|
-
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 };
|