@iapps/ng-dhis2-ui 1.2.103 → 1.2.104

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.
Files changed (200) hide show
  1. package/fesm2022/iapps-ng-dhis2-ui.mjs +599 -372
  2. package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
  3. package/index.d.ts +1311 -13
  4. package/package.json +1 -1
  5. package/lib/modules/breadcrumb/breadcrumb.module.d.ts +0 -8
  6. package/lib/modules/breadcrumb/components/breadcrumb-item.component.d.ts +0 -6
  7. package/lib/modules/breadcrumb/containers/breadcrumb.component.d.ts +0 -12
  8. package/lib/modules/breadcrumb/index.d.ts +0 -3
  9. package/lib/modules/breadcrumb/models/breadcrumb-item.model.d.ts +0 -6
  10. package/lib/modules/breadcrumb/models/index.d.ts +0 -1
  11. package/lib/modules/button/button.component.d.ts +0 -18
  12. package/lib/modules/button/button.module.d.ts +0 -9
  13. package/lib/modules/button/index.d.ts +0 -2
  14. package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.d.ts +0 -19
  15. package/lib/modules/data-table-ui/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
  16. package/lib/modules/data-table-ui/components/dropdown-menu/index.d.ts +0 -1
  17. package/lib/modules/data-table-ui/containers/data-table-ui/data-table-ui.component.d.ts +0 -20
  18. package/lib/modules/data-table-ui/data-table-ui.module.d.ts +0 -10
  19. package/lib/modules/data-table-ui/hooks/index.d.ts +0 -1
  20. package/lib/modules/data-table-ui/hooks/use-dynamic-styles.hook.d.ts +0 -1
  21. package/lib/modules/data-table-ui/index.d.ts +0 -3
  22. package/lib/modules/data-table-ui/models/data-table.models.d.ts +0 -10
  23. package/lib/modules/event-form/event-form.component.d.ts +0 -21
  24. package/lib/modules/event-form/event-form.module.d.ts +0 -9
  25. package/lib/modules/event-form/index.d.ts +0 -2
  26. package/lib/modules/form/components/base-form-field.component.d.ts +0 -41
  27. package/lib/modules/form/components/file-upload-field.component.d.ts +0 -15
  28. package/lib/modules/form/components/form-field-item.component.d.ts +0 -6
  29. package/lib/modules/form/components/org-unit-form-field.component.d.ts +0 -20
  30. package/lib/modules/form/containers/flat-form/flat-form.component.d.ts +0 -11
  31. package/lib/modules/form/containers/form/form.component.d.ts +0 -41
  32. package/lib/modules/form/containers/form-field/form-field.component.d.ts +0 -59
  33. package/lib/modules/form/containers/repeatable-form/repeatable-form.component.d.ts +0 -38
  34. package/lib/modules/form/containers/section-form/section-form.component.d.ts +0 -33
  35. package/lib/modules/form/form.module.d.ts +0 -16
  36. package/lib/modules/form/hooks/field-validation.hook.d.ts +0 -13
  37. package/lib/modules/form/hooks/index.d.ts +0 -1
  38. package/lib/modules/form/index.d.ts +0 -9
  39. package/lib/modules/form/interfaces/field-control-type.interface.d.ts +0 -1
  40. package/lib/modules/form/interfaces/field-dropdown.interface.d.ts +0 -7
  41. package/lib/modules/form/interfaces/field-type.interface.d.ts +0 -16
  42. package/lib/modules/form/interfaces/form-configuration.model.d.ts +0 -63
  43. package/lib/modules/form/interfaces/form-field-extension.interface.d.ts +0 -6
  44. package/lib/modules/form/interfaces/form-field-group.interface.d.ts +0 -15
  45. package/lib/modules/form/interfaces/form-field-meta-type.interface.d.ts +0 -1
  46. package/lib/modules/form/interfaces/form-field.interface.d.ts +0 -47
  47. package/lib/modules/form/interfaces/form-metadata-section.interface.d.ts +0 -10
  48. package/lib/modules/form/interfaces/form-metadata.interface.d.ts +0 -11
  49. package/lib/modules/form/interfaces/index.d.ts +0 -10
  50. package/lib/modules/form/models/boolean.model.d.ts +0 -5
  51. package/lib/modules/form/models/check-box.model.d.ts +0 -5
  52. package/lib/modules/form/models/date-field.model.d.ts +0 -7
  53. package/lib/modules/form/models/date-range-value.model.d.ts +0 -4
  54. package/lib/modules/form/models/dropdown-option.model.d.ts +0 -6
  55. package/lib/modules/form/models/dropdown.model.d.ts +0 -5
  56. package/lib/modules/form/models/field-config.model.d.ts +0 -5
  57. package/lib/modules/form/models/field-dropdown.model.d.ts +0 -10
  58. package/lib/modules/form/models/fields-data.model.d.ts +0 -8
  59. package/lib/modules/form/models/form-config.model.d.ts +0 -10
  60. package/lib/modules/form/models/form-field-group.model.d.ts +0 -23
  61. package/lib/modules/form/models/form-field.model.d.ts +0 -50
  62. package/lib/modules/form/models/form-metadata-rule.model.d.ts +0 -35
  63. package/lib/modules/form/models/form-metadata-section.model.d.ts +0 -33
  64. package/lib/modules/form/models/form-metadata.model.d.ts +0 -26
  65. package/lib/modules/form/models/form-value.model.d.ts +0 -19
  66. package/lib/modules/form/models/form.model.d.ts +0 -14
  67. package/lib/modules/form/models/index.d.ts +0 -17
  68. package/lib/modules/form/shared/components/base-form-wrapper.component.d.ts +0 -29
  69. package/lib/modules/form/shared/components/index.d.ts +0 -1
  70. package/lib/modules/form/shared/index.d.ts +0 -1
  71. package/lib/modules/form/utils/field-control-type.util.d.ts +0 -4
  72. package/lib/modules/form/utils/field-type.util.d.ts +0 -3
  73. package/lib/modules/form/utils/field.util.d.ts +0 -9
  74. package/lib/modules/form/utils/form-value.util.d.ts +0 -4
  75. package/lib/modules/form/utils/form.util.d.ts +0 -9
  76. package/lib/modules/form/utils/index.d.ts +0 -6
  77. package/lib/modules/form/utils/translation.util.d.ts +0 -3
  78. package/lib/modules/header-bar/header-bar.component.d.ts +0 -11
  79. package/lib/modules/header-bar/header-bar.module.d.ts +0 -9
  80. package/lib/modules/header-bar/index.d.ts +0 -2
  81. package/lib/modules/header-bar/models/header-bar-app.model.d.ts +0 -10
  82. package/lib/modules/header-bar/models/header-bar-data.model.d.ts +0 -16
  83. package/lib/modules/header-bar/models/header-bar-notification.model.d.ts +0 -5
  84. package/lib/modules/header-bar/models/index.d.ts +0 -2
  85. package/lib/modules/header-bar/utils/apps.d.ts +0 -16
  86. package/lib/modules/header-bar/utils/debug-info/debug-info-menu-item.d.ts +0 -15
  87. package/lib/modules/header-bar/utils/debug-info/debug-info-modal.d.ts +0 -8
  88. package/lib/modules/header-bar/utils/debug-info/debug-info-table.d.ts +0 -8
  89. package/lib/modules/header-bar/utils/debug-info/use-debug-info.d.ts +0 -7
  90. package/lib/modules/header-bar/utils/header-bar-context.d.ts +0 -14
  91. package/lib/modules/header-bar/utils/header-bar.d.ts +0 -19
  92. package/lib/modules/header-bar/utils/join-path.d.ts +0 -1
  93. package/lib/modules/header-bar/utils/logo-image.d.ts +0 -8
  94. package/lib/modules/header-bar/utils/logo.d.ts +0 -12
  95. package/lib/modules/header-bar/utils/notification-icon.d.ts +0 -21
  96. package/lib/modules/header-bar/utils/notifications.d.ts +0 -16
  97. package/lib/modules/header-bar/utils/profile/use-on-doc-click.d.ts +0 -1
  98. package/lib/modules/header-bar/utils/profile-menu/index.d.ts +0 -1
  99. package/lib/modules/header-bar/utils/profile-menu/profile-header.d.ts +0 -16
  100. package/lib/modules/header-bar/utils/profile-menu/profile-menu.d.ts +0 -13
  101. package/lib/modules/header-bar/utils/profile-menu/update-notification.d.ts +0 -14
  102. package/lib/modules/header-bar/utils/profile.d.ts +0 -18
  103. package/lib/modules/header-bar/utils/title.d.ts +0 -15
  104. package/lib/modules/line-list/components/data-table-actions/data-table-actions.d.ts +0 -9
  105. package/lib/modules/line-list/components/data-table-actions/index.d.ts +0 -1
  106. package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.d.ts +0 -12
  107. package/lib/modules/line-list/components/dropdown-menu/dropdown-menu.styles.d.ts +0 -5
  108. package/lib/modules/line-list/components/dropdown-menu/index.d.ts +0 -1
  109. package/lib/modules/line-list/components/org-unit-form-field.component.d.ts +0 -14
  110. package/lib/modules/line-list/components/orgUnitSelector.d.ts +0 -2
  111. package/lib/modules/line-list/components/table/filterToolbar.d.ts +0 -3
  112. package/lib/modules/line-list/components/table/lineListTable.d.ts +0 -2
  113. package/lib/modules/line-list/components/table/pagination.d.ts +0 -8
  114. package/lib/modules/line-list/components/table/tableBody.d.ts +0 -2
  115. package/lib/modules/line-list/components/table/tableCell.d.ts +0 -5
  116. package/lib/modules/line-list/components/table/tableFooter.d.ts +0 -2
  117. package/lib/modules/line-list/components/table/tableHeader.d.ts +0 -8
  118. package/lib/modules/line-list/components/table/tableRow.d.ts +0 -2
  119. package/lib/modules/line-list/containers/line-list.component.d.ts +0 -52
  120. package/lib/modules/line-list/hooks/index.d.ts +0 -1
  121. package/lib/modules/line-list/hooks/use-dynamic-styles.hook.d.ts +0 -1
  122. package/lib/modules/line-list/index.d.ts +0 -3
  123. package/lib/modules/line-list/line-list.module.d.ts +0 -10
  124. package/lib/modules/line-list/models/action-option-orientation.model.d.ts +0 -1
  125. package/lib/modules/line-list/models/attribute-filter.model.d.ts +0 -10
  126. package/lib/modules/line-list/models/dropdown-menu.model.d.ts +0 -9
  127. package/lib/modules/line-list/models/filter-config.model.d.ts +0 -6
  128. package/lib/modules/line-list/models/index.d.ts +0 -3
  129. package/lib/modules/line-list/models/line-list-action-option.model.d.ts +0 -6
  130. package/lib/modules/line-list/models/line-list.models.d.ts +0 -262
  131. package/lib/modules/line-list/services/line-list.service.d.ts +0 -13
  132. package/lib/modules/line-list/utils/event-table-data-util.d.ts +0 -6
  133. package/lib/modules/line-list/utils/tei-table-data-utils.d.ts +0 -9
  134. package/lib/modules/organisation-unit-selector/components/OrgUnitDimension.d.ts +0 -28
  135. package/lib/modules/organisation-unit-selector/components/index.d.ts +0 -2
  136. package/lib/modules/organisation-unit-selector/components/styles/OrgUnitDimension.style.d.ts +0 -1
  137. package/lib/modules/organisation-unit-selector/components/utils/index.d.ts +0 -2
  138. package/lib/modules/organisation-unit-selector/components/utils/ouIdHelper/index.d.ts +0 -10
  139. package/lib/modules/organisation-unit-selector/components/utils/ouLevelUtils/index.d.ts +0 -1
  140. package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector/organisation-unit-selector.component.d.ts +0 -27
  141. package/lib/modules/organisation-unit-selector/containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.d.ts +0 -30
  142. package/lib/modules/organisation-unit-selector/index.d.ts +0 -4
  143. package/lib/modules/organisation-unit-selector/models/index.d.ts +0 -1
  144. package/lib/modules/organisation-unit-selector/models/organisation-unit-config.model.d.ts +0 -13
  145. package/lib/modules/organisation-unit-selector/organisation-unit-selector.module.d.ts +0 -10
  146. package/lib/modules/period-selector/components/FixedPeriodFilter.d.ts +0 -18
  147. package/lib/modules/period-selector/components/PeriodDimension.d.ts +0 -15
  148. package/lib/modules/period-selector/components/PeriodTransfer.d.ts +0 -28
  149. package/lib/modules/period-selector/components/RelativePeriodFilter.d.ts +0 -11
  150. package/lib/modules/period-selector/components/utils/fixedPeriods.d.ts +0 -17
  151. package/lib/modules/period-selector/components/utils/index.d.ts +0 -4
  152. package/lib/modules/period-selector/components/utils/periodTypes.d.ts +0 -19
  153. package/lib/modules/period-selector/components/utils/relativePeriods.d.ts +0 -17
  154. package/lib/modules/period-selector/containers/period-selector/period-selector.component.d.ts +0 -21
  155. package/lib/modules/period-selector/containers/period-selector-modal/period-selector-modal.component.d.ts +0 -16
  156. package/lib/modules/period-selector/index.d.ts +0 -3
  157. package/lib/modules/period-selector/period-selector.module.d.ts +0 -10
  158. package/lib/modules/program-entry-form/index.d.ts +0 -2
  159. package/lib/modules/program-entry-form/models/index.d.ts +0 -3
  160. package/lib/modules/program-entry-form/models/program-entry-form-metadata.d.ts +0 -29
  161. package/lib/modules/program-entry-form/models/program-entry-form-section.model.d.ts +0 -16
  162. package/lib/modules/program-entry-form/models/program-entry-form.config.d.ts +0 -58
  163. package/lib/modules/program-entry-form/program-entry-form.component.d.ts +0 -38
  164. package/lib/modules/program-entry-form/utils/index.d.ts +0 -2
  165. package/lib/modules/program-entry-form/utils/program-entry-form-field.util.d.ts +0 -80
  166. package/lib/modules/program-entry-form/utils/program-entry-form-section.util.d.ts +0 -8
  167. package/lib/modules/react-wrapper/react-wrapper.component.d.ts +0 -17
  168. package/lib/modules/selection-filters-ui/containers/selection-filters-ui/selection-filters-ui.component.d.ts +0 -39
  169. package/lib/modules/selection-filters-ui/index.d.ts +0 -2
  170. package/lib/modules/selection-filters-ui/models/selection-filters-ui.model.d.ts +0 -54
  171. package/lib/modules/selection-filters-ui/selection-filters-ui.module.d.ts +0 -11
  172. package/lib/modules/tracker-form/index.d.ts +0 -2
  173. package/lib/modules/tracker-form/tracker-form.component.d.ts +0 -19
  174. package/lib/modules/tracker-form/tracker-form.module.d.ts +0 -9
  175. package/lib/shared/assets/AssignedCategoriesIcon.d.ts +0 -2
  176. package/lib/shared/assets/DimensionItemIcons/PeriodIcon.d.ts +0 -3
  177. package/lib/shared/components/index.d.ts +0 -1
  178. package/lib/shared/components/transfer-option.component.d.ts +0 -19
  179. package/lib/shared/hooks/dynamic-styles.hook.d.ts +0 -1
  180. package/lib/shared/hooks/index.d.ts +0 -1
  181. package/lib/shared/index.d.ts +0 -4
  182. package/lib/shared/shared.module.d.ts +0 -7
  183. package/lib/shared/styles/DimensionSelector.style.d.ts +0 -2
  184. package/lib/shared/styles/index.d.ts +0 -1
  185. package/lib/shared/utils/axis.d.ts +0 -11
  186. package/lib/shared/utils/axisGetDimension.d.ts +0 -1
  187. package/lib/shared/utils/axisHasDimension.d.ts +0 -1
  188. package/lib/shared/utils/dimension.d.ts +0 -55
  189. package/lib/shared/utils/dimensionGetItems.d.ts +0 -1
  190. package/lib/shared/utils/dimensionIs.d.ts +0 -1
  191. package/lib/shared/utils/dimensionIsEmpty.d.ts +0 -3
  192. package/lib/shared/utils/dimensionIsValid.d.ts +0 -3
  193. package/lib/shared/utils/dimensionSelectorHelper.d.ts +0 -3
  194. package/lib/shared/utils/index.d.ts +0 -11
  195. package/lib/shared/utils/layoutGetAllAxes.d.ts +0 -1
  196. package/lib/shared/utils/layoutGetAllDimensions.d.ts +0 -1
  197. package/lib/shared/utils/layoutGetDimension.d.ts +0 -1
  198. package/lib/shared/utils/layoutReplaceDimension.d.ts +0 -1
  199. package/lib/shared/utils/list.d.ts +0 -1
  200. package/lib/shared/utils/predefinedDimensions.d.ts +0 -67
