@iapps/ng-dhis2-ui 1.2.169 → 1.2.171
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.2.
|
|
3
|
+
"version": "1.2.171",
|
|
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 {
|
|
@@ -1078,6 +1079,10 @@ declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1078
1079
|
onImmediateChange(event: {
|
|
1079
1080
|
value: string;
|
|
1080
1081
|
}): void;
|
|
1082
|
+
onRuntimeOptionsChange(event: {
|
|
1083
|
+
field: IFormField<string>;
|
|
1084
|
+
options: any[];
|
|
1085
|
+
}): void;
|
|
1081
1086
|
onFieldUpdate(e?: any, isDate?: boolean, isDateTime?: boolean): void;
|
|
1082
1087
|
getDisplayField(field: IFormField<string>): IFormField<string>;
|
|
1083
1088
|
private getProgramRuleOptions;
|
|
@@ -1137,6 +1142,7 @@ declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
1137
1142
|
onFieldUpdate(form: FormGroup, field: IFormField<string>): void;
|
|
1138
1143
|
onClear(): void;
|
|
1139
1144
|
isFormInValid(): boolean;
|
|
1145
|
+
private getOptionValue;
|
|
1140
1146
|
onRunTimeOptionUpdate(result: any): void;
|
|
1141
1147
|
ngOnDestroy(): void;
|
|
1142
1148
|
private readonly hiddenFieldIds;
|
|
@@ -1388,6 +1394,7 @@ declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
|
1388
1394
|
fieldError: _angular_core.InputSignal<string>;
|
|
1389
1395
|
fieldConfig: _angular_core.InputSignal<FieldConfig>;
|
|
1390
1396
|
programRuleOptions: _angular_core.InputSignal<any[]>;
|
|
1397
|
+
runtimeOptions: _angular_core.InputSignal<any[]>;
|
|
1391
1398
|
form: _angular_core.ModelSignal<FormGroup<any>>;
|
|
1392
1399
|
isValid: _angular_core.InputSignal<boolean>;
|
|
1393
1400
|
isValueAssigned: _angular_core.InputSignal<boolean>;
|
|
@@ -1403,6 +1410,7 @@ declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
|
1403
1410
|
protected readonly isValueAssigned$: rxjs.Observable<boolean>;
|
|
1404
1411
|
protected readonly fieldError$: rxjs.Observable<string>;
|
|
1405
1412
|
protected readonly programRuleOptions$: rxjs.Observable<any[]>;
|
|
1413
|
+
protected readonly runtimeOptions$: rxjs.Observable<any[]>;
|
|
1406
1414
|
readonly label: Signal<string | undefined>;
|
|
1407
1415
|
readonly placeholder: Signal<string>;
|
|
1408
1416
|
InputField: () => React.JSX.Element | React.ReactElement | null;
|
|
@@ -1414,6 +1422,10 @@ declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
|
1414
1422
|
form: FormGroup;
|
|
1415
1423
|
value: any;
|
|
1416
1424
|
}>;
|
|
1425
|
+
runtimeOptionsChange: EventEmitter<{
|
|
1426
|
+
field: IFormField<string>;
|
|
1427
|
+
options: any[];
|
|
1428
|
+
}>;
|
|
1417
1429
|
ngAfterViewInit(): Promise<void>;
|
|
1418
1430
|
formatValueForHtmlInputFromDhis(rawValue: string | null | undefined, isDateTimeField: boolean): string;
|
|
1419
1431
|
pickEarlierDateLimit(metadataMax?: string, systemMax?: string): string | undefined;
|
|
@@ -1438,7 +1450,7 @@ declare class BaseFormFieldComponent extends ReactWrapperModule {
|
|
|
1438
1450
|
private getNowInEatIsoString;
|
|
1439
1451
|
searchForDuplicates(value: string): Promise<boolean>;
|
|
1440
1452
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormFieldComponent, never>;
|
|
1441
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "programRuleOptions": { "alias": "programRuleOptions"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "optionCascadeConfigs": { "alias": "optionCascadeConfigs"; "required": false; "isSignal": true; }; "optionCascadeConfigMap": { "alias": "optionCascadeConfigMap"; "required": false; "isSignal": true; }; "coordinatePickerGeoConfig": { "alias": "coordinatePickerGeoConfig"; "required": false; "isSignal": true; }; "fieldControlKeyById": { "alias": "fieldControlKeyById"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; }, never, never, true, never>;
|
|
1453
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormFieldComponent, never, never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldError": { "alias": "fieldError"; "required": false; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": false; "isSignal": true; }; "programRuleOptions": { "alias": "programRuleOptions"; "required": false; "isSignal": true; }; "runtimeOptions": { "alias": "runtimeOptions"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isValid": { "alias": "isValid"; "required": false; "isSignal": true; }; "isValueAssigned": { "alias": "isValueAssigned"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "optionCascadeConfigs": { "alias": "optionCascadeConfigs"; "required": false; "isSignal": true; }; "optionCascadeConfigMap": { "alias": "optionCascadeConfigMap"; "required": false; "isSignal": true; }; "coordinatePickerGeoConfig": { "alias": "coordinatePickerGeoConfig"; "required": false; "isSignal": true; }; "fieldControlKeyById": { "alias": "fieldControlKeyById"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "form": "formChange"; "value": "valueChange"; "update": "update"; "immediateUpdate": "immediateUpdate"; "runtimeOptionsChange": "runtimeOptionsChange"; }, never, never, true, never>;
|
|
1442
1454
|
}
|
|
1443
1455
|
|
|
1444
1456
|
declare class FormFieldItemComponent extends BaseFormFieldComponent {
|
|
@@ -1565,6 +1577,7 @@ declare class SelectionFiltersComponent extends ReactWrapperModule implements Af
|
|
|
1565
1577
|
onCancelOrgUnit: () => void;
|
|
1566
1578
|
}) => React.FunctionComponentElement<{
|
|
1567
1579
|
config: _dhis2_app_service_config.Config;
|
|
1580
|
+
userInfo: _dhis2_app_service_user.CurrentUser | undefined;
|
|
1568
1581
|
children: React.ReactNode;
|
|
1569
1582
|
offlineInterface?: any;
|
|
1570
1583
|
plugin: boolean;
|