@iapps/ng-dhis2-ui 1.1.70 → 1.1.72
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 +124 -33
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/form/utils/field.util.d.ts +1 -1
- package/lib/modules/line-list/models/line-list.models.d.ts +3 -6
- package/lib/modules/line-list/services/line-list.service.d.ts +2 -1
- package/lib/modules/line-list/utils/filter-builder.d.ts +1 -0
- package/lib/modules/line-list/utils/line-list-utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { DropdownOption } from '../models';
|
|
|
3
3
|
export declare class FieldUtil {
|
|
4
4
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
5
5
|
static sanitizeOptions(options: any[]): any;
|
|
6
|
-
static getFieldType(valueType: string): "text" | "
|
|
6
|
+
static getFieldType(valueType: string): "text" | "tel" | "email" | "date" | "number" | "org-unit" | "file";
|
|
7
7
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
8
8
|
static getOptionEntities?(options: any[]): any;
|
|
9
9
|
}
|
|
@@ -86,11 +86,7 @@ export interface Enrollment {
|
|
|
86
86
|
}
|
|
87
87
|
export interface TrackedEntityInstance {
|
|
88
88
|
trackedEntityInstance: string;
|
|
89
|
-
attributes:
|
|
90
|
-
attribute: string;
|
|
91
|
-
value: string;
|
|
92
|
-
displayName?: string;
|
|
93
|
-
}[];
|
|
89
|
+
attributes: Attribute[];
|
|
94
90
|
enrollments: Enrollment[];
|
|
95
91
|
trackedEntity: string;
|
|
96
92
|
trackedEntityType: string;
|
|
@@ -183,6 +179,7 @@ export interface ProgramMetadata {
|
|
|
183
179
|
name: string;
|
|
184
180
|
}[];
|
|
185
181
|
programTrackedEntityAttributes: ProgramTrackedEntityAttribute[];
|
|
182
|
+
orgUnitLabel: string;
|
|
186
183
|
}
|
|
187
184
|
export interface LineListResponse {
|
|
188
185
|
metadata: ProgramMetadata;
|
|
@@ -239,7 +236,7 @@ export interface ProgramTrackedEntityAttribute {
|
|
|
239
236
|
external: boolean;
|
|
240
237
|
users: any;
|
|
241
238
|
};
|
|
242
|
-
sortOrder:
|
|
239
|
+
sortOrder: string;
|
|
243
240
|
trackedEntityAttribute: TrackedEntityAttribute;
|
|
244
241
|
translations: any[];
|
|
245
242
|
userAccesses: any[];
|
|
@@ -2,6 +2,7 @@ import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { LineListResponse } from '../models/line-list.models';
|
|
4
4
|
import { AttributeFilter } from '../models/attribute-filter.model';
|
|
5
|
+
import { FilterConfig } from '../models/filter-config.model';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class LineListService {
|
|
7
8
|
private httpClient;
|
|
@@ -14,7 +15,7 @@ export declare class LineListService {
|
|
|
14
15
|
private fetchOrgUnits;
|
|
15
16
|
private getEvents;
|
|
16
17
|
private getEventsByProgramStage;
|
|
17
|
-
getLineListData(programId: string, orgUnit?: string, programStageId?: string, page?: number, pageSize?: number, filters?: AttributeFilter[], startDate?: string, endDate?: string, ouMode?: string, filterRootOrgUnit?: boolean, useOuModeWithOlderDHIS2Instance?: boolean): Observable<LineListResponse>;
|
|
18
|
+
getLineListData(programId: string, orgUnit?: string, programStageId?: string, page?: number, pageSize?: number, filters?: AttributeFilter[], startDate?: string, endDate?: string, ouMode?: string, filterRootOrgUnit?: boolean, useOuModeWithOlderDHIS2Instance?: boolean, filtersFromEvents?: FilterConfig[]): Observable<LineListResponse>;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineListService, never>;
|
|
19
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<LineListService>;
|
|
20
21
|
}
|
|
@@ -2,5 +2,6 @@ import { AttributeFilter } from '../models/attribute-filter.model';
|
|
|
2
2
|
import { FilterConfig } from '../models/filter-config.model';
|
|
3
3
|
import { TrackedEntity, TrackedEntityInstance } from '../models/line-list.models';
|
|
4
4
|
export declare function buildFilters(filters: AttributeFilter[]): string;
|
|
5
|
+
export declare function buildFiltersFromEvents(filters: FilterConfig[]): string;
|
|
5
6
|
export declare const getFilteredTrackedEntityInstances: (trackedEntityInstances: TrackedEntityInstance[], filters: FilterConfig[]) => TrackedEntityInstance[];
|
|
6
7
|
export declare const getFilteredTrackedEntites: (trackedEntities: TrackedEntity[], filters: FilterConfig[]) => TrackedEntity[];
|
|
@@ -8,6 +8,7 @@ export declare const getTrackedEntityData: (response: LineListResponse, programI
|
|
|
8
8
|
columns: ColumnDefinition[];
|
|
9
9
|
data: TableRow[];
|
|
10
10
|
filteredEntityColumns: ColumnDefinition[];
|
|
11
|
+
orgUnitLabel: string;
|
|
11
12
|
};
|
|
12
13
|
export declare const getEventData: (response: LineListResponse, pager: any, isOptionSetNameVisible: boolean) => {
|
|
13
14
|
columns: ColumnDefinition[];
|