@iapps/ng-dhis2-ui 1.3.2 → 1.3.4
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
|
@@ -1218,6 +1218,30 @@ declare class SectionFormComponent implements OnInit {
|
|
|
1218
1218
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionFormComponent, "ng-dhis2-ui-section-form", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "formMetaData": { "alias": "formMetaData"; "required": true; "isSignal": true; }; "dataValueEntities": { "alias": "dataValueEntities"; "required": true; "isSignal": true; }; }, { "save": "save"; "formUpdate": "formUpdate"; "cancel": "cancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
|
+
interface CustomFieldConfiguration {
|
|
1222
|
+
id: string;
|
|
1223
|
+
fieldOptionsDependsOn?: string;
|
|
1224
|
+
optionSet?: {
|
|
1225
|
+
options: any[];
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
interface IProgramEntryFormSection {
|
|
1230
|
+
id: string;
|
|
1231
|
+
name: string;
|
|
1232
|
+
description?: string;
|
|
1233
|
+
formFields: IFormField<string>[];
|
|
1234
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1235
|
+
}
|
|
1236
|
+
declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
1237
|
+
id: string;
|
|
1238
|
+
name: string;
|
|
1239
|
+
description?: string;
|
|
1240
|
+
formFields: IFormField<string>[];
|
|
1241
|
+
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1242
|
+
constructor(props: IProgramEntryFormSection);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1221
1245
|
type AutoAssignedValues = {
|
|
1222
1246
|
field: string;
|
|
1223
1247
|
value: string;
|
|
@@ -1235,6 +1259,7 @@ interface IProgramEntryFormConfig {
|
|
|
1235
1259
|
disableGeometryField?: boolean;
|
|
1236
1260
|
disableEnrollmentDate?: boolean;
|
|
1237
1261
|
disabledIncidentDate?: boolean;
|
|
1262
|
+
disableForm?: boolean;
|
|
1238
1263
|
excludeProgramStages?: boolean;
|
|
1239
1264
|
excludeInheritedAttributes?: boolean;
|
|
1240
1265
|
disableEventDate?: boolean;
|
|
@@ -1270,6 +1295,7 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
|
1270
1295
|
disableEnrollmentDate?: boolean;
|
|
1271
1296
|
disabledIncidentDate?: boolean;
|
|
1272
1297
|
disableEventDate?: boolean;
|
|
1298
|
+
disableForm?: boolean;
|
|
1273
1299
|
hideEventDate?: boolean;
|
|
1274
1300
|
excludeProgramStages?: boolean;
|
|
1275
1301
|
excludeInheritedAttributes?: boolean;
|
|
@@ -1291,30 +1317,6 @@ declare class ProgramEntryFormConfig implements IProgramEntryFormConfig {
|
|
|
1291
1317
|
constructor(config: IProgramEntryFormConfig);
|
|
1292
1318
|
}
|
|
1293
1319
|
|
|
1294
|
-
interface IProgramEntryFormSection {
|
|
1295
|
-
id: string;
|
|
1296
|
-
name: string;
|
|
1297
|
-
description?: string;
|
|
1298
|
-
formFields: IFormField<string>[];
|
|
1299
|
-
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1300
|
-
}
|
|
1301
|
-
declare class ProgramEntryFormSection implements IProgramEntryFormSection {
|
|
1302
|
-
id: string;
|
|
1303
|
-
name: string;
|
|
1304
|
-
description?: string;
|
|
1305
|
-
formFields: IFormField<string>[];
|
|
1306
|
-
orientation: 'HORIZONTAL' | 'VERTICAL';
|
|
1307
|
-
constructor(props: IProgramEntryFormSection);
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
interface CustomFieldConfiguration {
|
|
1311
|
-
id: string;
|
|
1312
|
-
fieldOptionsDependsOn?: string;
|
|
1313
|
-
optionSet?: {
|
|
1314
|
-
options: any[];
|
|
1315
|
-
};
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
1320
|
interface IProgramEntryFormMetaData {
|
|
1319
1321
|
id: string;
|
|
1320
1322
|
name: string;
|
|
@@ -1386,7 +1388,7 @@ declare class FlatFormComponent extends BaseFormWrapperComponent implements OnIn
|
|
|
1386
1388
|
programEntryFormConfig: _angular_core.InputSignal<any>;
|
|
1387
1389
|
optionCascadeConfigs: _angular_core.InputSignal<OptionsPathCascadeConfig[]>;
|
|
1388
1390
|
ngOnInit(): void;
|
|
1389
|
-
onFormUpdate(): void;
|
|
1391
|
+
onFormUpdate(dataValues?: Record<string, unknown>): void;
|
|
1390
1392
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlatFormComponent, never>;
|
|
1391
1393
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlatFormComponent, "ng-dhis2-ui-flat-form", never, { "collapsibleSections": { "alias": "collapsibleSections"; "required": false; "isSignal": true; }; "programEntryFormConfig": { "alias": "programEntryFormConfig"; "required": true; "isSignal": true; }; "optionCascadeConfigs": { "alias": "optionCascadeConfigs"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
1392
1394
|
}
|
|
@@ -1677,6 +1679,7 @@ declare class ProgramEntryFormModule {
|
|
|
1677
1679
|
isFormValid: _angular_core.WritableSignal<boolean>;
|
|
1678
1680
|
isFormValid$: Observable<boolean>;
|
|
1679
1681
|
instance: _angular_core.WritableSignal<TrackedEntityInstance | DHIS2Event>;
|
|
1682
|
+
trackedEntityInstance: _angular_core.WritableSignal<TrackedEntityInstance>;
|
|
1680
1683
|
instanceQuery: BaseTrackerQuery<TrackedEntityInstance> | BaseEventQuery<DHIS2Event>;
|
|
1681
1684
|
preprocess: _angular_core.InputSignal<(payload: {
|
|
1682
1685
|
instance: TrackedEntityInstance | DHIS2Event;
|
|
@@ -1688,6 +1691,7 @@ declare class ProgramEntryFormModule {
|
|
|
1688
1691
|
formCancel: EventEmitter<any>;
|
|
1689
1692
|
FormLoader: () => React.JSX.Element;
|
|
1690
1693
|
dataId: _angular_core.Signal<any>;
|
|
1694
|
+
dataEntities: _angular_core.Signal<Record<string, unknown>>;
|
|
1691
1695
|
FormActionButtons: _angular_core.Signal<React.JSX.Element | (() => React.JSX.Element)>;
|
|
1692
1696
|
ngOnInit(): Promise<void>;
|
|
1693
1697
|
onFormUpdate(dataValues: Record<string, unknown>): void;
|