@iapps/ng-dhis2-ui 1.1.64 → 1.1.66
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 +222 -48
- package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
- package/lib/modules/form/utils/field-type.util.d.ts +1 -1
- package/lib/modules/form/utils/field.util.d.ts +1 -1
- package/lib/modules/line-list/containers/line-list.component.d.ts +2 -1
- package/lib/modules/line-list/models/line-list.models.d.ts +25 -5
- package/lib/modules/line-list/utils/line-list-utils.d.ts +1 -1
- 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): "
|
|
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
|
}
|
|
@@ -34,11 +34,12 @@ export declare class LineListTableComponent extends ReactWrapperModule {
|
|
|
34
34
|
buttonFilter: string;
|
|
35
35
|
filterRootOrgUnit: boolean;
|
|
36
36
|
showFilters: boolean;
|
|
37
|
+
isOptionSetNameVisible: boolean;
|
|
37
38
|
setReactStateUpdaters: (updaters: any) => void;
|
|
38
39
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
40
|
lineListService: LineListService;
|
|
40
41
|
LineList: () => React.JSX.Element;
|
|
41
42
|
ngAfterViewInit(): Promise<void>;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineListTableComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LineListTableComponent, "ng-dhis2-ui-line-list", never, { "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "useOuModeWithOlderDHIS2Instance": { "alias": "useOuModeWithOlderDHIS2Instance"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; "dispatchTeis": { "alias": "dispatchTeis"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; "filterRootOrgUnit": { "alias": "filterRootOrgUnit"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; }, { "actionSelected": "actionSelected"; "approvalSelected": "approvalSelected"; "firstValue": "firstValue"; }, never, ["*"], false, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineListTableComponent, "ng-dhis2-ui-line-list", never, { "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "useOuModeWithOlderDHIS2Instance": { "alias": "useOuModeWithOlderDHIS2Instance"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; "dispatchTeis": { "alias": "dispatchTeis"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; "filterRootOrgUnit": { "alias": "filterRootOrgUnit"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; "isOptionSetNameVisible": { "alias": "isOptionSetNameVisible"; "required": false; }; }, { "actionSelected": "actionSelected"; "approvalSelected": "approvalSelected"; "firstValue": "firstValue"; }, never, ["*"], false, never>;
|
|
44
45
|
}
|
|
@@ -129,6 +129,7 @@ export interface TrackedEntityInstancesResponse {
|
|
|
129
129
|
}
|
|
130
130
|
export interface TrackedEntityResponse {
|
|
131
131
|
trackedEntities: TrackedEntity[];
|
|
132
|
+
instances?: TrackedEntity[];
|
|
132
133
|
pager: Pager;
|
|
133
134
|
orgUnitsMap?: Map<string, string>;
|
|
134
135
|
}
|
|
@@ -212,13 +213,32 @@ export interface ProgramTrackedEntityAttribute {
|
|
|
212
213
|
users: any;
|
|
213
214
|
};
|
|
214
215
|
sortOrder: number;
|
|
215
|
-
trackedEntityAttribute:
|
|
216
|
-
id: string;
|
|
217
|
-
name: string;
|
|
218
|
-
valueType: string;
|
|
219
|
-
};
|
|
216
|
+
trackedEntityAttribute: TrackedEntityAttribute;
|
|
220
217
|
translations: any[];
|
|
221
218
|
userAccesses: any[];
|
|
222
219
|
userGroupAccesses: any[];
|
|
223
220
|
valueType: string;
|
|
224
221
|
}
|
|
222
|
+
export interface TrackedEntityAttribute {
|
|
223
|
+
code: string;
|
|
224
|
+
name: string;
|
|
225
|
+
formName: string;
|
|
226
|
+
shortName: string;
|
|
227
|
+
valueType: string;
|
|
228
|
+
optionSetValue: boolean;
|
|
229
|
+
id: string;
|
|
230
|
+
optionSet?: OptionSet;
|
|
231
|
+
generated: boolean;
|
|
232
|
+
unique: boolean;
|
|
233
|
+
}
|
|
234
|
+
export interface OptionSet {
|
|
235
|
+
name: string;
|
|
236
|
+
options: Option[];
|
|
237
|
+
id: string;
|
|
238
|
+
}
|
|
239
|
+
export interface Option {
|
|
240
|
+
code: string;
|
|
241
|
+
name: string;
|
|
242
|
+
id: string;
|
|
243
|
+
value?: string;
|
|
244
|
+
}
|
|
@@ -4,7 +4,7 @@ export declare const getProgramStageData: (response: LineListResponse, programSt
|
|
|
4
4
|
columns: ColumnDefinition[];
|
|
5
5
|
data: TableRow[];
|
|
6
6
|
};
|
|
7
|
-
export declare const getTrackedEntityData: (response: LineListResponse, programId: string, pager: any, filters?: FilterConfig[]) => {
|
|
7
|
+
export declare const getTrackedEntityData: (response: LineListResponse, programId: string, pager: any, isOptionSetNameVisible: boolean, filters?: FilterConfig[]) => {
|
|
8
8
|
columns: ColumnDefinition[];
|
|
9
9
|
data: TableRow[];
|
|
10
10
|
filteredEntityColumns: ColumnDefinition[];
|