@iapps/ng-dhis2-ui 1.2.157 → 1.2.159
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/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import React, { ComponentProps } from 'react';
|
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
|
|
7
|
-
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, LineListRowActionFilterConfig, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery,
|
|
7
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, LineListRowActionFilterConfig, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2TrackerResponse, D2EventResponse } from '@iapps/d2-web-sdk';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
9
|
import { Observable, Subject } from 'rxjs';
|
|
10
10
|
import * as i8 from '@angular/forms';
|
|
11
11
|
import { FormGroup, FormControl, UntypedFormGroup } from '@angular/forms';
|
|
12
|
-
import * as _dhis2_app_service_config from '@dhis2/app-service-config';
|
|
13
12
|
import * as _dhis2_ui_loader from '@dhis2-ui/loader';
|
|
13
|
+
import * as _dhis2_app_service_config from '@dhis2/app-service-config';
|
|
14
14
|
|
|
15
15
|
declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
|
|
16
16
|
protected elementRef: ElementRef<HTMLElement>;
|
|
@@ -1418,7 +1418,7 @@ declare class D2FormModule {
|
|
|
1418
1418
|
declare class FieldUtil {
|
|
1419
1419
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1420
1420
|
static sanitizeOptions(options: any[]): any;
|
|
1421
|
-
static getFieldType(valueType: string): "
|
|
1421
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
|
|
1422
1422
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1423
1423
|
static getOptionEntities?(options: any[]): any;
|
|
1424
1424
|
}
|
|
@@ -1526,14 +1526,14 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1526
1526
|
FieldOrgUnitSelector: (props: {
|
|
1527
1527
|
onSelectOrgUnit: (selectedOrgUnits: any) => void;
|
|
1528
1528
|
onCancelOrgUnit: () => void;
|
|
1529
|
-
}) => React.FunctionComponentElement<
|
|
1529
|
+
}) => React.FunctionComponentElement<{
|
|
1530
1530
|
config: _dhis2_app_service_config.Config;
|
|
1531
1531
|
children: React.ReactNode;
|
|
1532
1532
|
offlineInterface?: any;
|
|
1533
1533
|
plugin: boolean;
|
|
1534
1534
|
parentAlertsAdd: any;
|
|
1535
1535
|
showAlertsInPlugin: boolean;
|
|
1536
|
-
}>;
|
|
1536
|
+
}> | React.FunctionComponentElement<_dhis2_ui_loader.CircularLoaderProps>;
|
|
1537
1537
|
showOrgUnitTree: _angular_core.WritableSignal<boolean>;
|
|
1538
1538
|
orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
|
|
1539
1539
|
selectedOrgUnitSignal: _angular_core.WritableSignal<any>;
|
|
@@ -1611,6 +1611,7 @@ declare class ProgramEntryFormModule {
|
|
|
1611
1611
|
event: _angular_core.InputSignal<string>;
|
|
1612
1612
|
enrollment: _angular_core.InputSignal<string>;
|
|
1613
1613
|
orgUnit: _angular_core.InputSignal<string>;
|
|
1614
|
+
codeGeneratorOrgUnit: _angular_core.InputSignal<string>;
|
|
1614
1615
|
customOrgUnitRoots: _angular_core.InputSignal<CustomOrgUnitConfig[]>;
|
|
1615
1616
|
formMetaData: _angular_core.InputSignal<IFormMetadata>;
|
|
1616
1617
|
collapsibleSections: _angular_core.InputSignal<boolean>;
|
|
@@ -1626,7 +1627,7 @@ declare class ProgramEntryFormModule {
|
|
|
1626
1627
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1627
1628
|
}) => void>;
|
|
1628
1629
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1629
|
-
instanceSaveCompleted: EventEmitter<
|
|
1630
|
+
instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
|
|
1630
1631
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1631
1632
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1632
1633
|
formCancel: EventEmitter<any>;
|
|
@@ -1638,7 +1639,7 @@ declare class ProgramEntryFormModule {
|
|
|
1638
1639
|
onValidityUpdate(isFormValid: boolean): void;
|
|
1639
1640
|
onCancel(): void;
|
|
1640
1641
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgramEntryFormModule, never>;
|
|
1641
|
-
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>;
|
|
1642
|
+
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; }; "codeGeneratorOrgUnit": { "alias": "codeGeneratorOrgUnit"; "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>;
|
|
1642
1643
|
}
|
|
1643
1644
|
|
|
1644
1645
|
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CascadeKind, CheckBox, D2FormModule, DEFAULT_KEYWORD_TO_LEVEL, DEFAULT_OPTIONS_PATH_CASCADE, 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, OptionPathField, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, ParentMatchMode, ParentValueType, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|