@iapps/ng-dhis2-ui 1.2.102 → 1.2.104
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 +658 -376
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +1311 -13
- package/package.json +1 -1
- package/lib/modules/breadcrumb/breadcrumb.module.d.ts +0 -8
- package/lib/modules/breadcrumb/components/breadcrumb-item.component.d.ts +0 -6
- package/lib/modules/breadcrumb/containers/breadcrumb.component.d.ts +0 -12
- package/lib/modules/breadcrumb/index.d.ts +0 -3
- package/lib/modules/breadcrumb/models/breadcrumb-item.model.d.ts +0 -6
- package/lib/modules/breadcrumb/models/index.d.ts +0 -1
- package/lib/modules/button/button.component.d.ts +0 -18
- package/lib/modules/button/button.module.d.ts +0 -9
- package/lib/modules/button/index.d.ts +0 -2
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.d.ts +0 -19
- package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/data-table-ui/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +0 -20
- package/lib/modules/data-table-ui/data-table-ui.module.d.ts +0 -10
- package/lib/modules/data-table-ui/hooks/index.d.ts +0 -1
- package/lib/modules/data-table-ui/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/data-table-ui/index.d.ts +0 -3
- package/lib/modules/data-table-ui/models/data-table.models.d.ts +0 -10
- package/lib/modules/event-form/event-form.component.d.ts +0 -21
- package/lib/modules/event-form/event-form.module.d.ts +0 -9
- package/lib/modules/event-form/index.d.ts +0 -2
- package/lib/modules/form/components/base-form-field.component.d.ts +0 -41
- package/lib/modules/form/components/file-upload-field.component.d.ts +0 -15
- package/lib/modules/form/components/form-field-item.component.d.ts +0 -6
- package/lib/modules/form/components/org-unit-form-field.component.d.ts +0 -20
- package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +0 -11
- package/lib/modules/form/containers/form/form.component.d.ts +0 -41
- package/lib/modules/form/containers/form-field/form-field.component.d.ts +0 -59
- package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +0 -38
- package/lib/modules/form/containers/section-form/section-form.component.d.ts +0 -33
- package/lib/modules/form/form.module.d.ts +0 -16
- package/lib/modules/form/hooks/field-validation.hook.d.ts +0 -13
- package/lib/modules/form/hooks/index.d.ts +0 -1
- package/lib/modules/form/index.d.ts +0 -9
- package/lib/modules/form/interfaces/field-control-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +0 -7
- package/lib/modules/form/interfaces/field-type.interface.d.ts +0 -16
- package/lib/modules/form/interfaces/form-configuration.model.d.ts +0 -63
- package/lib/modules/form/interfaces/form-field-extension.interface.d.ts +0 -6
- package/lib/modules/form/interfaces/form-field-group.interface.d.ts +0 -15
- package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +0 -1
- package/lib/modules/form/interfaces/form-field.interface.d.ts +0 -47
- package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +0 -10
- package/lib/modules/form/interfaces/form-metadata.interface.d.ts +0 -11
- package/lib/modules/form/interfaces/index.d.ts +0 -10
- package/lib/modules/form/models/boolean.model.d.ts +0 -5
- package/lib/modules/form/models/check-box.model.d.ts +0 -5
- package/lib/modules/form/models/date-field.model.d.ts +0 -7
- package/lib/modules/form/models/date-range-value.model.d.ts +0 -4
- package/lib/modules/form/models/dropdown-option.model.d.ts +0 -6
- package/lib/modules/form/models/dropdown.model.d.ts +0 -5
- package/lib/modules/form/models/field-config.model.d.ts +0 -5
- package/lib/modules/form/models/field-dropdown.model.d.ts +0 -10
- package/lib/modules/form/models/fields-data.model.d.ts +0 -8
- package/lib/modules/form/models/form-config.model.d.ts +0 -10
- package/lib/modules/form/models/form-field-group.model.d.ts +0 -23
- package/lib/modules/form/models/form-field.model.d.ts +0 -50
- package/lib/modules/form/models/form-metadata-rule.model.d.ts +0 -35
- package/lib/modules/form/models/form-metadata-section.model.d.ts +0 -33
- package/lib/modules/form/models/form-metadata.model.d.ts +0 -26
- package/lib/modules/form/models/form-value.model.d.ts +0 -19
- package/lib/modules/form/models/form.model.d.ts +0 -14
- package/lib/modules/form/models/index.d.ts +0 -17
- package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +0 -29
- package/lib/modules/form/shared/components/index.d.ts +0 -1
- package/lib/modules/form/shared/index.d.ts +0 -1
- package/lib/modules/form/utils/field-control-type.util.d.ts +0 -4
- package/lib/modules/form/utils/field-type.util.d.ts +0 -3
- package/lib/modules/form/utils/field.util.d.ts +0 -9
- package/lib/modules/form/utils/form-value.util.d.ts +0 -4
- package/lib/modules/form/utils/form.util.d.ts +0 -9
- package/lib/modules/form/utils/index.d.ts +0 -6
- package/lib/modules/form/utils/translation.util.d.ts +0 -3
- package/lib/modules/header-bar/header-bar.component.d.ts +0 -11
- package/lib/modules/header-bar/header-bar.module.d.ts +0 -9
- package/lib/modules/header-bar/index.d.ts +0 -2
- package/lib/modules/header-bar/models/header-bar-app.model.d.ts +0 -10
- package/lib/modules/header-bar/models/header-bar-data.model.d.ts +0 -16
- package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +0 -5
- package/lib/modules/header-bar/models/index.d.ts +0 -2
- package/lib/modules/header-bar/utils/apps.d.ts +0 -16
- package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +0 -15
- package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +0 -8
- package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +0 -7
- package/lib/modules/header-bar/utils/header-bar-context.d.ts +0 -14
- package/lib/modules/header-bar/utils/header-bar.d.ts +0 -19
- package/lib/modules/header-bar/utils/join-path.d.ts +0 -1
- package/lib/modules/header-bar/utils/logo-image.d.ts +0 -8
- package/lib/modules/header-bar/utils/logo.d.ts +0 -12
- package/lib/modules/header-bar/utils/notification-icon.d.ts +0 -21
- package/lib/modules/header-bar/utils/notifications.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/index.d.ts +0 -1
- package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +0 -16
- package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +0 -13
- package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +0 -14
- package/lib/modules/header-bar/utils/profile.d.ts +0 -18
- package/lib/modules/header-bar/utils/title.d.ts +0 -15
- package/lib/modules/line-list/components/data-table-actions/data-table-actions.d.ts +0 -9
- package/lib/modules/line-list/components/data-table-actions/index.d.ts +0 -1
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.d.ts +0 -12
- package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
- package/lib/modules/line-list/components/dropdown-menu/index.d.ts +0 -1
- package/lib/modules/line-list/components/org-unit-form-field.component.d.ts +0 -14
- package/lib/modules/line-list/components/orgUnitSelector.d.ts +0 -2
- package/lib/modules/line-list/components/table/filterToolbar.d.ts +0 -3
- package/lib/modules/line-list/components/table/lineListTable.d.ts +0 -2
- package/lib/modules/line-list/components/table/pagination.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableBody.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableCell.d.ts +0 -5
- package/lib/modules/line-list/components/table/tableFooter.d.ts +0 -2
- package/lib/modules/line-list/components/table/tableHeader.d.ts +0 -8
- package/lib/modules/line-list/components/table/tableRow.d.ts +0 -2
- package/lib/modules/line-list/containers/line-list.component.d.ts +0 -52
- package/lib/modules/line-list/hooks/index.d.ts +0 -1
- package/lib/modules/line-list/hooks/use-dynamic-styles.hook.d.ts +0 -1
- package/lib/modules/line-list/index.d.ts +0 -3
- package/lib/modules/line-list/line-list.module.d.ts +0 -10
- package/lib/modules/line-list/models/action-option-orientation.model.d.ts +0 -1
- package/lib/modules/line-list/models/attribute-filter.model.d.ts +0 -10
- package/lib/modules/line-list/models/dropdown-menu.model.d.ts +0 -9
- package/lib/modules/line-list/models/filter-config.model.d.ts +0 -6
- package/lib/modules/line-list/models/index.d.ts +0 -3
- package/lib/modules/line-list/models/line-list-action-option.model.d.ts +0 -6
- package/lib/modules/line-list/models/line-list.models.d.ts +0 -262
- package/lib/modules/line-list/services/line-list.service.d.ts +0 -13
- package/lib/modules/line-list/utils/event-table-data-util.d.ts +0 -6
- package/lib/modules/line-list/utils/tei-table-data-utils.d.ts +0 -9
- package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +0 -28
- package/lib/modules/organisation-unit-selector/components/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/components/utils/index.d.ts +0 -2
- package/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.d.ts +0 -10
- package/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +0 -27
- package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +0 -30
- package/lib/modules/organisation-unit-selector/index.d.ts +0 -4
- package/lib/modules/organisation-unit-selector/models/index.d.ts +0 -1
- package/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.d.ts +0 -13
- package/lib/modules/organisation-unit-selector/organisation-unit-selector.module.d.ts +0 -10
- package/lib/modules/period-selector/components/FixedPeriodFilter.d.ts +0 -18
- package/lib/modules/period-selector/components/PeriodDimension.d.ts +0 -15
- package/lib/modules/period-selector/components/PeriodTransfer.d.ts +0 -28
- package/lib/modules/period-selector/components/RelativePeriodFilter.d.ts +0 -11
- package/lib/modules/period-selector/components/utils/fixedPeriods.d.ts +0 -17
- package/lib/modules/period-selector/components/utils/index.d.ts +0 -4
- package/lib/modules/period-selector/components/utils/periodTypes.d.ts +0 -19
- package/lib/modules/period-selector/components/utils/relativePeriods.d.ts +0 -17
- package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +0 -21
- package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +0 -16
- package/lib/modules/period-selector/index.d.ts +0 -3
- package/lib/modules/period-selector/period-selector.module.d.ts +0 -10
- package/lib/modules/program-entry-form/index.d.ts +0 -2
- package/lib/modules/program-entry-form/models/index.d.ts +0 -3
- package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +0 -29
- package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +0 -16
- package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +0 -58
- package/lib/modules/program-entry-form/program-entry-form.component.d.ts +0 -38
- package/lib/modules/program-entry-form/utils/index.d.ts +0 -2
- package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +0 -80
- package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +0 -8
- package/lib/modules/react-wrapper/react-wrapper.component.d.ts +0 -17
- package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +0 -39
- package/lib/modules/selection-filters-ui/index.d.ts +0 -2
- package/lib/modules/selection-filters-ui/models/selection-filters-ui.model.d.ts +0 -54
- package/lib/modules/selection-filters-ui/selection-filters-ui.module.d.ts +0 -11
- package/lib/modules/tracker-form/index.d.ts +0 -2
- package/lib/modules/tracker-form/tracker-form.component.d.ts +0 -19
- package/lib/modules/tracker-form/tracker-form.module.d.ts +0 -9
- package/lib/shared/assets/AssignedCategoriesIcon.d.ts +0 -2
- package/lib/shared/assets/DimensionItemIcons/PeriodIcon.d.ts +0 -3
- package/lib/shared/components/index.d.ts +0 -1
- package/lib/shared/components/transfer-option.component.d.ts +0 -19
- package/lib/shared/hooks/dynamic-styles.hook.d.ts +0 -1
- package/lib/shared/hooks/index.d.ts +0 -1
- package/lib/shared/index.d.ts +0 -4
- package/lib/shared/shared.module.d.ts +0 -7
- package/lib/shared/styles/DimensionSelector.style.d.ts +0 -2
- package/lib/shared/styles/index.d.ts +0 -1
- package/lib/shared/utils/axis.d.ts +0 -11
- package/lib/shared/utils/axisGetDimension.d.ts +0 -1
- package/lib/shared/utils/axisHasDimension.d.ts +0 -1
- package/lib/shared/utils/dimension.d.ts +0 -55
- package/lib/shared/utils/dimensionGetItems.d.ts +0 -1
- package/lib/shared/utils/dimensionIs.d.ts +0 -1
- package/lib/shared/utils/dimensionIsEmpty.d.ts +0 -3
- package/lib/shared/utils/dimensionIsValid.d.ts +0 -3
- package/lib/shared/utils/dimensionSelectorHelper.d.ts +0 -3
- package/lib/shared/utils/index.d.ts +0 -11
- package/lib/shared/utils/layoutGetAllAxes.d.ts +0 -1
- package/lib/shared/utils/layoutGetAllDimensions.d.ts +0 -1
- package/lib/shared/utils/layoutGetDimension.d.ts +0 -1
- package/lib/shared/utils/layoutReplaceDimension.d.ts +0 -1
- package/lib/shared/utils/list.d.ts +0 -1
- package/lib/shared/utils/predefinedDimensions.d.ts +0 -67
package/index.d.ts
CHANGED
|
@@ -1,13 +1,1311 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, AfterViewInit, ElementRef, EventEmitter, NgZone, SimpleChanges, OnChanges, OnInit, EffectRef, Signal } from '@angular/core';
|
|
3
|
+
import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
4
|
+
import React, { ComponentProps } from 'react';
|
|
5
|
+
import * as ReactDOM from 'react-dom/client';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
|
|
8
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2EventResponse, D2TrackerResponse } from '@iapps/d2-web-sdk';
|
|
9
|
+
import * as rxjs from 'rxjs';
|
|
10
|
+
import { Observable, Subject } from 'rxjs';
|
|
11
|
+
import * as i8 from '@angular/forms';
|
|
12
|
+
import { FormGroup, FormControl, UntypedFormGroup } from '@angular/forms';
|
|
13
|
+
import * as _dhis2_ui_loader from '@dhis2-ui/loader';
|
|
14
|
+
import * as _dhis2_app_service_config from '@dhis2/app-service-config';
|
|
15
|
+
|
|
16
|
+
declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
|
|
17
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
18
|
+
props?: ComponentProps<any>;
|
|
19
|
+
component: any;
|
|
20
|
+
content: ElementRef<HTMLElement>;
|
|
21
|
+
protected reactDomRoot?: ReactDOM.Root;
|
|
22
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
protected render(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactWrapperModule, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReactWrapperModule, "ng-dhis2-ui-wrapper", never, { "props": { "alias": "props"; "required": false; }; "component": { "alias": "component"; "required": false; }; }, {}, ["content"], never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class HeaderBarComponent extends ReactWrapperModule {
|
|
31
|
+
private httpClient;
|
|
32
|
+
constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
|
|
33
|
+
ngAfterViewInit(): Promise<void>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderBarComponent, "ng-dhis2-ui-header-bar", never, {}, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class SharedDhis2UiModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDhis2UiModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDhis2UiModule, never, [typeof i2.CommonModule], never>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDhis2UiModule>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class HeaderBarModule {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarModule, never>;
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderBarModule, [typeof HeaderBarComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof HeaderBarComponent]>;
|
|
47
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderBarModule>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class ButtonComponent extends ReactWrapperModule {
|
|
51
|
+
label: string;
|
|
52
|
+
primary?: boolean;
|
|
53
|
+
secondary?: boolean;
|
|
54
|
+
destructive?: boolean;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
small?: boolean;
|
|
57
|
+
large?: boolean;
|
|
58
|
+
buttonClick: EventEmitter<any>;
|
|
59
|
+
ngAfterViewInit(): Promise<void>;
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
onButtonClick(event: any): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare class ButtonModule {
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
68
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, [typeof ButtonComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof ButtonComponent]>;
|
|
69
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface BreadcrumbItem {
|
|
73
|
+
label: string;
|
|
74
|
+
url: string;
|
|
75
|
+
icon?: string;
|
|
76
|
+
selected?: boolean;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare class BreadcrumbComponent extends ReactWrapperModule {
|
|
80
|
+
#private;
|
|
81
|
+
breadcrumbs: i0.InputSignal<BreadcrumbItem[]>;
|
|
82
|
+
selectBreadcrumb: EventEmitter<BreadcrumbItem>;
|
|
83
|
+
ngAfterViewInit(): Promise<void>;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ng-dhis2-ui-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; }, { "selectBreadcrumb": "selectBreadcrumb"; }, never, ["*"], false, never>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class BreadcrumbModule {
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbModule, never>;
|
|
90
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BreadcrumbModule, [typeof BreadcrumbComponent], [typeof i2.CommonModule], [typeof BreadcrumbComponent]>;
|
|
91
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BreadcrumbModule>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type PeriodSelectionEvent = {
|
|
95
|
+
dimensionId: string;
|
|
96
|
+
items: Record<string, unknown>[];
|
|
97
|
+
};
|
|
98
|
+
declare class PeriodSelectorComponent extends ReactWrapperModule {
|
|
99
|
+
private ngZone;
|
|
100
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
101
|
+
selectedPeriods: any[];
|
|
102
|
+
selectPeriods: EventEmitter<any>;
|
|
103
|
+
props: Record<string, unknown>;
|
|
104
|
+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
|
|
105
|
+
ngAfterViewInit(): Promise<void>;
|
|
106
|
+
onSelectItems(selectionEvent: PeriodSelectionEvent): void;
|
|
107
|
+
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorComponent, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PeriodSelectorComponent, "ng-dhis2-ui-period-selector", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "selectPeriods": "selectPeriods"; }, never, never, false, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class PeriodSelectorModalComponent extends ReactWrapperModule {
|
|
113
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
114
|
+
selectedPeriods: any[];
|
|
115
|
+
cancel: EventEmitter<any>;
|
|
116
|
+
confirm: EventEmitter<any>;
|
|
117
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
118
|
+
ngAfterViewInit(): Promise<void>;
|
|
119
|
+
onCancel(): void;
|
|
120
|
+
onConfirm(selectedItems: any[]): void;
|
|
121
|
+
getExcludedPeriodTypes: (systemSettings?: any) => any[];
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorModalComponent, never>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PeriodSelectorModalComponent, "ng-dhis2-ui-period-selector-modal", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "cancel": "cancel"; "confirm": "confirm"; }, never, never, false, never>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare class PeriodSelectorModule {
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorModule, never>;
|
|
128
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PeriodSelectorModule, [typeof PeriodSelectorComponent, typeof PeriodSelectorModalComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof PeriodSelectorComponent, typeof PeriodSelectorModalComponent]>;
|
|
129
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PeriodSelectorModule>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
type OrganisationUnitSelectionUsageType = 'DATA_ENTRY' | 'DATA_VIEW';
|
|
133
|
+
declare class OrganisationUnitSelectionConfig {
|
|
134
|
+
hideGroupSelect: boolean;
|
|
135
|
+
hideLevelSelect: boolean;
|
|
136
|
+
hideUserOrgUnits: boolean;
|
|
137
|
+
usageType: OrganisationUnitSelectionUsageType;
|
|
138
|
+
minLevel?: number;
|
|
139
|
+
allowSingleSelection?: boolean;
|
|
140
|
+
batchSize?: number;
|
|
141
|
+
additionalQueryFields?: string[];
|
|
142
|
+
allowCaching?: boolean;
|
|
143
|
+
constructor(params?: Partial<OrganisationUnitSelectionConfig>);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type OrganisationUnitSelectionEvent$1 = {
|
|
147
|
+
dimensionId: string;
|
|
148
|
+
items: Record<string, unknown>[];
|
|
149
|
+
};
|
|
150
|
+
declare class OrganisationUnitSelectorComponent extends ReactWrapperModule {
|
|
151
|
+
private ngZone;
|
|
152
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
153
|
+
selectedOrgUnits: any[];
|
|
154
|
+
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
155
|
+
selectOrgUnits: EventEmitter<any>;
|
|
156
|
+
props: Record<string, unknown>;
|
|
157
|
+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
|
|
158
|
+
ngAfterViewInit(): Promise<void>;
|
|
159
|
+
private getAppConfig;
|
|
160
|
+
getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
|
|
161
|
+
getRootOrgUnits(): Promise<string[]>;
|
|
162
|
+
getOrgUnitGroups(): Promise<any>;
|
|
163
|
+
getOrgUnitLevels(): Promise<any>;
|
|
164
|
+
onSelectItems(selectionEvent: OrganisationUnitSelectionEvent$1): void;
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorComponent, never>;
|
|
166
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type OrganisationUnitSelectionEvent = {
|
|
170
|
+
dimensionId: string;
|
|
171
|
+
items: Record<string, unknown>[];
|
|
172
|
+
};
|
|
173
|
+
declare class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
|
|
174
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
175
|
+
selectedOrgUnits: any[];
|
|
176
|
+
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
177
|
+
selectOrgUnits: EventEmitter<any>;
|
|
178
|
+
cancel: EventEmitter<any>;
|
|
179
|
+
confirm: EventEmitter<any>;
|
|
180
|
+
props: Record<string, unknown>;
|
|
181
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
182
|
+
ngAfterViewInit(): Promise<void>;
|
|
183
|
+
onCancel(): void;
|
|
184
|
+
onConfirm(selectedItems: any[]): void;
|
|
185
|
+
private getAppConfig;
|
|
186
|
+
getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
|
|
187
|
+
getRootOrgUnits(): Promise<string[]>;
|
|
188
|
+
getOrgUnitGroups(): Promise<any>;
|
|
189
|
+
getOrgUnitLevels(): Promise<any>;
|
|
190
|
+
onSelectItems(selectionEvent: OrganisationUnitSelectionEvent): void;
|
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorModalComponent, never>;
|
|
192
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class OrganisationUnitSelectorModule {
|
|
196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorModule, never>;
|
|
197
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OrganisationUnitSelectorModule, [typeof OrganisationUnitSelectorComponent, typeof OrganisationUnitSelectorModalComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule], [typeof OrganisationUnitSelectorComponent, typeof OrganisationUnitSelectorModalComponent]>;
|
|
198
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<OrganisationUnitSelectorModule>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
type ActionOptionOrientation = 'DROPDOWN' | 'BUTTON' | 'LINK';
|
|
202
|
+
|
|
203
|
+
interface DropdownMenuOption$1 {
|
|
204
|
+
id?: string;
|
|
205
|
+
label: string;
|
|
206
|
+
action?: string;
|
|
207
|
+
description?: string;
|
|
208
|
+
iconOnly?: boolean;
|
|
209
|
+
icon?: any;
|
|
210
|
+
destructive?: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface LineListActionOption extends DropdownMenuOption$1 {
|
|
214
|
+
condition?: string;
|
|
215
|
+
onClick?: (tableRow: TrackedEntityInstance | DHIS2Event) => void;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface AttributeFilter {
|
|
219
|
+
attribute?: string;
|
|
220
|
+
dataElement?: string;
|
|
221
|
+
operator: string;
|
|
222
|
+
value: string | number;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare class LineListService {
|
|
226
|
+
private httpClient;
|
|
227
|
+
constructor(httpClient: NgxDhis2HttpClientService);
|
|
228
|
+
/**
|
|
229
|
+
* Fetch orgUnit names for given orgUnit IDs
|
|
230
|
+
*/
|
|
231
|
+
fetchOrgUnits(orgUnitIds: string[]): Observable<Map<string, string>>;
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineListService, never>;
|
|
233
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LineListService>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare class LineListTableComponent extends ReactWrapperModule {
|
|
237
|
+
triggerToken: string;
|
|
238
|
+
programId: string;
|
|
239
|
+
orgUnit: string;
|
|
240
|
+
programStageId?: string;
|
|
241
|
+
actionOptions?: LineListActionOption[];
|
|
242
|
+
actionOptionOrientation: ActionOptionOrientation;
|
|
243
|
+
attributeFilters?: AttributeFilter[];
|
|
244
|
+
useOuModeWithOlderDHIS2Instance?: boolean;
|
|
245
|
+
startDate?: string;
|
|
246
|
+
endDate?: string;
|
|
247
|
+
dataQueryFilters?: DataQueryFilter[];
|
|
248
|
+
ouMode?: string;
|
|
249
|
+
isButtonLoading: boolean;
|
|
250
|
+
buttonFilter: string;
|
|
251
|
+
filterRootOrgUnit: boolean;
|
|
252
|
+
showFilters: boolean;
|
|
253
|
+
isOptionSetNameVisible: boolean;
|
|
254
|
+
allowRowsSelection: boolean;
|
|
255
|
+
enrollmentStatus: EnrollmentStatus;
|
|
256
|
+
filterableColumnIds: string[];
|
|
257
|
+
triggerRefetch: boolean;
|
|
258
|
+
eventStatus: {
|
|
259
|
+
programStage: string;
|
|
260
|
+
status: EventStatus;
|
|
261
|
+
};
|
|
262
|
+
actionSelected: EventEmitter<{
|
|
263
|
+
action: string;
|
|
264
|
+
data: TrackedEntityInstance | DHIS2Event;
|
|
265
|
+
}>;
|
|
266
|
+
rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
|
|
267
|
+
showActionButtons: boolean;
|
|
268
|
+
showEnrollmentDates: boolean;
|
|
269
|
+
showDownloadButton: boolean;
|
|
270
|
+
searcheableDataElements: string[];
|
|
271
|
+
private reactStateUpdaters;
|
|
272
|
+
setReactStateUpdaters: (updaters: any) => void;
|
|
273
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
274
|
+
lineListService: LineListService;
|
|
275
|
+
LineList: () => React.DetailedReactHTMLElement<null, HTMLElement>;
|
|
276
|
+
ngAfterViewInit(): Promise<void>;
|
|
277
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineListTableComponent, never>;
|
|
278
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
declare class LineListModule {
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineListModule, never>;
|
|
283
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LineListModule, [typeof LineListTableComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule], [typeof LineListTableComponent]>;
|
|
284
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LineListModule>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface TableRow$1 {
|
|
288
|
+
[key: string]: string | number;
|
|
289
|
+
index: number;
|
|
290
|
+
}
|
|
291
|
+
interface ColumnDefinition {
|
|
292
|
+
column: string;
|
|
293
|
+
display: string;
|
|
294
|
+
index?: string;
|
|
295
|
+
visible?: boolean;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
interface DropdownMenuOption {
|
|
299
|
+
id?: string;
|
|
300
|
+
label: string;
|
|
301
|
+
description?: string;
|
|
302
|
+
icon?: any;
|
|
303
|
+
destructive?: boolean;
|
|
304
|
+
onClick?: Function;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare class DataTableUIComponent extends ReactWrapperModule implements AfterViewInit, OnChanges {
|
|
308
|
+
data: TableRow$1[];
|
|
309
|
+
columnDefinitions: ColumnDefinition[];
|
|
310
|
+
actionOptions?: DropdownMenuOption[];
|
|
311
|
+
actionSelected: EventEmitter<{
|
|
312
|
+
action: string;
|
|
313
|
+
row: TableRow$1;
|
|
314
|
+
}>;
|
|
315
|
+
DataTableUI: () => React.DetailedReactHTMLElement<null, HTMLElement>;
|
|
316
|
+
ngAfterViewInit(): Promise<void>;
|
|
317
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableUIComponent, never>;
|
|
319
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare class DataTableUIModule {
|
|
323
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableUIModule, never>;
|
|
324
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DataTableUIModule, [typeof DataTableUIComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule], [typeof DataTableUIComponent]>;
|
|
325
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DataTableUIModule>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
interface IFieldDropdown {
|
|
329
|
+
key: string;
|
|
330
|
+
value: string;
|
|
331
|
+
label: string;
|
|
332
|
+
order?: number;
|
|
333
|
+
code?: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'transfer' | 'search';
|
|
337
|
+
|
|
338
|
+
type FormFieldMetaType = 'DATA_ELEMENT' | 'ATTRIBUTE';
|
|
339
|
+
|
|
340
|
+
interface FormFieldExtension {
|
|
341
|
+
id: string;
|
|
342
|
+
accept?: string[];
|
|
343
|
+
sizeLimit?: number;
|
|
344
|
+
isDataElementUnique?: boolean;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface IFormField<T> {
|
|
348
|
+
value?: T | '';
|
|
349
|
+
id: string;
|
|
350
|
+
code?: string;
|
|
351
|
+
key: string;
|
|
352
|
+
referenceKey?: string;
|
|
353
|
+
label: string;
|
|
354
|
+
required: boolean;
|
|
355
|
+
order?: number;
|
|
356
|
+
controlType: FieldControlType;
|
|
357
|
+
type: string;
|
|
358
|
+
disabled?: boolean;
|
|
359
|
+
options?: IFieldDropdown[];
|
|
360
|
+
placeholder?: string;
|
|
361
|
+
min?: number | Date | string;
|
|
362
|
+
max?: number | Date | string;
|
|
363
|
+
maxLength?: number | string;
|
|
364
|
+
hidden: boolean;
|
|
365
|
+
units?: string;
|
|
366
|
+
generated?: boolean;
|
|
367
|
+
isDataElement?: boolean;
|
|
368
|
+
isAttribute?: boolean;
|
|
369
|
+
isOrgUnit?: boolean;
|
|
370
|
+
isEnrollmentDate?: boolean;
|
|
371
|
+
event?: string;
|
|
372
|
+
programStage?: string;
|
|
373
|
+
program?: string;
|
|
374
|
+
trackedEntityInstance?: string;
|
|
375
|
+
trackedEntityType?: string;
|
|
376
|
+
hasOptions?: boolean;
|
|
377
|
+
dependentField?: any;
|
|
378
|
+
fieldOptionsDependsOn?: string;
|
|
379
|
+
displayInList?: boolean;
|
|
380
|
+
displayInReports?: boolean;
|
|
381
|
+
searchable?: boolean;
|
|
382
|
+
unique?: boolean;
|
|
383
|
+
metaType?: FormFieldMetaType;
|
|
384
|
+
stepId?: string;
|
|
385
|
+
availableOptionsLabel?: string;
|
|
386
|
+
selectedOptionsLabel?: string;
|
|
387
|
+
allowFutureDate?: boolean;
|
|
388
|
+
extension?: FormFieldExtension;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
declare enum FieldType {
|
|
392
|
+
TEXT = "TEXT",
|
|
393
|
+
MULTI_TEXT = "MULTI_TEXT",
|
|
394
|
+
TRUE_ONLY = "TRUE_ONLY",
|
|
395
|
+
LONG_TEXT = "LONG_TEXT",
|
|
396
|
+
BOOLEAN = "BOOLEAN",
|
|
397
|
+
NUMBER = "NUMBER",
|
|
398
|
+
INTEGER_ZERO_OR_POSITIVE = "INTEGER_ZERO_OR_POSITIVE",
|
|
399
|
+
IMAGE = "IMAGE",
|
|
400
|
+
FILE_RESOURCE = "FILE_RESOURCE",
|
|
401
|
+
DATE = "DATE",
|
|
402
|
+
DATE_TIME = "DATETIME",
|
|
403
|
+
ORG_UNIT = "ORGANISATION_UNIT",
|
|
404
|
+
PHONE_NUMBER = "PHONE_NUMBER",
|
|
405
|
+
EMAIL = "EMAIL"
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
interface FormGroupField {
|
|
409
|
+
id: string;
|
|
410
|
+
label?: string;
|
|
411
|
+
formName?: string;
|
|
412
|
+
fieldType: 'ATTRIBUTE' | 'DATA_ELEMENT' | 'ORG_UNIT' | 'ENROLLMENT_DATE' | 'CUSTOM';
|
|
413
|
+
disabled?: boolean;
|
|
414
|
+
mandatory?: boolean;
|
|
415
|
+
fieldOptionsDependsOn?: string;
|
|
416
|
+
optionType?: 'ORG_UNIT' | 'PORT_OF_ENTRY' | 'CUSTOM';
|
|
417
|
+
hasOptions?: boolean;
|
|
418
|
+
valueType?: string;
|
|
419
|
+
openFutureDays?: number;
|
|
420
|
+
openPreviousDays?: number;
|
|
421
|
+
skipSaving?: boolean;
|
|
422
|
+
stageId?: string;
|
|
423
|
+
trackedEntityInstance?: string;
|
|
424
|
+
event?: string;
|
|
425
|
+
min?: number | Date | string;
|
|
426
|
+
max?: number | Date | string;
|
|
427
|
+
optionSet?: any;
|
|
428
|
+
translations?: any;
|
|
429
|
+
}
|
|
430
|
+
interface FormFieldGroup$1 {
|
|
431
|
+
id: string;
|
|
432
|
+
name: string;
|
|
433
|
+
translations?: any;
|
|
434
|
+
isFormHorizontal?: boolean;
|
|
435
|
+
attributes?: string[] | object[];
|
|
436
|
+
dataElements?: string[] | object[];
|
|
437
|
+
booleanGroupedDataElements?: string[] | object[];
|
|
438
|
+
fields: any[];
|
|
439
|
+
repeatableStage?: string;
|
|
440
|
+
repeatDependentField?: string;
|
|
441
|
+
}
|
|
442
|
+
interface FormSection {
|
|
443
|
+
id: string;
|
|
444
|
+
name: string;
|
|
445
|
+
sectionStateComplete?: boolean;
|
|
446
|
+
description?: string;
|
|
447
|
+
translations?: any;
|
|
448
|
+
fieldGroups: FormFieldGroup$1[];
|
|
449
|
+
}
|
|
450
|
+
interface AddtionalAttributeFilter {
|
|
451
|
+
attribute: string;
|
|
452
|
+
value: any;
|
|
453
|
+
}
|
|
454
|
+
interface FormConfiguration {
|
|
455
|
+
id: string;
|
|
456
|
+
name: string;
|
|
457
|
+
description?: string;
|
|
458
|
+
program: string;
|
|
459
|
+
topOrgUnit?: string;
|
|
460
|
+
trackedEntityType?: string;
|
|
461
|
+
autoFilledAttributes?: string[];
|
|
462
|
+
reservedAttribute?: string;
|
|
463
|
+
sections: FormSection[];
|
|
464
|
+
additionalAttributeFilters?: AddtionalAttributeFilter[];
|
|
465
|
+
downloadSqlView?: string;
|
|
466
|
+
sectionCategories?: Record<string, string[]>;
|
|
467
|
+
optionGroups?: string[];
|
|
468
|
+
dataElementGroup?: string[];
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
interface IFormFieldGroup {
|
|
472
|
+
dataKey?: string;
|
|
473
|
+
id: string;
|
|
474
|
+
name?: string;
|
|
475
|
+
sortOrder?: number;
|
|
476
|
+
translations?: any;
|
|
477
|
+
isFormHorizontal?: boolean;
|
|
478
|
+
attributes?: string[] | object[];
|
|
479
|
+
dataElements?: string[] | object[];
|
|
480
|
+
booleanGroupedDataElements?: string[] | object[];
|
|
481
|
+
fields: IFormField<string>[];
|
|
482
|
+
repeatableStage?: string;
|
|
483
|
+
repeatDependentField?: string;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
interface IFormMetadataSection {
|
|
487
|
+
id: string;
|
|
488
|
+
name: string;
|
|
489
|
+
program?: string;
|
|
490
|
+
sectionStateComplete?: boolean;
|
|
491
|
+
description?: string;
|
|
492
|
+
translations?: any;
|
|
493
|
+
fieldGroups: IFormFieldGroup[];
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
interface IFormMetadata {
|
|
497
|
+
id: string;
|
|
498
|
+
name: string;
|
|
499
|
+
description?: string;
|
|
500
|
+
fields: IFormField<string>[];
|
|
501
|
+
sections: IFormMetadataSection[];
|
|
502
|
+
rules: any[];
|
|
503
|
+
downloadSqlView?: string;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
interface FormFieldFunction<T> {
|
|
507
|
+
setMax: (field: Partial<IFormField<T>>) => string | number | Date | undefined;
|
|
508
|
+
}
|
|
509
|
+
declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
|
|
510
|
+
value?: T | '';
|
|
511
|
+
id: string;
|
|
512
|
+
code?: string;
|
|
513
|
+
key: string;
|
|
514
|
+
referenceKey?: string;
|
|
515
|
+
label: string;
|
|
516
|
+
required: boolean;
|
|
517
|
+
order?: number;
|
|
518
|
+
controlType: FieldControlType;
|
|
519
|
+
type: string;
|
|
520
|
+
disabled?: boolean;
|
|
521
|
+
options?: IFieldDropdown[];
|
|
522
|
+
placeholder?: string;
|
|
523
|
+
min?: number | Date | string;
|
|
524
|
+
max?: number | Date | string;
|
|
525
|
+
maxLength?: number | string;
|
|
526
|
+
hidden: boolean;
|
|
527
|
+
units?: string;
|
|
528
|
+
generated?: boolean;
|
|
529
|
+
unique?: boolean;
|
|
530
|
+
isDataElement?: boolean;
|
|
531
|
+
isAttribute?: boolean;
|
|
532
|
+
isOrgUnit?: boolean;
|
|
533
|
+
isEnrollmentDate?: boolean;
|
|
534
|
+
event?: string;
|
|
535
|
+
programStage?: string;
|
|
536
|
+
program?: string;
|
|
537
|
+
trackedEntityInstance?: string;
|
|
538
|
+
trackedEntityType?: string;
|
|
539
|
+
hasOptions?: boolean;
|
|
540
|
+
dependentField?: any;
|
|
541
|
+
fieldOptionsDependsOn?: string;
|
|
542
|
+
displayInList?: boolean;
|
|
543
|
+
displayInReports?: boolean;
|
|
544
|
+
searchable?: boolean;
|
|
545
|
+
metaType?: FormFieldMetaType;
|
|
546
|
+
stepId?: string;
|
|
547
|
+
availableOptionsLabel?: string;
|
|
548
|
+
selectedOptionsLabel?: string;
|
|
549
|
+
allowFutureDate?: boolean;
|
|
550
|
+
extension?: FormFieldExtension;
|
|
551
|
+
constructor(options?: Partial<FormField<T>>);
|
|
552
|
+
setMax(field: Partial<FormField<T>>): string | number | Date | undefined;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class Boolean extends FormField<string> {
|
|
556
|
+
controlType: FieldControlType;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
declare class CheckBox extends FormField<string> {
|
|
560
|
+
controlType: FieldControlType;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare class DateField extends FormField<string> {
|
|
564
|
+
controlType: FieldControlType;
|
|
565
|
+
type: string;
|
|
566
|
+
constructor(field: Partial<DateField>);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
interface DropdownOption {
|
|
570
|
+
key: string;
|
|
571
|
+
value: string;
|
|
572
|
+
label: string;
|
|
573
|
+
order?: number;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare class Dropdown extends FormField<string> {
|
|
577
|
+
controlType: FieldControlType;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
interface FieldsData {
|
|
581
|
+
[uuid: string]: FieldData;
|
|
582
|
+
}
|
|
583
|
+
interface FieldData {
|
|
584
|
+
uuid: string;
|
|
585
|
+
latest: any;
|
|
586
|
+
history: any[];
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
declare class FieldConfig {
|
|
590
|
+
hideLabel?: boolean;
|
|
591
|
+
inputWidth: string;
|
|
592
|
+
constructor(config?: Partial<FieldConfig>);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
declare class DateRangeValue {
|
|
596
|
+
startDate: string;
|
|
597
|
+
endDate: string;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
declare class FieldDropdown implements IFieldDropdown {
|
|
601
|
+
key: string;
|
|
602
|
+
value: string;
|
|
603
|
+
label: string;
|
|
604
|
+
order?: number | undefined;
|
|
605
|
+
constructor(params: IFieldDropdown);
|
|
606
|
+
toJson(): IFieldDropdown;
|
|
607
|
+
static getDropdownOptions(field: any, locale?: string): FieldDropdown[];
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
type FormDirection = 'horizontal' | 'vertical';
|
|
611
|
+
declare class FormConfig {
|
|
612
|
+
direction: FormDirection;
|
|
613
|
+
showSaveButton: boolean;
|
|
614
|
+
formName?: string;
|
|
615
|
+
fieldConfig: FieldConfig;
|
|
616
|
+
constructor(config?: Partial<FormConfig>);
|
|
617
|
+
get directionClassName(): "form-vertical" | "form-horizontal";
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
declare class FormFieldGroup implements IFormFieldGroup {
|
|
621
|
+
private params;
|
|
622
|
+
id: string;
|
|
623
|
+
name: string;
|
|
624
|
+
translations?: any;
|
|
625
|
+
isFormHorizontal?: boolean | undefined;
|
|
626
|
+
attributes?: string[] | object[] | undefined;
|
|
627
|
+
dataElements?: string[] | object[] | undefined;
|
|
628
|
+
booleanGroupedDataElements?: string[] | object[] | undefined;
|
|
629
|
+
repeatableStage?: string | undefined;
|
|
630
|
+
repeatDependentField?: string | undefined;
|
|
631
|
+
dataKey?: string | undefined;
|
|
632
|
+
constructor(params: {
|
|
633
|
+
formFieldGroup: Partial<FormFieldGroup>;
|
|
634
|
+
fieldMetaData: Record<string, unknown>[];
|
|
635
|
+
locale?: string;
|
|
636
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
637
|
+
});
|
|
638
|
+
get fields(): IFormField<string>[];
|
|
639
|
+
toJson(): IFormFieldGroup;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
interface JsonTransformer<T> {
|
|
643
|
+
toJson: () => T;
|
|
644
|
+
}
|
|
645
|
+
interface IMetadataRuleAction {
|
|
646
|
+
field: string;
|
|
647
|
+
actionType: string;
|
|
648
|
+
assignedData?: string;
|
|
649
|
+
displayedContent?: string;
|
|
650
|
+
options?: Partial<Option$1>[];
|
|
651
|
+
}
|
|
652
|
+
declare class MetadataRuleAction implements IMetadataRuleAction, JsonTransformer<IMetadataRuleAction> {
|
|
653
|
+
private ruleAction;
|
|
654
|
+
private ruleVariables;
|
|
655
|
+
constructor(ruleAction: ProgramRuleAction, ruleVariables: ProgramRuleVariable[]);
|
|
656
|
+
get field(): string;
|
|
657
|
+
get actionType(): string;
|
|
658
|
+
get assignedData(): string | undefined;
|
|
659
|
+
get displayedContent(): string | undefined;
|
|
660
|
+
get options(): Partial<Option$1>[] | undefined;
|
|
661
|
+
toJson(): IMetadataRuleAction;
|
|
662
|
+
}
|
|
663
|
+
interface IMetadataRule {
|
|
664
|
+
actions: IMetadataRuleAction[];
|
|
665
|
+
condition: string;
|
|
666
|
+
}
|
|
667
|
+
declare class MetadataRule implements IMetadataRule, JsonTransformer<IMetadataRule> {
|
|
668
|
+
private rule;
|
|
669
|
+
private ruleVariables;
|
|
670
|
+
constructor(rule: ProgramRule, ruleVariables: ProgramRuleVariable[]);
|
|
671
|
+
get actions(): MetadataRuleAction[];
|
|
672
|
+
get condition(): string;
|
|
673
|
+
toJson(): IMetadataRule;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
declare class FormMetadataSection implements IFormMetadataSection {
|
|
677
|
+
private params;
|
|
678
|
+
id: string;
|
|
679
|
+
name: string;
|
|
680
|
+
program?: string | undefined;
|
|
681
|
+
sectionStateComplete?: boolean | undefined;
|
|
682
|
+
description?: string | undefined;
|
|
683
|
+
translations?: any;
|
|
684
|
+
inheritedAttributes: any[];
|
|
685
|
+
constructor(params: {
|
|
686
|
+
section: Partial<IFormMetadataSection>;
|
|
687
|
+
program: Record<string, unknown>;
|
|
688
|
+
locale?: string;
|
|
689
|
+
excludeInheritedAttributes?: boolean;
|
|
690
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
691
|
+
});
|
|
692
|
+
get attributes(): {
|
|
693
|
+
sortOrder: unknown;
|
|
694
|
+
mandatory: unknown;
|
|
695
|
+
allowFutureDate: unknown;
|
|
696
|
+
trackedEntityType: unknown;
|
|
697
|
+
metaType: string;
|
|
698
|
+
}[];
|
|
699
|
+
get dataElements(): {
|
|
700
|
+
mandatory: unknown;
|
|
701
|
+
allowFutureDate: unknown;
|
|
702
|
+
stepId: unknown;
|
|
703
|
+
metaType: string;
|
|
704
|
+
}[];
|
|
705
|
+
get fieldGroups(): IFormFieldGroup[];
|
|
706
|
+
toJson(): IFormMetadataSection;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare class FormMetaData implements IFormMetadata {
|
|
710
|
+
#private;
|
|
711
|
+
private params;
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
description?: string | undefined;
|
|
715
|
+
downloadSqlView?: string | undefined;
|
|
716
|
+
constructor(params: {
|
|
717
|
+
programs: Program[];
|
|
718
|
+
locale?: string;
|
|
719
|
+
splitRegistrationSection?: boolean;
|
|
720
|
+
includeAllProgramStages?: boolean;
|
|
721
|
+
disableEnrollmentDate?: boolean;
|
|
722
|
+
excludeInheritedAttributes?: boolean;
|
|
723
|
+
programStage?: string;
|
|
724
|
+
customFormMetaData?: Partial<FormMetaData>;
|
|
725
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
726
|
+
});
|
|
727
|
+
get sections(): IFormMetadataSection[];
|
|
728
|
+
get fields(): IFormField<string>[];
|
|
729
|
+
get rules(): IMetadataRule[];
|
|
730
|
+
toJson(): IFormMetadata;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare class FormValue {
|
|
734
|
+
form: FormGroup;
|
|
735
|
+
fields: IFormField<string>[];
|
|
736
|
+
changedField?: IFormField<string>;
|
|
737
|
+
constructor(form: FormGroup, fields: IFormField<string>[], changedField?: IFormField<string>);
|
|
738
|
+
get isValid(): boolean;
|
|
739
|
+
clear(): void;
|
|
740
|
+
getValues(options?: {
|
|
741
|
+
valueOnly?: boolean;
|
|
742
|
+
}): {
|
|
743
|
+
[id: string]: {
|
|
744
|
+
id: string;
|
|
745
|
+
value: string;
|
|
746
|
+
options: any[];
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
interface EocForm {
|
|
752
|
+
id: string;
|
|
753
|
+
uuid: string;
|
|
754
|
+
name: string;
|
|
755
|
+
setMembers: EocForm[];
|
|
756
|
+
options?: DropdownOption[];
|
|
757
|
+
dataType?: string;
|
|
758
|
+
formClass: string;
|
|
759
|
+
formField?: FormField<string>;
|
|
760
|
+
formFields: FormField<string>[];
|
|
761
|
+
concept?: any;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
type CustomOrgUnitConfig = {
|
|
765
|
+
field: string;
|
|
766
|
+
orgUnit: string;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
770
|
+
#private;
|
|
771
|
+
field: i0.InputSignal<IFormField<string>>;
|
|
772
|
+
fieldConfig: i0.InputSignal<FieldConfig>;
|
|
773
|
+
form: FormGroup;
|
|
774
|
+
isCheckBoxButton: i0.InputSignal<boolean>;
|
|
775
|
+
fieldClass: i0.InputSignal<string>;
|
|
776
|
+
programRuleActions: i0.InputSignal<IMetadataRuleAction[]>;
|
|
777
|
+
dataEntities: i0.InputSignal<any>;
|
|
778
|
+
minDate: i0.InputSignal<any>;
|
|
779
|
+
maxDate: i0.InputSignal<Date>;
|
|
780
|
+
dataId: i0.InputSignal<string>;
|
|
781
|
+
customOrgUnitRoots: i0.InputSignal<CustomOrgUnitConfig[]>;
|
|
782
|
+
color: string;
|
|
783
|
+
fieldUpdate: EventEmitter<FormGroup>;
|
|
784
|
+
immediateFieldUpdate: EventEmitter<{
|
|
785
|
+
value: string;
|
|
786
|
+
}>;
|
|
787
|
+
runtimeOptionChange: EventEmitter<any>;
|
|
788
|
+
value: i0.WritableSignal<any>;
|
|
789
|
+
runtimeError: i0.WritableSignal<string>;
|
|
790
|
+
private _runtimeOptions;
|
|
791
|
+
runtimeOptions: any;
|
|
792
|
+
fieldFilterControl: FormControl;
|
|
793
|
+
protected _onDestroy: Subject<void>;
|
|
794
|
+
optionSearchTerm: string;
|
|
795
|
+
isValueAssigned: i0.WritableSignal<boolean>;
|
|
796
|
+
ruleProcessor: EffectRef;
|
|
797
|
+
constructor();
|
|
798
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
799
|
+
ngOnInit(): void;
|
|
800
|
+
ngOnDestroy(): void;
|
|
801
|
+
get isValid(): boolean;
|
|
802
|
+
get fieldError(): string | undefined;
|
|
803
|
+
get minErrorText(): string | undefined;
|
|
804
|
+
get maxErrorText(): string | undefined;
|
|
805
|
+
get isInvalid(): boolean;
|
|
806
|
+
get isDate(): boolean;
|
|
807
|
+
get isDateTime(): boolean;
|
|
808
|
+
get isBoolean(): boolean;
|
|
809
|
+
get isCheckbox(): boolean;
|
|
810
|
+
get isCommonField(): boolean;
|
|
811
|
+
get fieldId(): string;
|
|
812
|
+
onValueChange(): void;
|
|
813
|
+
onImmediateChange(event: {
|
|
814
|
+
value: string;
|
|
815
|
+
}): void;
|
|
816
|
+
onFieldUpdate(e?: any, isDate?: boolean, isDateTime?: boolean): void;
|
|
817
|
+
onUpdateRuntimeOptions(options: any[]): void;
|
|
818
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
819
|
+
static ɵcmp: i0.ɵɵ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; }; }, { "fieldUpdate": "fieldUpdate"; "immediateFieldUpdate": "immediateFieldUpdate"; "runtimeOptionChange": "runtimeOptionChange"; }, never, never, false, never>;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
823
|
+
#private;
|
|
824
|
+
formConfig: i0.InputSignal<FormConfig>;
|
|
825
|
+
fields: i0.InputSignal<IFormField<string>[]>;
|
|
826
|
+
form: i0.InputSignal<FormGroup<any>>;
|
|
827
|
+
isFormHorizontal: i0.InputSignal<boolean>;
|
|
828
|
+
showSaveButton: i0.InputSignal<boolean>;
|
|
829
|
+
fieldsData: i0.InputSignal<FieldsData>;
|
|
830
|
+
fieldClass: i0.InputSignal<string>;
|
|
831
|
+
shouldRenderAsCheckBoxesButton: i0.InputSignal<boolean>;
|
|
832
|
+
programRuleActions: i0.InputSignal<IMetadataRuleAction[]>;
|
|
833
|
+
dataEntities: i0.InputSignal<any>;
|
|
834
|
+
dataId: i0.InputSignal<string>;
|
|
835
|
+
customOrgUnitRoots: i0.InputSignal<CustomOrgUnitConfig[]>;
|
|
836
|
+
configuration: i0.Signal<FormConfig>;
|
|
837
|
+
formUpdate: EventEmitter<any>;
|
|
838
|
+
formValidityUpdate: EventEmitter<boolean>;
|
|
839
|
+
fieldComponents: FormFieldComponent[];
|
|
840
|
+
values: any;
|
|
841
|
+
get sanitizedFields(): IFormField<string>[];
|
|
842
|
+
get layoutCssClass(): string;
|
|
843
|
+
ruleProcessor: EffectRef;
|
|
844
|
+
constructor();
|
|
845
|
+
ngOnInit(): void;
|
|
846
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
847
|
+
onSubmit(): void;
|
|
848
|
+
onFieldUpdate(form: FormGroup, field: IFormField<string>): void;
|
|
849
|
+
onClear(): void;
|
|
850
|
+
isFormInValid(): boolean;
|
|
851
|
+
onRunTimeOptionUpdate(result: any): void;
|
|
852
|
+
ngOnDestroy(): void;
|
|
853
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
854
|
+
static ɵcmp: i0.ɵɵ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; }; }, { "formUpdate": "formUpdate"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
declare class RepeatableFormComponent implements OnInit {
|
|
858
|
+
#private;
|
|
859
|
+
ngZone: NgZone;
|
|
860
|
+
formObject: any;
|
|
861
|
+
formData: any;
|
|
862
|
+
fieldGroup: i0.InputSignal<IFormFieldGroup>;
|
|
863
|
+
form: FormGroup;
|
|
864
|
+
numberOfRows: number | string;
|
|
865
|
+
programRuleActions: any[];
|
|
866
|
+
events: i0.ModelSignal<unknown>;
|
|
867
|
+
program: string;
|
|
868
|
+
programStage: string;
|
|
869
|
+
repeatDependentField: string;
|
|
870
|
+
dataEntities: i0.InputSignal<Record<string, unknown>>;
|
|
871
|
+
repeatableEvents: any[];
|
|
872
|
+
repeatableData: {
|
|
873
|
+
[index: number]: FormValue;
|
|
874
|
+
};
|
|
875
|
+
repeatableStageUpdate: EventEmitter<any>;
|
|
876
|
+
repeatableFormEntities: {
|
|
877
|
+
[event: string]: FormGroup;
|
|
878
|
+
};
|
|
879
|
+
eventForm: FormGroup;
|
|
880
|
+
eventFormValue: i0.WritableSignal<FormValue>;
|
|
881
|
+
showForm: i0.WritableSignal<boolean>;
|
|
882
|
+
eventIndex: i0.WritableSignal<number>;
|
|
883
|
+
constructor();
|
|
884
|
+
get isValid(): boolean;
|
|
885
|
+
ngOnInit(): void;
|
|
886
|
+
onFormUpdate(formValue: FormValue): void;
|
|
887
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatableFormComponent, never>;
|
|
888
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
declare class SectionFormComponent implements OnInit {
|
|
892
|
+
#private;
|
|
893
|
+
ngZone: NgZone;
|
|
894
|
+
loading: i0.InputSignal<boolean>;
|
|
895
|
+
isloading: boolean;
|
|
896
|
+
formMetaData: i0.InputSignal<IFormMetadata>;
|
|
897
|
+
dataValueEntities: i0.InputSignal<Record<string, unknown>>;
|
|
898
|
+
formGroups: Record<string, FormGroup>;
|
|
899
|
+
formValueEntity: Record<string, FormValue>;
|
|
900
|
+
repeatableFormValueEntity: Record<string, Record<number, FormValue>>;
|
|
901
|
+
ruleActions: i0.WritableSignal<any[]>;
|
|
902
|
+
save: EventEmitter<Record<string, unknown>>;
|
|
903
|
+
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
904
|
+
cancel: EventEmitter<any>;
|
|
905
|
+
formValidityUpdate: EventEmitter<boolean>;
|
|
906
|
+
inValid: i0.WritableSignal<boolean>;
|
|
907
|
+
inValid$: Observable<boolean>;
|
|
908
|
+
constructor();
|
|
909
|
+
ngOnInit(): void;
|
|
910
|
+
onUpdateRepeatableStage(repeatableData: Record<number, FormValue>, fieldGroup: IFormFieldGroup): void;
|
|
911
|
+
onFormUpdate(formValue: FormValue, fieldGroupId: string): void;
|
|
912
|
+
onSubmit(): void;
|
|
913
|
+
onCancel(event?: MouseEvent): void;
|
|
914
|
+
checkIfInValid(): boolean;
|
|
915
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionFormComponent, never>;
|
|
916
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
declare class BaseFormWrapperComponent implements OnDestroy {
|
|
920
|
+
#private;
|
|
921
|
+
ngZone: NgZone;
|
|
922
|
+
name: i0.InputSignal<string>;
|
|
923
|
+
fields: i0.InputSignal<IFormField<string>[]>;
|
|
924
|
+
rules: i0.InputSignal<IMetadataRule[]>;
|
|
925
|
+
dataValues: i0.InputSignal<Record<string, unknown>>;
|
|
926
|
+
dataId: i0.InputSignal<string>;
|
|
927
|
+
customOrgUnitRoots: i0.InputSignal<CustomOrgUnitConfig[]>;
|
|
928
|
+
ruleActions: i0.WritableSignal<IMetadataRuleAction[]>;
|
|
929
|
+
isFormValid: i0.WritableSignal<boolean>;
|
|
930
|
+
formSave: EventEmitter<Record<string, unknown>>;
|
|
931
|
+
formUpdate: EventEmitter<Record<string, unknown>>;
|
|
932
|
+
formCancel: EventEmitter<void>;
|
|
933
|
+
formValidityUpdate: EventEmitter<boolean>;
|
|
934
|
+
ruleProcessor: EffectRef;
|
|
935
|
+
constructor();
|
|
936
|
+
updateDataValues(dataValues: Record<string, unknown>): void;
|
|
937
|
+
updateFormValidity(isFormValid: boolean): void;
|
|
938
|
+
protected executeRules(): void;
|
|
939
|
+
ngOnDestroy(): void;
|
|
940
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormWrapperComponent, never>;
|
|
941
|
+
static ɵdir: i0.ɵɵ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; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare class FlatFormComponent extends BaseFormWrapperComponent implements OnInit {
|
|
945
|
+
formGroup: FormGroup;
|
|
946
|
+
ngOnInit(): void;
|
|
947
|
+
onFormUpdate(): void;
|
|
948
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlatFormComponent, never>;
|
|
949
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlatFormComponent, "ng-dhis2-ui-flat-form", never, {}, {}, never, never, false, never>;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
953
|
+
#private;
|
|
954
|
+
ngZone: NgZone;
|
|
955
|
+
fieldType: string;
|
|
956
|
+
field: i0.InputSignal<IFormField<string>>;
|
|
957
|
+
fieldError: i0.InputSignal<string>;
|
|
958
|
+
fieldConfig: i0.InputSignal<FieldConfig>;
|
|
959
|
+
form: i0.ModelSignal<FormGroup<any>>;
|
|
960
|
+
isValid: i0.InputSignal<boolean>;
|
|
961
|
+
isValueAssigned: i0.InputSignal<boolean>;
|
|
962
|
+
dataId: i0.InputSignal<string>;
|
|
963
|
+
customOrgUnitRoots: i0.InputSignal<CustomOrgUnitConfig[]>;
|
|
964
|
+
value: i0.ModelSignal<string>;
|
|
965
|
+
protected value$: rxjs.Observable<string>;
|
|
966
|
+
protected isValueAssigned$: rxjs.Observable<boolean>;
|
|
967
|
+
protected fieldError$: rxjs.Observable<string>;
|
|
968
|
+
label: Signal<string | undefined>;
|
|
969
|
+
placeholder: Signal<string>;
|
|
970
|
+
InputField: () => React.JSX.Element;
|
|
971
|
+
update: EventEmitter<{
|
|
972
|
+
form: FormGroup;
|
|
973
|
+
value: any;
|
|
974
|
+
}>;
|
|
975
|
+
immediateUpdate: EventEmitter<{
|
|
976
|
+
form: FormGroup;
|
|
977
|
+
value: any;
|
|
978
|
+
}>;
|
|
979
|
+
ngAfterViewInit(): Promise<void>;
|
|
980
|
+
onChange(event: any): void;
|
|
981
|
+
searchForDuplicates(value: string): Promise<boolean>;
|
|
982
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormFieldComponent, never>;
|
|
983
|
+
static ɵdir: i0.ɵɵ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; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
declare class FormFieldItemComponent extends BaseFormFieldComponent {
|
|
987
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldItemComponent, never>;
|
|
988
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldItemComponent, "ng-dhis2-ui-form-field-item", never, {}, {}, never, ["*"], false, never>;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
declare class D2FormModule {
|
|
992
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<D2FormModule, never>;
|
|
993
|
+
static ɵmod: i0.ɵɵ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]>;
|
|
994
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<D2FormModule>;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
declare class FieldUtil {
|
|
998
|
+
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
999
|
+
static sanitizeOptions(options: any[]): any;
|
|
1000
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "org-unit" | "file";
|
|
1001
|
+
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1002
|
+
static getOptionEntities?(options: any[]): any;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
declare class FieldControlTypeUtil {
|
|
1006
|
+
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
declare class FormFieldTypeUtil {
|
|
1010
|
+
static getFieldType(valueType: string): "number" | "text" | "image" | "org-unit" | "file";
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
declare class FormUtil {
|
|
1014
|
+
static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
|
|
1015
|
+
static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
|
|
1016
|
+
static getFormFields(fields: any[]): FormField<string>[];
|
|
1017
|
+
static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
declare class FormValueUtil {
|
|
1021
|
+
static getFormDataEntities(formValueEntities: Record<string, FormValue>): {};
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
declare class TranslationUtil {
|
|
1025
|
+
static getTranslatedFormName(field: Record<string, unknown>, locale?: string): string;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
interface SelectionFiltersProps {
|
|
1029
|
+
actionOptions: ActionOption[];
|
|
1030
|
+
programAttributesFilters: ProgramAttributesFilter[];
|
|
1031
|
+
programStageDataElementFilters: ProgramStageDataElementFilter[];
|
|
1032
|
+
startDate: string;
|
|
1033
|
+
endDate: string;
|
|
1034
|
+
program: string;
|
|
1035
|
+
organisationUnit: string;
|
|
1036
|
+
}
|
|
1037
|
+
interface ActionOption {
|
|
1038
|
+
label: string;
|
|
1039
|
+
onClick: () => void;
|
|
1040
|
+
}
|
|
1041
|
+
interface Option {
|
|
1042
|
+
id: string;
|
|
1043
|
+
code: string;
|
|
1044
|
+
name: string;
|
|
1045
|
+
}
|
|
1046
|
+
interface ProgramAttributesFilter {
|
|
1047
|
+
attribute: string;
|
|
1048
|
+
program: string;
|
|
1049
|
+
operator: string;
|
|
1050
|
+
valueType?: string;
|
|
1051
|
+
name: string;
|
|
1052
|
+
hasOptions: boolean;
|
|
1053
|
+
shortName: string;
|
|
1054
|
+
formName: string;
|
|
1055
|
+
code: string;
|
|
1056
|
+
value: string;
|
|
1057
|
+
options: Option[];
|
|
1058
|
+
}
|
|
1059
|
+
interface ProgramStageDataElementFilter {
|
|
1060
|
+
programStage: string;
|
|
1061
|
+
program: string;
|
|
1062
|
+
dataElement: string;
|
|
1063
|
+
hasOptions: boolean;
|
|
1064
|
+
valueType?: string;
|
|
1065
|
+
name: string;
|
|
1066
|
+
operator: string;
|
|
1067
|
+
shortName: string;
|
|
1068
|
+
formName: string;
|
|
1069
|
+
value: string;
|
|
1070
|
+
options: Option[];
|
|
1071
|
+
}
|
|
1072
|
+
interface TableRow {
|
|
1073
|
+
[key: string]: string | number;
|
|
1074
|
+
index: number;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
declare class SelectionFiltersComponent extends ReactWrapperModule implements AfterViewInit {
|
|
1078
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1079
|
+
actionOptions: {
|
|
1080
|
+
label: string;
|
|
1081
|
+
onClick: (row: TableRow) => void;
|
|
1082
|
+
}[];
|
|
1083
|
+
programAttributesFilters: ProgramAttributesFilter[];
|
|
1084
|
+
programStageDataElementFilters: ProgramStageDataElementFilter[];
|
|
1085
|
+
startDate?: string;
|
|
1086
|
+
endDate?: string;
|
|
1087
|
+
program?: string;
|
|
1088
|
+
organisationUnit?: string;
|
|
1089
|
+
actionSelected: EventEmitter<SelectionFiltersProps>;
|
|
1090
|
+
ngZone: NgZone;
|
|
1091
|
+
private getAppConfig;
|
|
1092
|
+
getRootOrgUnits(): Promise<string[]>;
|
|
1093
|
+
getOrgUnitGroups(): Promise<any>;
|
|
1094
|
+
getOrgUnitLevels(): Promise<any>;
|
|
1095
|
+
onSelectOrgUnit(selectedOrgUnits: Record<string, string>[]): void;
|
|
1096
|
+
getOrgUnitAttributeByUsage(usageType: string): "organisationUnits" | "dataViewOrganisationUnits";
|
|
1097
|
+
FieldOrgUnitSelector: (props: {
|
|
1098
|
+
onSelectOrgUnit: (selectedOrgUnits: any) => void;
|
|
1099
|
+
onCancelOrgUnit: () => void;
|
|
1100
|
+
}) => React.FunctionComponentElement<{
|
|
1101
|
+
config: _dhis2_app_service_config.Config;
|
|
1102
|
+
children: React.ReactNode;
|
|
1103
|
+
offlineInterface?: any;
|
|
1104
|
+
plugin: boolean;
|
|
1105
|
+
parentAlertsAdd: any;
|
|
1106
|
+
showAlertsInPlugin: boolean;
|
|
1107
|
+
}> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
|
|
1108
|
+
showOrgUnitTree: i0.WritableSignal<boolean>;
|
|
1109
|
+
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
1110
|
+
selectedOrgUnit: i0.WritableSignal<any>;
|
|
1111
|
+
selectedOrgUnit$: rxjs.Observable<any>;
|
|
1112
|
+
SelectionFiltersUI: () => React.DetailedReactHTMLElement<{
|
|
1113
|
+
style: {
|
|
1114
|
+
fontFamily: "Arial, sans-serif";
|
|
1115
|
+
padding: string;
|
|
1116
|
+
backgroundColor: "#f9f9f9";
|
|
1117
|
+
borderRadius: string;
|
|
1118
|
+
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)";
|
|
1119
|
+
};
|
|
1120
|
+
}, HTMLElement>;
|
|
1121
|
+
ngAfterViewInit(): Promise<void>;
|
|
1122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersComponent, never>;
|
|
1123
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
declare class SelectionFiltersUiModule {
|
|
1127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionFiltersUiModule, never>;
|
|
1128
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionFiltersUiModule, [typeof SelectionFiltersComponent], [typeof i2.CommonModule, typeof SharedDhis2UiModule, typeof ReactWrapperModule, typeof OrganisationUnitSelectorModule], [typeof SelectionFiltersComponent]>;
|
|
1129
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectionFiltersUiModule>;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
declare class TrackerFormComponent implements OnInit {
|
|
1133
|
+
program: i0.InputSignal<string>;
|
|
1134
|
+
programStage: i0.InputSignal<string>;
|
|
1135
|
+
trackedEntity: i0.InputSignal<string>;
|
|
1136
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1137
|
+
trackerQuery: BaseTrackerQuery<TrackedEntityInstance>;
|
|
1138
|
+
formMetaData: IFormMetadata;
|
|
1139
|
+
instance: TrackedEntityInstance;
|
|
1140
|
+
ngOnInit(): Promise<void>;
|
|
1141
|
+
onFormUpdate(values: any): void;
|
|
1142
|
+
onSave(event: any): void;
|
|
1143
|
+
onCancel(): void;
|
|
1144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormComponent, never>;
|
|
1145
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
declare class TrackerFormModule {
|
|
1149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackerFormModule, never>;
|
|
1150
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TrackerFormModule, [typeof TrackerFormComponent], [typeof i2.CommonModule, typeof D2FormModule], [typeof TrackerFormComponent]>;
|
|
1151
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TrackerFormModule>;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
declare class EventFormComponent implements OnInit {
|
|
1155
|
+
program: i0.InputSignal<string>;
|
|
1156
|
+
programStage: i0.InputSignal<string>;
|
|
1157
|
+
eventId: i0.InputSignal<string>;
|
|
1158
|
+
enrollment: i0.InputSignal<string>;
|
|
1159
|
+
trackedEntity: i0.InputSignal<string>;
|
|
1160
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1161
|
+
eventQuery: BaseEventQuery<DHIS2Event>;
|
|
1162
|
+
formMetaData: IFormMetadata;
|
|
1163
|
+
instance: DHIS2Event;
|
|
1164
|
+
ngOnInit(): Promise<void>;
|
|
1165
|
+
onFormUpdate(values: any): void;
|
|
1166
|
+
onSave(event: any): void;
|
|
1167
|
+
onCancel(): void;
|
|
1168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventFormComponent, never>;
|
|
1169
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
declare class EventFormModule {
|
|
1173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventFormModule, never>;
|
|
1174
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EventFormModule, [typeof EventFormComponent], [typeof i2.CommonModule, typeof D2FormModule], [typeof EventFormComponent]>;
|
|
1175
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EventFormModule>;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
type AutoAssignedValues = {
|
|
1179
|
+
field: string;
|
|
1180
|
+
value: string;
|
|
1181
|
+
};
|
|
1182
|
+
interface IProgramEntryFormConfig {
|
|
1183
|
+
program: string;
|
|
1184
|
+
programStage?: string;
|
|
1185
|
+
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1186
|
+
formType: 'TRACKER' | 'EVENT';
|
|
1187
|
+
hideRegistrationUnit?: boolean;
|
|
1188
|
+
hideEnrollmentDate?: boolean;
|
|
1189
|
+
hideTrackedEntityTypeAttributes?: boolean;
|
|
1190
|
+
disableRegistrationUnit?: boolean;
|
|
1191
|
+
disableEnrollmentDate?: boolean;
|
|
1192
|
+
disabledIncidentDate?: boolean;
|
|
1193
|
+
excludeProgramStages?: boolean;
|
|
1194
|
+
excludeInheritedAttributes?: boolean;
|
|
1195
|
+
includedProgramStages?: string[];
|
|
1196
|
+
submitButtonLabel?: string;
|
|
1197
|
+
cancelButtonLabel?: string;
|
|
1198
|
+
hideActionButtons?: boolean;
|
|
1199
|
+
hideSubmitButton?: boolean;
|
|
1200
|
+
hideCancelButton?: boolean;
|
|
1201
|
+
ignoreRepeatability?: boolean;
|
|
1202
|
+
autoAssignedValues?: AutoAssignedValues[];
|
|
1203
|
+
hideCustomAssignedFields?: boolean;
|
|
1204
|
+
autoComplete?: boolean;
|
|
1205
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
1206
|
+
updateTeiOrgUnit?: boolean;
|
|
1207
|
+
}
|
|
1208
|
+
declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
1209
|
+
program: string;
|
|
1210
|
+
programStage?: string;
|
|
1211
|
+
displayType: 'FLAT' | 'SECTION' | 'CUSTOM';
|
|
1212
|
+
formType: 'TRACKER' | 'EVENT';
|
|
1213
|
+
hideRegistrationUnit?: boolean;
|
|
1214
|
+
hideEnrollmentDate?: boolean;
|
|
1215
|
+
hideTrackedEntityTypeAttributes?: boolean;
|
|
1216
|
+
disableRegistrationUnit?: boolean;
|
|
1217
|
+
disableEnrollmentDate?: boolean;
|
|
1218
|
+
disabledIncidentDate?: boolean;
|
|
1219
|
+
excludeProgramStages?: boolean;
|
|
1220
|
+
excludeInheritedAttributes?: boolean;
|
|
1221
|
+
includedProgramStages?: string[];
|
|
1222
|
+
submitButtonLabel: string;
|
|
1223
|
+
cancelButtonLabel: string;
|
|
1224
|
+
hideActionButtons?: boolean;
|
|
1225
|
+
hideSubmitButton?: boolean;
|
|
1226
|
+
hideCancelButton?: boolean;
|
|
1227
|
+
ignoreRepeatability?: boolean;
|
|
1228
|
+
autoAssignedValues?: AutoAssignedValues[];
|
|
1229
|
+
hideCustomAssignedFields?: boolean;
|
|
1230
|
+
autoComplete?: boolean;
|
|
1231
|
+
formFieldExtensions?: FormFieldExtension[];
|
|
1232
|
+
updateTeiOrgUnit: boolean;
|
|
1233
|
+
constructor(config: IProgramEntryFormConfig);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
interface IProgramEntryFormSection {
|
|
1237
|
+
id: string;
|
|
1238
|
+
name: string;
|
|
1239
|
+
description?: string;
|
|
1240
|
+
formFields: IFormField<string>[];
|
|
1241
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1242
|
+
}
|
|
1243
|
+
declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
1244
|
+
id: string;
|
|
1245
|
+
name: string;
|
|
1246
|
+
description?: string;
|
|
1247
|
+
formFields: IFormField<string>[];
|
|
1248
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1249
|
+
constructor(props: IProgramEntryFormSection);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
interface IProgramEntryFormMetaData {
|
|
1253
|
+
id: string;
|
|
1254
|
+
name: string;
|
|
1255
|
+
description?: string;
|
|
1256
|
+
program: Program;
|
|
1257
|
+
formFields: IFormField<string>[];
|
|
1258
|
+
sections: IProgramEntryFormSection[];
|
|
1259
|
+
rules: IMetadataRule[];
|
|
1260
|
+
}
|
|
1261
|
+
declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
|
|
1262
|
+
#private;
|
|
1263
|
+
id: string;
|
|
1264
|
+
name: string;
|
|
1265
|
+
description?: string;
|
|
1266
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1267
|
+
config: ProgramEntryFormConfig;
|
|
1268
|
+
program: Program;
|
|
1269
|
+
setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
|
|
1270
|
+
getProgramPromise(): Promise<_iapps_d2_web_sdk.D2Response<Program>>;
|
|
1271
|
+
get formFields(): IFormField<string>[];
|
|
1272
|
+
get sections(): IProgramEntryFormSection[];
|
|
1273
|
+
get rules(): IMetadataRule[];
|
|
1274
|
+
toJson(): IProgramEntryFormMetaData;
|
|
1275
|
+
get(): Promise<IProgramEntryFormMetaData>;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
declare class ProgramEntryFormModule {
|
|
1279
|
+
#private;
|
|
1280
|
+
config: i0.InputSignal<ProgramEntryFormConfig>;
|
|
1281
|
+
trackedEntity: i0.InputSignal<string>;
|
|
1282
|
+
event: i0.InputSignal<string>;
|
|
1283
|
+
enrollment: i0.InputSignal<string>;
|
|
1284
|
+
orgUnit: i0.InputSignal<string>;
|
|
1285
|
+
customOrgUnitRoots: i0.InputSignal<CustomOrgUnitConfig[]>;
|
|
1286
|
+
ngZone: NgZone;
|
|
1287
|
+
d2: _iapps_d2_web_sdk.D2Web;
|
|
1288
|
+
loading: i0.WritableSignal<boolean>;
|
|
1289
|
+
metaData: i0.WritableSignal<IProgramEntryFormMetaData>;
|
|
1290
|
+
isFormValid: i0.WritableSignal<boolean>;
|
|
1291
|
+
isFormValid$: Observable<boolean>;
|
|
1292
|
+
instance: i0.WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
1293
|
+
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1294
|
+
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1295
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1296
|
+
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1297
|
+
formValidityUpdate: EventEmitter<boolean>;
|
|
1298
|
+
formCancel: EventEmitter<any>;
|
|
1299
|
+
FormLoader: () => React.JSX.Element;
|
|
1300
|
+
dataId: i0.Signal<any>;
|
|
1301
|
+
FormActionButtons: i0.Signal<React.JSX.Element | (() => React.JSX.Element)>;
|
|
1302
|
+
ngOnInit(): Promise<void>;
|
|
1303
|
+
onFormUpdate(dataValues: Record<string, unknown>): void;
|
|
1304
|
+
onValidityUpdate(isFormValid: boolean): void;
|
|
1305
|
+
onCancel(): void;
|
|
1306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramEntryFormModule, never>;
|
|
1307
|
+
static ɵcmp: i0.ɵɵ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; }; }, { "instanceSave": "instanceSave"; "instanceSaveCompleted": "instanceSaveCompleted"; "instanceUpdate": "instanceUpdate"; "formValidityUpdate": "formValidityUpdate"; "formCancel": "formCancel"; }, never, never, true, never>;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
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, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1311
|
+
export type { ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, ColumnDefinition, 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, OrganisationUnitSelectionUsageType, TableRow$1 as TableRow };
|