@iapps/ng-dhis2-ui 1.2.170 → 1.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iapps/ng-dhis2-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0",
|
|
@@ -22,14 +22,15 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"module": "fesm2022/iapps-ng-dhis2-ui.mjs",
|
|
25
|
-
"typings": "
|
|
25
|
+
"typings": "types/iapps-ng-dhis2-ui.d.ts",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./package.json": {
|
|
28
28
|
"default": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
".": {
|
|
31
|
-
"types": "./
|
|
31
|
+
"types": "./types/iapps-ng-dhis2-ui.d.ts",
|
|
32
32
|
"default": "./fesm2022/iapps-ng-dhis2-ui.mjs"
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"type": "module"
|
|
35
36
|
}
|
|
@@ -4,12 +4,13 @@ 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,
|
|
7
|
+
import { TrackedEntityInstance, DHIS2Event, DataQueryFilter, LineListRowActionFilterConfig, EnrollmentStatus, EventStatus, Option as Option$1, ProgramRule, ProgramRuleVariable, ProgramRuleAction, Program, BaseTrackerQuery, BaseEventQuery, D2EventResponse, D2TrackerResponse } 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';
|
|
11
11
|
import { FormGroup, FormControl, UntypedFormGroup } from '@angular/forms';
|
|
12
12
|
import * as _dhis2_ui_loader from '@dhis2-ui/loader';
|
|
13
|
+
import * as _dhis2_app_service_user from '@dhis2/app-service-user';
|
|
13
14
|
import * as _dhis2_app_service_config from '@dhis2/app-service-config';
|
|
14
15
|
|
|
15
16
|
declare class ReactWrapperModule implements OnDestroy, AfterViewInit {
|
|
@@ -265,7 +266,7 @@ declare class LineListTableComponent extends ReactWrapperModule implements OnCha
|
|
|
265
266
|
action: string;
|
|
266
267
|
data: TrackedEntityInstance | DHIS2Event;
|
|
267
268
|
}>;
|
|
268
|
-
rowsSelected: EventEmitter<
|
|
269
|
+
rowsSelected: EventEmitter<DHIS2Event[] | TrackedEntityInstance[]>;
|
|
269
270
|
showActionButtons: boolean;
|
|
270
271
|
showEnrollmentDates: boolean;
|
|
271
272
|
showDownloadButton: boolean;
|
|
@@ -362,6 +363,7 @@ interface IFormField<T> {
|
|
|
362
363
|
key: string;
|
|
363
364
|
referenceKey?: string;
|
|
364
365
|
label: string;
|
|
366
|
+
description?: string;
|
|
365
367
|
required: boolean;
|
|
366
368
|
order?: number;
|
|
367
369
|
controlType: FieldControlType;
|
|
@@ -527,6 +529,7 @@ declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
|
|
|
527
529
|
key: string;
|
|
528
530
|
referenceKey?: string;
|
|
529
531
|
label: string;
|
|
532
|
+
description?: string;
|
|
530
533
|
required: boolean;
|
|
531
534
|
order?: number;
|
|
532
535
|
controlType: FieldControlType;
|
|
@@ -603,6 +606,7 @@ interface FieldData {
|
|
|
603
606
|
|
|
604
607
|
declare class FieldConfig {
|
|
605
608
|
hideLabel?: boolean;
|
|
609
|
+
fieldDescriptionLabel?: string;
|
|
606
610
|
inputWidth: string;
|
|
607
611
|
constructor(config?: Partial<FieldConfig>);
|
|
608
612
|
}
|
|
@@ -1236,6 +1240,7 @@ interface IProgramEntryFormConfig {
|
|
|
1236
1240
|
disableEventDate?: boolean;
|
|
1237
1241
|
hideEventDate?: boolean;
|
|
1238
1242
|
includedProgramStages?: string[];
|
|
1243
|
+
fieldDescriptionLabel?: string;
|
|
1239
1244
|
submitButtonLabel?: string;
|
|
1240
1245
|
cancelButtonLabel?: string;
|
|
1241
1246
|
hideActionButtons?: boolean;
|
|
@@ -1271,6 +1276,7 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
|
1271
1276
|
includedProgramStages?: string[];
|
|
1272
1277
|
submitButtonLabel: string;
|
|
1273
1278
|
cancelButtonLabel: string;
|
|
1279
|
+
fieldDescriptionLabel: string;
|
|
1274
1280
|
hideActionButtons?: boolean;
|
|
1275
1281
|
hideSubmitButton?: boolean;
|
|
1276
1282
|
hideCancelButton?: boolean;
|
|
@@ -1466,7 +1472,7 @@ declare class D2FormModule {
|
|
|
1466
1472
|
declare class FieldUtil {
|
|
1467
1473
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1468
1474
|
static sanitizeOptions(options: any[]): any;
|
|
1469
|
-
static getFieldType(valueType: string): "
|
|
1475
|
+
static getFieldType(valueType: string): "email" | "number" | "text" | "tel" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
|
|
1470
1476
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1471
1477
|
static getOptionEntities?(options: any[]): any;
|
|
1472
1478
|
}
|
|
@@ -1476,7 +1482,7 @@ declare class FieldControlTypeUtil {
|
|
|
1476
1482
|
}
|
|
1477
1483
|
|
|
1478
1484
|
declare class FormFieldTypeUtil {
|
|
1479
|
-
static getFieldType(valueType: string): "
|
|
1485
|
+
static getFieldType(valueType: string): "number" | "text" | "tel" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
|
|
1480
1486
|
}
|
|
1481
1487
|
|
|
1482
1488
|
declare class FormUtil {
|
|
@@ -1576,6 +1582,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1576
1582
|
onCancelOrgUnit: () => void;
|
|
1577
1583
|
}) => React.FunctionComponentElement<{
|
|
1578
1584
|
config: _dhis2_app_service_config.Config;
|
|
1585
|
+
userInfo: _dhis2_app_service_user.CurrentUser | undefined;
|
|
1579
1586
|
children: React.ReactNode;
|
|
1580
1587
|
offlineInterface?: any;
|
|
1581
1588
|
plugin: boolean;
|
|
@@ -1675,7 +1682,7 @@ declare class ProgramEntryFormModule {
|
|
|
1675
1682
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
1676
1683
|
}) => void>;
|
|
1677
1684
|
instanceSave: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1678
|
-
instanceSaveCompleted: EventEmitter<
|
|
1685
|
+
instanceSaveCompleted: EventEmitter<D2EventResponse<DHIS2Event> | D2TrackerResponse<TrackedEntityInstance>>;
|
|
1679
1686
|
instanceUpdate: EventEmitter<TrackedEntityInstance | DHIS2Event>;
|
|
1680
1687
|
formValidityUpdate: EventEmitter<boolean>;
|
|
1681
1688
|
formCancel: EventEmitter<any>;
|