@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.
@@ -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" | "email" | "number" | "tel" | "date" | "org-unit" | "file";
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: number;
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.1.70",
3
+ "version": "1.1.72",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",