@iapps/ng-dhis2-ui 1.2.95 → 1.2.97

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.
@@ -21,6 +21,7 @@ export declare class FormComponent implements OnChanges, OnDestroy, OnInit {
21
21
  customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
22
22
  configuration: import("@angular/core").Signal<FormConfig>;
23
23
  formUpdate: EventEmitter<any>;
24
+ formValidityUpdate: EventEmitter<boolean>;
24
25
  fieldComponents: FormFieldComponent[];
25
26
  values: any;
26
27
  get sanitizedFields(): IFormField<string>[];
@@ -36,5 +37,5 @@ export declare class FormComponent implements OnChanges, OnDestroy, OnInit {
36
37
  onRunTimeOptionUpdate(result: any): void;
37
38
  ngOnDestroy(): void;
38
39
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; }, never, never, false, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-dhis2-ui-form", never, { "formConfig": { "alias": "formConfig"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; "isFormHorizontal": { "alias": "isFormHorizontal"; "required": false; "isSignal": true; }; "showSaveButton": { "alias": "showSaveButton"; "required": false; "isSignal": true; }; "fieldsData": { "alias": "fieldsData"; "required": false; "isSignal": true; }; "fieldClass": { "alias": "fieldClass"; "required": false; "isSignal": true; }; "shouldRenderAsCheckBoxesButton": { "alias": "shouldRenderAsCheckBoxesButton"; "required": false; "isSignal": true; }; "programRuleActions": { "alias": "programRuleActions"; "required": false; "isSignal": true; }; "dataEntities": { "alias": "dataEntities"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "formUpdate": "formUpdate"; "formValidityUpdate": "formValidityUpdate"; }, never, never, false, never>;
40
41
  }
@@ -18,6 +18,7 @@ export declare class SectionFormComponent implements OnInit {
18
18
  save: EventEmitter<Record<string, unknown>>;
19
19
  formUpdate: EventEmitter<Record<string, unknown>>;
20
20
  cancel: EventEmitter<any>;
21
+ formValidityUpdate: EventEmitter<boolean>;
21
22
  inValid: import("@angular/core").WritableSignal<boolean>;
22
23
  inValid$: Observable<boolean>;
23
24
  constructor();
@@ -28,5 +29,5 @@ export declare class SectionFormComponent implements OnInit {
28
29
  onCancel(event?: MouseEvent): void;
29
30
  checkIfInValid(): boolean;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionFormComponent, never>;
31
- static ɵcmp: i0.ɵɵ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"; }, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵ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>;
32
33
  }
@@ -1,3 +1,3 @@
1
1
  export declare class FormFieldTypeUtil {
2
- static getFieldType(valueType: string): "image" | "org-unit" | "file" | "number" | "text";
2
+ static getFieldType(valueType: string): "text" | "image" | "org-unit" | "file" | "number";
3
3
  }
@@ -3,7 +3,7 @@ import { DropdownOption } from '../models';
3
3
  export declare class FieldUtil {
4
4
  static getFieldDropdownOptions(field: any): DropdownOption[];
5
5
  static sanitizeOptions(options: any[]): any;
6
- static getFieldType(valueType: string): "date" | "org-unit" | "file" | "number" | "tel" | "email" | "text";
6
+ static getFieldType(valueType: string): "text" | "tel" | "email" | "date" | "org-unit" | "file" | "number";
7
7
  static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
8
8
  static getOptionEntities?(options: any[]): any;
9
9
  }
@@ -1,11 +1,11 @@
1
1
  export declare const getFixedPeriodsOptionsById: (id: string, periodSettings?: any) => {
2
2
  id: string;
3
- getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/types").FixedPeriod[];
3
+ getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
4
4
  name: any;
5
5
  };
6
6
  export declare const getFixedPeriodsOptions: () => {
7
7
  id: string;
8
- getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/types").FixedPeriod[];
8
+ getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
9
9
  name: any;
10
10
  }[];
11
11
  export declare const getYearOffsetFromNow: (yearStr: any) => number;
@@ -13,5 +13,5 @@ export declare const parsePeriodCode: (code: any, allowedTypes: any) => {
13
13
  id: string;
14
14
  name: any;
15
15
  year: any;
16
- options: import("@dhis2/multi-calendar-dates/build/types/period-calculation/types").FixedPeriod[];
16
+ options: import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
17
17
  };
@@ -1,4 +1,4 @@
1
- import { FormFieldExtension } from 'packages/ng-dhis2-ui/src/lib/modules/form';
1
+ import { FormFieldExtension } from '../../form';
2
2
  export type AutoAssignedValues = {
3
3
  field: string;
4
4
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iapps/ng-dhis2-ui",
3
- "version": "1.2.95",
3
+ "version": "1.2.97",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",