@iapps/ng-dhis2-ui 1.2.158 → 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,7 +4,7 @@ import React, { ComponentProps } from 'react';
|
|
|
4
4
|
import * as ReactDOM from 'react-dom/client';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import * as _iapps_d2_web_sdk from '@iapps/d2-web-sdk';
|
|
7
|
-
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, 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';
|
|
@@ -259,7 +259,7 @@ declare class LineListTableComponent extends ReactWrapperModule implements OnCha
|
|
|
259
259
|
action: string;
|
|
260
260
|
data: TrackedEntityInstance | DHIS2Event;
|
|
261
261
|
}>;
|
|
262
|
-
rowsSelected: EventEmitter<
|
|
262
|
+
rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
|
|
263
263
|
showActionButtons: boolean;
|
|
264
264
|
showEnrollmentDates: boolean;
|
|
265
265
|
showDownloadButton: boolean;
|
|
@@ -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
|
}
|
|
@@ -1428,7 +1428,7 @@ declare class FieldControlTypeUtil {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
|
|
1430
1430
|
declare class FormFieldTypeUtil {
|
|
1431
|
-
static getFieldType(valueType: string): "
|
|
1431
|
+
static getFieldType(valueType: string): "number" | "text" | "tel" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
declare class FormUtil {
|
|
@@ -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 };
|