@@ -1,63 +0,0 @@
1
- export interface FormGroupField {
2
- id: string;
3
- label?: string;
4
- formName?: string;
5
- fieldType: 'ATTRIBUTE' | 'DATA_ELEMENT' | 'ORG_UNIT' | 'ENROLLMENT_DATE' | 'CUSTOM';
6
- disabled?: boolean;
7
- mandatory?: boolean;
8
- fieldOptionsDependsOn?: string;
9
- optionType?: 'ORG_UNIT' | 'PORT_OF_ENTRY' | 'CUSTOM';
10
- hasOptions?: boolean;
11
- valueType?: string;
12
- openFutureDays?: number;
13
- openPreviousDays?: number;
14
- skipSaving?: boolean;
15
- stageId?: string;
16
- trackedEntityInstance?: string;
17
- event?: string;
18
- min?: number | Date | string;
19
- max?: number | Date | string;
20
- optionSet?: any;
21
- translations?: any;
22
- }
23
- interface FormFieldGroup {
24
- id: string;
25
- name: string;
26
- translations?: any;
27
- isFormHorizontal?: boolean;
28
- attributes?: string[] | object[];
29
- dataElements?: string[] | object[];
30
- booleanGroupedDataElements?: string[] | object[];
31
- fields: any[];
32
- repeatableStage?: string;
33
- repeatDependentField?: string;
34
- }
35
- export interface FormSection {
36
- id: string;
37
- name: string;
38
- sectionStateComplete?: boolean;
39
- description?: string;
40
- translations?: any;
41
- fieldGroups: FormFieldGroup[];
42
- }
43
- export interface AddtionalAttributeFilter {
44
- attribute: string;
45
- value: any;
46
- }
47
- export interface FormConfiguration {
48
- id: string;
49
- name: string;
50
- description?: string;
51
- program: string;
52
- topOrgUnit?: string;
53
- trackedEntityType?: string;
54
- autoFilledAttributes?: string[];
55
- reservedAttribute?: string;
56
- sections: FormSection[];
57
- additionalAttributeFilters?: AddtionalAttributeFilter[];
58
- downloadSqlView?: string;
59
- sectionCategories?: Record<string, string[]>;
60
- optionGroups?: string[];
61
- dataElementGroup?: string[];
62
- }
63
- export {};
@@ -1,6 +0,0 @@
1
- export interface FormFieldExtension {
2
- id: string;
3
- accept?: string[];
4
- sizeLimit?: number;
5
- isDataElementUnique?: boolean;
6
- }
@@ -1,15 +0,0 @@
1
- import { IFormField } from './form-field.interface';
2
- export interface IFormFieldGroup {
3
- dataKey?: string;
4
- id: string;
5
- name?: string;
6
- sortOrder?: number;
7
- translations?: any;
8
- isFormHorizontal?: boolean;
9
- attributes?: string[] | object[];
10
- dataElements?: string[] | object[];
11
- booleanGroupedDataElements?: string[] | object[];
12
- fields: IFormField<string>[];
13
- repeatableStage?: string;
14
- repeatDependentField?: string;
15
- }
@@ -1 +0,0 @@
1
- export type FormFieldMetaType = 'DATA_ELEMENT' | 'ATTRIBUTE';
@@ -1,47 +0,0 @@
1
- import { IFieldDropdown } from './field-dropdown.interface';
2
- import { FieldControlType } from './field-control-type.interface';
3
- import { FormFieldMetaType } from './form-field-meta-type.interface';
4
- import { FormFieldExtension } from './form-field-extension.interface';
5
- export interface IFormField<T> {
6
- value?: T | '';
7
- id: string;
8
- code?: string;
9
- key: string;
10
- referenceKey?: string;
11
- label: string;
12
- required: boolean;
13
- order?: number;
14
- controlType: FieldControlType;
15
- type: string;
16
- disabled?: boolean;
17
- options?: IFieldDropdown[];
18
- placeholder?: string;
19
- min?: number | Date | string;
20
- max?: number | Date | string;
21
- maxLength?: number | string;
22
- hidden: boolean;
23
- units?: string;
24
- generated?: boolean;
25
- isDataElement?: boolean;
26
- isAttribute?: boolean;
27
- isOrgUnit?: boolean;
28
- isEnrollmentDate?: boolean;
29
- event?: string;
30
- programStage?: string;
31
- program?: string;
32
- trackedEntityInstance?: string;
33
- trackedEntityType?: string;
34
- hasOptions?: boolean;
35
- dependentField?: any;
36
- fieldOptionsDependsOn?: string;
37
- displayInList?: boolean;
38
- displayInReports?: boolean;
39
- searchable?: boolean;
40
- unique?: boolean;
41
- metaType?: FormFieldMetaType;
42
- stepId?: string;
43
- availableOptionsLabel?: string;
44
- selectedOptionsLabel?: string;
45
- allowFutureDate?: boolean;
46
- extension?: FormFieldExtension;
47
- }
@@ -1,10 +0,0 @@
1
- import { IFormFieldGroup } from './form-field-group.interface';
2
- export interface IFormMetadataSection {
3
- id: string;
4
- name: string;
5
- program?: string;
6
- sectionStateComplete?: boolean;
7
- description?: string;
8
- translations?: any;
9
- fieldGroups: IFormFieldGroup[];
10
- }
@@ -1,11 +0,0 @@
1
- import { IFormField } from './form-field.interface';
2
- import { IFormMetadataSection } from './form-metadata-section.interface';
3
- export interface IFormMetadata {
4
- id: string;
5
- name: string;
6
- description?: string;
7
- fields: IFormField<string>[];
8
- sections: IFormMetadataSection[];
9
- rules: any[];
10
- downloadSqlView?: string;
11
- }
@@ -1,10 +0,0 @@
1
- export * from './form-field.interface';
2
- export * from './field-dropdown.interface';
3
- export * from './field-control-type.interface';
4
- export * from './field-type.interface';
5
- export * from './form-field-meta-type.interface';
6
- export * from './form-configuration.model';
7
- export * from './form-field-group.interface';
8
- export * from './form-metadata-section.interface';
9
- export * from './form-metadata.interface';
10
- export * from './form-field-extension.interface';
@@ -1,5 +0,0 @@
1
- import { FieldControlType } from '../interfaces';
2
- import { FormField } from './form-field.model';
3
- export declare class Boolean extends FormField<string> {
4
- controlType: FieldControlType;
5
- }
@@ -1,5 +0,0 @@
1
- import { FormField } from './form-field.model';
2
- import { FieldControlType } from '../interfaces';
3
- export declare class CheckBox extends FormField<string> {
4
- controlType: FieldControlType;
5
- }
@@ -1,7 +0,0 @@
1
- import { FieldControlType } from '../interfaces';
2
- import { FormField } from './form-field.model';
3
- export declare class DateField extends FormField<string> {
4
- controlType: FieldControlType;
5
- type: string;
6
- constructor(field: Partial<DateField>);
7
- }
@@ -1,4 +0,0 @@
1
- export declare class DateRangeValue {
2
- startDate: string;
3
- endDate: string;
4
- }
@@ -1,6 +0,0 @@
1
- export interface DropdownOption {
2
- key: string;
3
- value: string;
4
- label: string;
5
- order?: number;
6
- }
@@ -1,5 +0,0 @@
1
- import { FormField } from './form-field.model';
2
- import { FieldControlType } from '../interfaces';
3
- export declare class Dropdown extends FormField<string> {
4
- controlType: FieldControlType;
5
- }
@@ -1,5 +0,0 @@
1
- export declare class FieldConfig {
2
- hideLabel?: boolean;
3
- inputWidth: string;
4
- constructor(config?: Partial<FieldConfig>);
5
- }
@@ -1,10 +0,0 @@
1
- import { IFieldDropdown } from '../interfaces';
2
- export declare class FieldDropdown implements IFieldDropdown {
3
- key: string;
4
- value: string;
5
- label: string;
6
- order?: number | undefined;
7
- constructor(params: IFieldDropdown);
8
- toJson(): IFieldDropdown;
9
- static getDropdownOptions(field: any, locale?: string): FieldDropdown[];
10
- }
@@ -1,8 +0,0 @@
1
- export interface FieldsData {
2
- [uuid: string]: FieldData;
3
- }
4
- export interface FieldData {
5
- uuid: string;
6
- latest: any;
7
- history: any[];
8
- }
@@ -1,10 +0,0 @@
1
- import { FieldConfig } from './field-config.model';
2
- export type FormDirection = 'horizontal' | 'vertical';
3
- export declare class FormConfig {
4
- direction: FormDirection;
5
- showSaveButton: boolean;
6
- formName?: string;
7
- fieldConfig: FieldConfig;
8
- constructor(config?: Partial<FormConfig>);
9
- get directionClassName(): "form-vertical" | "form-horizontal";
10
- }
@@ -1,23 +0,0 @@
1
- import { IFormField, IFormFieldGroup } from '../interfaces';
2
- import { FormFieldExtension } from '../interfaces/form-field-extension.interface';
3
- export declare class FormFieldGroup implements IFormFieldGroup {
4
- private params;
5
- id: string;
6
- name: string;
7
- translations?: any;
8
- isFormHorizontal?: boolean | undefined;
9
- attributes?: string[] | object[] | undefined;
10
- dataElements?: string[] | object[] | undefined;
11
- booleanGroupedDataElements?: string[] | object[] | undefined;
12
- repeatableStage?: string | undefined;
13
- repeatDependentField?: string | undefined;
14
- dataKey?: string | undefined;
15
- constructor(params: {
16
- formFieldGroup: Partial<FormFieldGroup>;
17
- fieldMetaData: Record<string, unknown>[];
18
- locale?: string;
19
- formFieldExtensions?: FormFieldExtension[];
20
- });
21
- get fields(): IFormField<string>[];
22
- toJson(): IFormFieldGroup;
23
- }
@@ -1,50 +0,0 @@
1
- import { FieldControlType, FormFieldMetaType, IFormField, IFieldDropdown, FormFieldExtension } from '../interfaces';
2
- interface FormFieldFunction<T> {
3
- setMax: (field: Partial<IFormField<T>>) => string | number | Date | undefined;
4
- }
5
- export declare class FormField<T> implements IFormField<T>, FormFieldFunction<T> {
6
- value?: T | '';
7
- id: string;
8
- code?: string;
9
- key: string;
10
- referenceKey?: string;
11
- label: string;
12
- required: boolean;
13
- order?: number;
14
- controlType: FieldControlType;
15
- type: string;
16
- disabled?: boolean;
17
- options?: IFieldDropdown[];
18
- placeholder?: string;
19
- min?: number | Date | string;
20
- max?: number | Date | string;
21
- maxLength?: number | string;
22
- hidden: boolean;
23
- units?: string;
24
- generated?: boolean;
25
- unique?: boolean;
26
- isDataElement?: boolean;
27
- isAttribute?: boolean;
28
- isOrgUnit?: boolean;
29
- isEnrollmentDate?: boolean;
30
- event?: string;
31
- programStage?: string;
32
- program?: string;
33
- trackedEntityInstance?: string;
34
- trackedEntityType?: string;
35
- hasOptions?: boolean;
36
- dependentField?: any;
37
- fieldOptionsDependsOn?: string;
38
- displayInList?: boolean;
39
- displayInReports?: boolean;
40
- searchable?: boolean;
41
- metaType?: FormFieldMetaType;
42
- stepId?: string;
43
- availableOptionsLabel?: string;
44
- selectedOptionsLabel?: string;
45
- allowFutureDate?: boolean;
46
- extension?: FormFieldExtension;
47
- constructor(options?: Partial<FormField<T>>);
48
- setMax(field: Partial<FormField<T>>): string | number | Date | undefined;
49
- }
50
- export {};
@@ -1,35 +0,0 @@
1
- import { Option, ProgramRule, ProgramRuleAction, ProgramRuleVariable } from '@iapps/d2-web-sdk';
2
- interface JsonTransformer<T> {
3
- toJson: () => T;
4
- }
5
- export interface IMetadataRuleAction {
6
- field: string;
7
- actionType: string;
8
- assignedData?: string;
9
- displayedContent?: string;
10
- options?: Partial<Option>[];
11
- }
12
- export declare class MetadataRuleAction implements IMetadataRuleAction, JsonTransformer<IMetadataRuleAction> {
13
- private ruleAction;
14
- private ruleVariables;
15
- constructor(ruleAction: ProgramRuleAction, ruleVariables: ProgramRuleVariable[]);
16
- get field(): string;
17
- get actionType(): string;
18
- get assignedData(): string | undefined;
19
- get displayedContent(): string | undefined;
20
- get options(): Partial<Option>[] | undefined;
21
- toJson(): IMetadataRuleAction;
22
- }
23
- export interface IMetadataRule {
24
- actions: IMetadataRuleAction[];
25
- condition: string;
26
- }
27
- export declare class MetadataRule implements IMetadataRule, JsonTransformer<IMetadataRule> {
28
- private rule;
29
- private ruleVariables;
30
- constructor(rule: ProgramRule, ruleVariables: ProgramRuleVariable[]);
31
- get actions(): MetadataRuleAction[];
32
- get condition(): string;
33
- toJson(): IMetadataRule;
34
- }
35
- export {};
@@ -1,33 +0,0 @@
1
- import { IFormMetadataSection, IFormFieldGroup, FormFieldExtension } from '../interfaces';
2
- export declare class FormMetadataSection implements IFormMetadataSection {
3
- private params;
4
- id: string;
5
- name: string;
6
- program?: string | undefined;
7
- sectionStateComplete?: boolean | undefined;
8
- description?: string | undefined;
9
- translations?: any;
10
- inheritedAttributes: any[];
11
- constructor(params: {
12
- section: Partial<IFormMetadataSection>;
13
- program: Record<string, unknown>;
14
- locale?: string;
15
- excludeInheritedAttributes?: boolean;
16
- formFieldExtensions?: FormFieldExtension[];
17
- });
18
- get attributes(): {
19
- sortOrder: unknown;
20
- mandatory: unknown;
21
- allowFutureDate: unknown;
22
- trackedEntityType: unknown;
23
- metaType: string;
24
- }[];
25
- get dataElements(): {
26
- mandatory: unknown;
27
- allowFutureDate: unknown;
28
- stepId: unknown;
29
- metaType: string;
30
- }[];
31
- get fieldGroups(): IFormFieldGroup[];
32
- toJson(): IFormMetadataSection;
33
- }
@@ -1,26 +0,0 @@
1
- import { IMetadataRule } from './form-metadata-rule.model';
2
- import { Program } from '@iapps/d2-web-sdk';
3
- import { IFormField, IFormMetadata, IFormMetadataSection, FormFieldExtension } from '../interfaces';
4
- export declare class FormMetaData implements IFormMetadata {
5
- #private;
6
- private params;
7
- id: string;
8
- name: string;
9
- description?: string | undefined;
10
- downloadSqlView?: string | undefined;
11
- constructor(params: {
12
- programs: Program[];
13
- locale?: string;
14
- splitRegistrationSection?: boolean;
15
- includeAllProgramStages?: boolean;
16
- disableEnrollmentDate?: boolean;
17
- excludeInheritedAttributes?: boolean;
18
- programStage?: string;
19
- customFormMetaData?: Partial<FormMetaData>;
20
- formFieldExtensions?: FormFieldExtension[];
21
- });
22
- get sections(): IFormMetadataSection[];
23
- get fields(): IFormField<string>[];
24
- get rules(): IMetadataRule[];
25
- toJson(): IFormMetadata;
26
- }
@@ -1,19 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { IFormField } from '../interfaces';
3
- export declare class FormValue {
4
- form: FormGroup;
5
- fields: IFormField<string>[];
6
- changedField?: IFormField<string>;
7
- constructor(form: FormGroup, fields: IFormField<string>[], changedField?: IFormField<string>);
8
- get isValid(): boolean;
9
- clear(): void;
10
- getValues(options?: {
11
- valueOnly?: boolean;
12
- }): {
13
- [id: string]: {
14
- id: string;
15
- value: string;
16
- options: any[];
17
- };
18
- };
19
- }
@@ -1,14 +0,0 @@
1
- import { DropdownOption } from './dropdown-option.model';
2
- import { FormField } from './form-field.model';
3
- export interface EocForm {
4
- id: string;
5
- uuid: string;
6
- name: string;
7
- setMembers: EocForm[];
8
- options?: DropdownOption[];
9
- dataType?: string;
10
- formClass: string;
11
- formField?: FormField<string>;
12
- formFields: FormField<string>[];
13
- concept?: any;
14
- }
@@ -1,17 +0,0 @@
1
- export * from './boolean.model';
2
- export * from './check-box.model';
3
- export * from './date-field.model';
4
- export * from './dropdown-option.model';
5
- export * from './dropdown.model';
6
- export * from './form-field.model';
7
- export * from './fields-data.model';
8
- export * from './field-config.model';
9
- export * from './date-range-value.model';
10
- export * from './field-dropdown.model';
11
- export * from './form-config.model';
12
- export * from './form-field-group.model';
13
- export * from './form-metadata-rule.model';
14
- export * from './form-metadata-section.model';
15
- export * from './form-metadata.model';
16
- export * from './form-value.model';
17
- export * from './form.model';
@@ -1,29 +0,0 @@
1
- import { EffectRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
2
- import { IFormField } from '../../interfaces';
3
- import { IMetadataRule, IMetadataRuleAction } from '../../models';
4
- import { CustomOrgUnitConfig } from '../../components/org-unit-form-field.component';
5
- import * as i0 from "@angular/core";
6
- export declare class BaseFormWrapperComponent implements OnDestroy {
7
- #private;
8
- ngZone: NgZone;
9
- name: import("@angular/core").InputSignal<string>;
10
- fields: import("@angular/core").InputSignal<IFormField<string>[]>;
11
- rules: import("@angular/core").InputSignal<IMetadataRule[]>;
12
- dataValues: import("@angular/core").InputSignal<Record<string, unknown>>;
13
- dataId: import("@angular/core").InputSignal<string>;
14
- customOrgUnitRoots: import("@angular/core").InputSignal<CustomOrgUnitConfig[]>;
15
- ruleActions: import("@angular/core").WritableSignal<IMetadataRuleAction[]>;
16
- isFormValid: import("@angular/core").WritableSignal<boolean>;
17
- formSave: EventEmitter<Record<string, unknown>>;
18
- formUpdate: EventEmitter<Record<string, unknown>>;
19
- formCancel: EventEmitter<void>;
20
- formValidityUpdate: EventEmitter<boolean>;
21
- ruleProcessor: EffectRef;
22
- constructor();
23
- updateDataValues(dataValues: Record<string, unknown>): void;
24
- updateFormValidity(isFormValid: boolean): void;
25
- protected executeRules(): void;
26
- ngOnDestroy(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormWrapperComponent, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormWrapperComponent, never, never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "rules": { "alias": "rules"; "required": false; "isSignal": true; }; "dataValues": { "alias": "dataValues"; "required": false; "isSignal": true; }; "dataId": { "alias": "dataId"; "required": false; "isSignal": true; }; "customOrgUnitRoots": { "alias": "customOrgUnitRoots"; "required": false; "isSignal": true; }; }, { "formSave": "formSave"; "formUpdate": "formUpdate"; "formCancel": "formCancel"; "formValidityUpdate": "formValidityUpdate"; }, never, never, true, never>;
29
- }
@@ -1 +0,0 @@
1
- export * from './base-form-wrapper.component';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,4 +0,0 @@
1
- import { FieldControlType } from '../interfaces';
2
- export declare class FieldControlTypeUtil {
3
- static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
4
- }
@@ -1,3 +0,0 @@
1
- export declare class FormFieldTypeUtil {
2
- static getFieldType(valueType: string): "image" | "org-unit" | "file" | "text" | "number";
3
- }
@@ -1,9 +0,0 @@
1
- import { FieldControlType } from '../interfaces';
2
- import { DropdownOption } from '../models';
3
- export declare class FieldUtil {
4
- static getFieldDropdownOptions(field: any): DropdownOption[];
5
- static sanitizeOptions(options: any[]): any;
6
- static getFieldType(valueType: string): "date" | "org-unit" | "file" | "text" | "number" | "email" | "tel";
7
- static getFieldControlType(valueType: string, hasOptions: boolean): FieldControlType;
8
- static getOptionEntities?(options: any[]): any;
9
- }
@@ -1,4 +0,0 @@
1
- import { FormValue } from '../models';
2
- export declare class FormValueUtil {
3
- static getFormDataEntities(formValueEntities: Record<string, FormValue>): {};
4
- }
@@ -1,9 +0,0 @@
1
- import { UntypedFormGroup } from '@angular/forms';
2
- import { FormField } from '../models';
3
- import { IFormField } from '../interfaces';
4
- export declare class FormUtil {
5
- static getFormGroup(fields: IFormField<string>[], dataEntities: any): UntypedFormGroup;
6
- static getFieldValue(field: IFormField<string>, dataEntities: Record<string, any>): any;
7
- static getFormFields(fields: any[]): FormField<string>[];
8
- static createField(id: string, label: string, required: boolean, controlType: 'textbox' | 'dropdown' | 'textarea' | 'transfer' | 'search' | 'file', disabled?: boolean, placeholder?: string, options?: Array<any>): FormField<string>;
9
- }
@@ -1,6 +0,0 @@
1
- export * from './field.util';
2
- export * from './field-control-type.util';
3
- export * from './field-type.util';
4
- export * from './form.util';
5
- export * from './form-value.util';
6
- export * from './translation.util';
@@ -1,3 +0,0 @@
1
- export declare class TranslationUtil {
2
- static getTranslatedFormName(field: Record<string, unknown>, locale?: string): string;
3
- }
@@ -1,11 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
3
- import { ReactWrapperModule } from '../react-wrapper/react-wrapper.component';
4
- import * as i0 from "@angular/core";
5
- export declare class HeaderBarComponent extends ReactWrapperModule {
6
- private httpClient;
7
- constructor(elementRef: ElementRef<HTMLElement>, httpClient: NgxDhis2HttpClientService);
8
- ngAfterViewInit(): Promise<void>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderBarComponent, "ng-dhis2-ui-header-bar", never, {}, {}, never, never, false, never>;
11
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./header-bar.component.tsx";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../shared/shared.module";
5
- export declare class HeaderBarModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderBarModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderBarModule, [typeof i1.HeaderBarComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule], [typeof i1.HeaderBarComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<HeaderBarModule>;
9
- }
@@ -1,2 +0,0 @@
1
- export * from './header-bar.module';
2
- export * from './header-bar.component';
@@ -1,10 +0,0 @@
1
- export declare class HeaderBarApp {
2
- name: string;
3
- namespace: string;
4
- defaultAction: string;
5
- displayName: string;
6
- icon: string;
7
- description: string;
8
- constructor(module: Record<string, unknown>);
9
- getPath(item: string): string;
10
- }
@@ -1,16 +0,0 @@
1
- import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
2
- import { Observable } from 'rxjs';
3
- import { HeaderBarApp } from './header-bar-app.model';
4
- import { HeaderBarNotification } from './header-bar-notification.model';
5
- export declare class HeaderBarData {
6
- private httpClient;
7
- apps: HeaderBarApp[];
8
- title: string;
9
- help: any;
10
- notifications: HeaderBarNotification;
11
- user: Record<string, unknown>;
12
- constructor(httpClient: NgxDhis2HttpClientService);
13
- getApps(): Observable<HeaderBarApp[]>;
14
- getNotifications(): Observable<HeaderBarNotification | null>;
15
- get(): Observable<HeaderBarData | null>;
16
- }
@@ -1,5 +0,0 @@
1
- export declare class HeaderBarNotification {
2
- unreadInterpretations?: number;
3
- unreadMessageConversations?: number;
4
- constructor(notification: Record<string, number>);
5
- }
@@ -1,2 +0,0 @@
1
- export * from './header-bar-data.model';
2
- export * from './header-bar-app.model';