@iapps/ng-dhis2-ui 1.2.159 → 1.2.161
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/index.d.ts
CHANGED
|
@@ -648,7 +648,10 @@ interface JsonTransformer<T> {
|
|
|
648
648
|
}
|
|
649
649
|
type ProgramRuleActionType = 'HIDEFIELD' | 'SHOWFIELD' | 'ASSIGN' | 'HIDESECTION' | 'SHOWSECTION' | 'HIDEPROGRAMSTAGE' | 'SHOWPROGRAMSTAGE' | 'WARNINGONCOMPLETE' | 'WARNINGONCREATE' | 'ERRORONCOMPLETE' | 'ERRORONCREATE' | string;
|
|
650
650
|
interface IMetadataRuleAction {
|
|
651
|
+
id?: string;
|
|
651
652
|
field: string;
|
|
653
|
+
section?: string;
|
|
654
|
+
sectionType?: 'PROGRAM_SECTION' | 'PROGRAM_STAGE_SECTION';
|
|
652
655
|
actionType: ProgramRuleActionType;
|
|
653
656
|
assignedData?: string;
|
|
654
657
|
displayedContent?: string;
|
|
@@ -670,6 +673,9 @@ declare class MetadataRuleAction implements IMetadataRuleAction, JsonTransformer
|
|
|
670
673
|
private variableMap;
|
|
671
674
|
constructor(ruleAction: ProgramRuleAction, ruleVariables: ProgramRuleVariable[]);
|
|
672
675
|
get field(): string;
|
|
676
|
+
get section(): string | undefined;
|
|
677
|
+
get sectionType(): 'PROGRAM_SECTION' | 'PROGRAM_STAGE_SECTION' | undefined;
|
|
678
|
+
get isSectionAction(): boolean;
|
|
673
679
|
get programRule(): {
|
|
674
680
|
id: string;
|
|
675
681
|
};
|
|
@@ -1065,6 +1071,7 @@ declare class FormFieldComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1065
1071
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ng-dhis2-ui-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "fieldConfig": { "alias": "fieldConfig"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": false; }; "isCheckBoxButton": { "alias": "isCheckBoxButton"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; "program": { "alias": "program"; "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; }; }, { "fieldUpdate": "fieldUpdate"; "immediateFieldUpdate": "immediateFieldUpdate"; "runtimeOptionChange": "runtimeOptionChange"; }, never, never, false, never>;
|
|
1066
1072
|
}
|
|
1067
1073
|
|
|
1074
|
+
type SectionRuleTargetType = 'PROGRAM_SECTION' | 'PROGRAM_STAGE_SECTION';
|
|
1068
1075
|
declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
1069
1076
|
#private;
|
|
1070
1077
|
programEntryFormConfig: _angular_core.InputSignal<any>;
|
|
@@ -1106,6 +1113,9 @@ declare class FormComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
1106
1113
|
isSectionOpen(section: {
|
|
1107
1114
|
id?: string | number;
|
|
1108
1115
|
}, index: number): boolean;
|
|
1116
|
+
isSectionVisible(section: {
|
|
1117
|
+
id?: string;
|
|
1118
|
+
} | null | undefined, expectedSectionType: SectionRuleTargetType): boolean;
|
|
1109
1119
|
ngOnInit(): void;
|
|
1110
1120
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1111
1121
|
onSubmit(): void;
|
|
@@ -1418,7 +1428,7 @@ declare class D2FormModule {
|
|
|
1418
1428
|
declare class FieldUtil {
|
|
1419
1429
|
static getFieldDropdownOptions(field: any): DropdownOption[];
|
|
1420
1430
|
static sanitizeOptions(options: any[]): any;
|
|
1421
|
-
static getFieldType(valueType: string): "
|
|
1431
|
+
static getFieldType(valueType: string): "date" | "date-time" | "org-unit" | "file" | "number" | "tel" | "coordinate" | "text" | "email";
|
|
1422
1432
|
static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
|
|
1423
1433
|
static getOptionEntities?(options: any[]): any;
|
|
1424
1434
|
}
|
|
@@ -1428,7 +1438,7 @@ declare class FieldControlTypeUtil {
|
|
|
1428
1438
|
}
|
|
1429
1439
|
|
|
1430
1440
|
declare class FormFieldTypeUtil {
|
|
1431
|
-
static getFieldType(valueType: string): "
|
|
1441
|
+
static getFieldType(valueType: string): "date-time" | "image" | "org-unit" | "file" | "number" | "tel" | "coordinate" | "text";
|
|
1432
1442
|
}
|
|
1433
1443
|
|
|
1434
1444
|
declare class FormUtil {
|