@iapps/ng-dhis2-ui 1.2.104 → 1.2.111
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 +280 -86
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/index.d.ts +31 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import React, { ComponentProps } from 'react';
|
|
|
5
5
|
import * as ReactDOM from 'react-dom/client';
|
|
6
6
|
import * as i2 from '@angular/common';
|
|
7
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,
|
|
8
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRuleAction, ProgramRuleVariable, ProgramRule, Program, BaseTrackerQuery, BaseEventQuery, D2TrackerResponse, D2EventResponse } from '@iapps/d2-web-sdk';
|
|
9
9
|
import * as rxjs from 'rxjs';
|
|
10
10
|
import { Observable, Subject } from 'rxjs';
|
|
11
11
|
import * as i8 from '@angular/forms';
|
|
@@ -263,7 +263,7 @@ declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
263
263
|
action: string;
|
|
264
264
|
data: TrackedEntityInstance | DHIS2Event;
|
|
265
265
|
}>;
|
|
266
|
-
rowsSelected: EventEmitter<
|
|
266
|
+
rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
|
|
267
267
|
showActionButtons: boolean;
|
|
268
268
|
showEnrollmentDates: boolean;
|
|
269
269
|
showDownloadButton: boolean;
|
|
@@ -284,7 +284,7 @@ declare class LineListModule {
|
|
|
284
284
|
static ɵinj: i0.ɵɵInjectorDeclaration<LineListModule>;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
interface TableRow
|
|
287
|
+
interface TableRow {
|
|
288
288
|
[key: string]: string | number;
|
|
289
289
|
index: number;
|
|
290
290
|
}
|
|
@@ -305,12 +305,12 @@ interface DropdownMenuOption {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
declare class DataTableUIComponent extends ReactWrapperModule implements AfterViewInit, OnChanges {
|
|
308
|
-
data: TableRow
|
|
308
|
+
data: TableRow[];
|
|
309
309
|
columnDefinitions: ColumnDefinition[];
|
|
310
310
|
actionOptions?: DropdownMenuOption[];
|
|
311
311
|
actionSelected: EventEmitter<{
|
|
312
312
|
action: string;
|
|
313
|
-
row: TableRow
|
|
313
|
+
row: TableRow;
|
|
314
314
|
}>;
|
|
315
315
|
DataTableUI: () => React.DetailedReactHTMLElement<null, HTMLElement>;
|
|
316
316
|
ngAfterViewInit(): Promise<void>;
|
|
@@ -761,10 +761,21 @@ interface EocForm {
|
|
|
761
761
|
concept?: any;
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
|
|
764
|
+
declare enum OrgUnitLevel {
|
|
765
|
+
FACILITY = "FACILITY",
|
|
766
|
+
HAMLET = "HAMLET",
|
|
767
|
+
STREET = "STREET",
|
|
768
|
+
WARD = "WARD",
|
|
769
|
+
COUNCIL = "COUNCIL",
|
|
770
|
+
REGION = "REGION",
|
|
771
|
+
NATIONAL = "NATIONAL"
|
|
772
|
+
}
|
|
773
|
+
interface CustomOrgUnitConfig {
|
|
765
774
|
field: string;
|
|
766
775
|
orgUnit: string;
|
|
767
|
-
|
|
776
|
+
level: OrgUnitLevel;
|
|
777
|
+
confidence: number;
|
|
778
|
+
}
|
|
768
779
|
|
|
769
780
|
declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
770
781
|
#private;
|
|
@@ -997,7 +1008,7 @@ declare class D2FormModule {
|
|
|
997
1008
|
declare class FieldUtil {
|
|
998
1009
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
999
1010
|
static sanitizeOptions(options: any[]): any;
|
|
1000
|
-
static getFieldType(valueType: string): "
|
|
1011
|
+
static getFieldType(valueType: string): "date" | "org-unit" | "file" | "email" | "tel" | "text" | "number";
|
|
1001
1012
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1002
1013
|
static getOptionEntities?(options: any[]): any;
|
|
1003
1014
|
}
|
|
@@ -1007,7 +1018,7 @@ declare class FieldControlTypeUtil {
|
|
|
1007
1018
|
}
|
|
1008
1019
|
|
|
1009
1020
|
declare class FormFieldTypeUtil {
|
|
1010
|
-
static getFieldType(valueType: string): "
|
|
1021
|
+
static getFieldType(valueType: string): "image" | "org-unit" | "file" | "text" | "number";
|
|
1011
1022
|
}
|
|
1012
1023
|
|
|
1013
1024
|
declare class FormUtil {
|
|
@@ -1069,16 +1080,22 @@ interface ProgramStageDataElementFilter {
|
|
|
1069
1080
|
value: string;
|
|
1070
1081
|
options: Option[];
|
|
1071
1082
|
}
|
|
1072
|
-
interface
|
|
1083
|
+
interface SelectionFilterTableRow {
|
|
1073
1084
|
[key: string]: string | number;
|
|
1074
1085
|
index: number;
|
|
1075
1086
|
}
|
|
1087
|
+
interface SelectionFilterColumnDefinition {
|
|
1088
|
+
column: string;
|
|
1089
|
+
display: string;
|
|
1090
|
+
index?: string;
|
|
1091
|
+
visible?: boolean;
|
|
1092
|
+
}
|
|
1076
1093
|
|
|
1077
1094
|
declare class SelectionFiltersComponent extends ReactWrapperModule implements AfterViewInit {
|
|
1078
1095
|
d2: _iapps_d2_web_sdk.D2Web;
|
|
1079
1096
|
actionOptions: {
|
|
1080
1097
|
label: string;
|
|
1081
|
-
onClick: (row:
|
|
1098
|
+
onClick: (row: SelectionFilterTableRow) => void;
|
|
1082
1099
|
}[];
|
|
1083
1100
|
programAttributesFilters: ProgramAttributesFilter[];
|
|
1084
1101
|
programStageDataElementFilters: ProgramStageDataElementFilter[];
|
|
@@ -1292,7 +1309,7 @@ declare class ProgramEntryFormModule {
|
|
|
1292
1309
|
instance: i0.WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
1293
1310
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1294
1311
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1295
|
-
instanceSaveCompleted: EventEmitter<
|
|
1312
|
+
instanceSaveCompleted: EventEmitter<D2TrackerResponse<TrackedEntityInstance> | D2EventResponse<DHIS2Event>>;
|
|
1296
1313
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1297
1314
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1298
1315
|
formCancel: EventEmitter<any>;
|
|
@@ -1307,5 +1324,5 @@ declare class ProgramEntryFormModule {
|
|
|
1307
1324
|
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
1325
|
}
|
|
1309
1326
|
|
|
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,
|
|
1327
|
+
export { Boolean, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonModule, CheckBox, D2FormModule, DataTableUIComponent, DataTableUIModule, DateField, DateRangeValue, Dropdown, EventFormComponent, EventFormModule, FieldConfig, FieldControlTypeUtil, FieldDropdown, FieldType, FieldUtil, FlatFormComponent, FormComponent, FormConfig, FormField, FormFieldComponent, FormFieldGroup, FormFieldTypeUtil, FormMetaData, FormMetadataSection, FormUtil, FormValue, FormValueUtil, HeaderBarComponent, HeaderBarModule, LineListModule, LineListTableComponent, MetadataRule, MetadataRuleAction, OrgUnitLevel, OrganisationUnitSelectionConfig, OrganisationUnitSelectorComponent, OrganisationUnitSelectorModalComponent, OrganisationUnitSelectorModule, PeriodSelectorComponent, PeriodSelectorModalComponent, PeriodSelectorModule, ProgramEntryFormConfig, ProgramEntryFormMetaData, ProgramEntryFormModule, ProgramEntryFormSection, ReactWrapperModule, RepeatableFormComponent, SectionFormComponent, SelectionFiltersComponent, SelectionFiltersUiModule, TrackerFormComponent, TrackerFormModule, TranslationUtil };
|
|
1328
|
+
export type { ActionOption, ActionOptionOrientation, AddtionalAttributeFilter, AutoAssignedValues, BreadcrumbItem, ColumnDefinition, CustomOrgUnitConfig, DropdownMenuOption$1 as DropdownMenuOption, DropdownOption, EocForm, FieldControlType, FieldData, FieldsData, FormConfiguration, FormDirection, FormFieldExtension, FormFieldMetaType, FormGroupField, FormSection, IFieldDropdown, IFormField, IFormFieldGroup, IFormMetadata, IFormMetadataSection, IMetadataRule, IMetadataRuleAction, IProgramEntryFormConfig, IProgramEntryFormMetaData, IProgramEntryFormSection, LineListActionOption, Option, OrganisationUnitSelectionUsageType, ProgramAttributesFilter, ProgramStageDataElementFilter, SelectionFilterColumnDefinition, SelectionFilterTableRow, SelectionFiltersProps, TableRow };
|