@iapps/ng-dhis2-ui 1.2.133 → 1.2.135

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
@@ -327,7 +327,7 @@ interface IFieldDropdown {
327
327
  code?: string;
328
328
  }
329
329
 
330
- type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'transfer' | 'coordinate' | 'search';
330
+ type FieldControlType = 'dropdown' | 'multi-dropdown' | 'textbox' | 'textarea' | 'checkbox' | 'date' | 'date-time' | 'image' | 'org-unit' | 'file' | 'boolean' | 'number' | 'tel' | 'transfer' | 'coordinate' | 'search';
331
331
 
332
332
  type FormFieldMetaType = 'DATA_ELEMENT' | 'ATTRIBUTE';
333
333
 
@@ -1100,7 +1100,12 @@ declare class ProgramEntryFormMetaData implements IProgramEntryFormMetaData {
1100
1100
  d2: _iapps_d2_web_sdk.D2Web;
1101
1101
  config: ProgramEntryFormConfig;
1102
1102
  program: Program;
1103
+ private autoAssignedFieldIdSet?;
1103
1104
  setConfig(config: ProgramEntryFormConfig): ProgramEntryFormMetaData;
1105
+ private getFieldIdentifiers;
1106
+ private getAutoAssignedFieldIdSet;
1107
+ private shouldDisableField;
1108
+ private withDisabledFlags;
1104
1109
  getProgramPromise(): Promise<_iapps_d2_web_sdk.D2Response<Program>>;
1105
1110
  get formFields(): IFormField<string>[];
1106
1111
  get sections(): IProgramEntryFormSection[];
@@ -1216,7 +1221,7 @@ declare class D2FormModule {
1216
1221
  declare class FieldUtil {
1217
1222
  static getFieldDropdownOptions(field: any): DropdownOption[];
1218
1223
  static sanitizeOptions(options: any[]): any;
1219
- static getFieldType(valueType: string): "org-unit" | "date" | "date-time" | "file" | "coordinate" | "number" | "tel" | "email" | "text";
1224
+ static getFieldType(valueType: string): "number" | "tel" | "text" | "email" | "date" | "date-time" | "org-unit" | "file" | "coordinate";
1220
1225
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
1221
1226
  static getOptionEntities?(options: any[]): any;
1222
1227
  }
@@ -1226,14 +1231,14 @@ declare class FieldControlTypeUtil {
1226
1231
  }
1227
1232
 
1228
1233
  declare class FormFieldTypeUtil {
1229
- static getFieldType(valueType: string): "org-unit" | "date-time" | "image" | "file" | "coordinate" | "number" | "text";
1234
+ static getFieldType(valueType: string): "number" | "tel" | "text" | "date-time" | "image" | "org-unit" | "file" | "coordinate";
1230
1235
  }
1231
1236
 
1232
1237
  declare class FormUtil {
1233
1238
  static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
1234
1239
  static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
1235
1240
  static getFormFields(fields: any[]): FormField<string>[];
1236
- static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'coordinate' | 'date-time' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
1241
+ static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'coordinate' | 'number' | 'tel' | 'date-time' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
1237
1242
  }
1238
1243
 
1239
1244
  declare class FormValueUtil {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.133",
3
+ "version": "1.2.135",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",