@iapps/ng-dhis2-ui 1.2.102 → 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 +658 -376
  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,262 +0,0 @@
1
- import { DHIS2Event, Pager, TrackedEntityInstance } from '@iapps/d2-web-sdk';
2
- export interface PagerObject {
3
- page: number;
4
- pageSize: number;
5
- total: number;
6
- pageCount: number;
7
- }
8
- export interface Attribute {
9
- updatedAt: string;
10
- code: string;
11
- displayName: string;
12
- createdAt: string;
13
- valueType: string;
14
- attribute: string;
15
- value: string;
16
- }
17
- export interface EventsResponse {
18
- events: DHIS2Event | DHIS2Event[];
19
- pager: Pager;
20
- }
21
- export interface Event {
22
- dueDate: string;
23
- program: string;
24
- event: string;
25
- programStage?: string;
26
- orgUnit: string;
27
- enrollment: string;
28
- trackedEntity: string;
29
- enrollmentStatus: string;
30
- orgUnitName: string;
31
- status: string;
32
- eventDate: string;
33
- attributeCategoryOptions: string;
34
- lastUpdated: string;
35
- created: string;
36
- completedDate: string;
37
- followup: boolean;
38
- deleted: boolean;
39
- attributeOptionCombo: string;
40
- createdAt: string;
41
- updatedAt: string;
42
- completedBy: string;
43
- createdBy: CreatedByUserInfo;
44
- updatedBy: LastUpdatedByUserInfo;
45
- lastUpdatedByUserInfo: LastUpdatedByUserInfo;
46
- createdByUserInfo: CreatedByUserInfo;
47
- dataValues: DataValue[];
48
- notes: any[];
49
- relationships: any[];
50
- followUp: boolean;
51
- scheduledAt: string;
52
- }
53
- export interface DataValue {
54
- lastUpdated: string;
55
- created: string;
56
- dataElement: string;
57
- value: string;
58
- providedElsewhere: boolean;
59
- createdAt: string;
60
- updatedAt: string;
61
- }
62
- export interface Enrollment {
63
- program: string;
64
- lastUpdated: string;
65
- createdAt: string;
66
- updatedAt: string;
67
- orgUnit: string;
68
- enrollment: string;
69
- trackedEntity: string;
70
- trackedEntityType: string;
71
- orgUnitName: string;
72
- enrollmentDate: string;
73
- enrolledAt: string;
74
- occurredAt: string;
75
- followUp: boolean;
76
- deleted: boolean;
77
- completedBy?: string;
78
- completedAt?: string;
79
- incidentDate: string;
80
- status: string;
81
- updatedBy: LastUpdatedByUserInfo;
82
- createdBy: CreatedByUserInfo;
83
- notes: any[];
84
- relationships: any[];
85
- events: Event[];
86
- attributes: Attribute[];
87
- }
88
- export interface TrackedEntity {
89
- attributes: Attribute[];
90
- enrollments: Enrollment[];
91
- trackedEntity: string;
92
- trackedEntityType: string;
93
- createdAt: string;
94
- createdAtClient: string;
95
- updatedAt: string;
96
- orgUnit: string;
97
- inactive: boolean;
98
- deleted: boolean;
99
- potentialDuplicate: boolean;
100
- programOwners: ProgramOwner[];
101
- }
102
- export interface ProgramOwner {
103
- orgUnit: string;
104
- trackedEntity: string;
105
- program: string;
106
- }
107
- export interface TrackedEntityInstancesResponse {
108
- trackedEntityInstances: TrackedEntityInstance | TrackedEntityInstance[];
109
- trackedEntity?: TrackedEntity[];
110
- pager: Pager;
111
- orgUnitsMap?: Map<string, string>;
112
- }
113
- export interface TrackedEntityResponse {
114
- trackedEntities: TrackedEntity[];
115
- instances?: TrackedEntity[];
116
- pager: Pager;
117
- orgUnitsMap?: Map<string, string>;
118
- }
119
- export interface EnrollmentsResponse {
120
- enrollments: Enrollment[];
121
- pager: Pager;
122
- }
123
- export interface ProgramStageDataElement {
124
- dataElement: DataElement;
125
- }
126
- export interface DataElement {
127
- code: string;
128
- name: string;
129
- created: string;
130
- lastUpdated: string;
131
- translations: any[];
132
- favorites: any[];
133
- shortName: string;
134
- description: string;
135
- formName: string;
136
- dimensionItemType: string;
137
- legendSets: any[];
138
- aggregationType: string;
139
- valueType: string;
140
- domainType: string;
141
- dataSetElements: any[];
142
- aggregationLevels: any[];
143
- zeroIsSignificant: boolean;
144
- optionSetValue: boolean;
145
- dimensionItem: string;
146
- displayShortName: string;
147
- displayDescription: string;
148
- displayName: string;
149
- favorite: boolean;
150
- displayFormName: string;
151
- id: string;
152
- attributeValues: any[];
153
- dataElementGroups: any[];
154
- optionSet?: OptionSet;
155
- }
156
- export interface ProgramStage {
157
- id: string;
158
- name: string;
159
- programStageDataElements: ProgramStageDataElement[];
160
- }
161
- export interface ProgramMetadata {
162
- programType: string;
163
- programStages: ProgramStage[];
164
- organisationUnits: {
165
- id: string;
166
- name: string;
167
- }[];
168
- programTrackedEntityAttributes: ProgramTrackedEntityAttribute[];
169
- orgUnitLabel: string;
170
- }
171
- export interface LineListResponse {
172
- data: EventsResponse | TrackedEntityInstancesResponse | EnrollmentsResponse | TrackedEntityResponse | TrackedEntityInstance | TrackedEntityInstance[];
173
- }
174
- export interface TableRow {
175
- [key: string]: {
176
- value: TrackedEntityInstance | DHIS2Event | string | number;
177
- style?: string;
178
- };
179
- index: {
180
- value: number;
181
- style?: string;
182
- };
183
- }
184
- export interface ColumnDefinition {
185
- label: string;
186
- key: string;
187
- valueType?: string;
188
- options?: OptionSet;
189
- }
190
- export interface LastUpdatedByUserInfo {
191
- uid: string;
192
- firstName: string;
193
- surname: string;
194
- username: string;
195
- }
196
- export interface CreatedByUserInfo {
197
- uid: string;
198
- firstName: string;
199
- surname: string;
200
- username: string;
201
- }
202
- export interface ProgramTrackedEntityAttribute {
203
- access: {
204
- read: boolean;
205
- update: boolean;
206
- externalize: boolean;
207
- delete: boolean;
208
- write: boolean;
209
- };
210
- attributeValues: any[];
211
- created: string;
212
- displayInList: boolean;
213
- displayName: string;
214
- displayShortName: string;
215
- externalAccess: boolean;
216
- favorite: boolean;
217
- favorites: any[];
218
- id: string;
219
- lastUpdated: string;
220
- mandatory: boolean;
221
- name: string;
222
- program: {
223
- id: string;
224
- };
225
- programTrackedEntityAttributeGroups: any[];
226
- renderOptionsAsRadio: boolean;
227
- searchable: boolean;
228
- sharing: {
229
- userGroups: any;
230
- external: boolean;
231
- users: any;
232
- };
233
- sortOrder: string;
234
- trackedEntityAttribute: TrackedEntityAttribute;
235
- translations: any[];
236
- userAccesses: any[];
237
- userGroupAccesses: any[];
238
- valueType: string;
239
- }
240
- export interface TrackedEntityAttribute {
241
- code: string;
242
- name: string;
243
- formName: string;
244
- shortName: string;
245
- valueType: string;
246
- optionSetValue: boolean;
247
- id: string;
248
- optionSet?: OptionSet;
249
- generated: boolean;
250
- unique: boolean;
251
- }
252
- export interface OptionSet {
253
- name: string;
254
- options: Option[];
255
- id: string;
256
- }
257
- export interface Option {
258
- code?: string;
259
- name: string;
260
- id: string;
261
- value?: string;
262
- }
@@ -1,13 +0,0 @@
1
- import { NgxDhis2HttpClientService } from '@iapps/ngx-dhis2-http-client';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class LineListService {
5
- private httpClient;
6
- constructor(httpClient: NgxDhis2HttpClientService);
7
- /**
8
- * Fetch orgUnit names for given orgUnit IDs
9
- */
10
- fetchOrgUnits(orgUnitIds: string[]): Observable<Map<string, string>>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<LineListService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<LineListService>;
13
- }
@@ -1,6 +0,0 @@
1
- import { Program } from '@iapps/d2-web-sdk';
2
- import { LineListResponse, ColumnDefinition, TableRow } from '../models/line-list.models';
3
- export declare const getEvents: (response: LineListResponse, programStageId: string, pager: any, metaData: Program) => {
4
- columns: ColumnDefinition[];
5
- data: TableRow[];
6
- };
@@ -1,9 +0,0 @@
1
- import { Program } from '@iapps/d2-web-sdk';
2
- import { LineListResponse, ColumnDefinition, TableRow } from '../models/line-list.models';
3
- export declare const getTrackedEntityTableData: (response: LineListResponse, programId: string, pager: any, metaData: Program, searcheableDataElements: string[]) => {
4
- columns: ColumnDefinition[];
5
- data: TableRow[];
6
- filteredEntityColumns: ColumnDefinition[];
7
- orgUnitLabel: string;
8
- };
9
- export declare const addActionsColumn: (columns: ColumnDefinition[], actionOptions?: any[]) => ColumnDefinition[];
@@ -1,28 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare const OrgUnitDimension: {
4
- ({ roots, selected, onSelect, hideGroupSelect, hideLevelSelect, hideUserOrgUnits, allowSingleSelection, warning, orgUnitGroupPromise, orgUnitLevelPromise, }: any): React.JSX.Element;
5
- defaultProps: {
6
- hideGroupSelect: boolean;
7
- hideLevelSelect: boolean;
8
- hideUserOrgUnits: boolean;
9
- allowSingleSelection: boolean;
10
- };
11
- propTypes: {
12
- hideGroupSelect: PropTypes.Requireable<boolean>;
13
- hideLevelSelect: PropTypes.Requireable<boolean>;
14
- hideUserOrgUnits: PropTypes.Requireable<boolean>;
15
- allowSingleSelection: PropTypes.Requireable<boolean>;
16
- roots: PropTypes.Requireable<string[]>;
17
- selected: PropTypes.Requireable<PropTypes.InferProps<{
18
- id: PropTypes.Validator<string>;
19
- name: PropTypes.Validator<string>;
20
- path: PropTypes.Requireable<string>;
21
- }>[]>;
22
- warning: PropTypes.Requireable<string>;
23
- onSelect: PropTypes.Requireable<(...args: any[]) => any>;
24
- orgUnitGroupPromise: PropTypes.Requireable<any>;
25
- orgUnitLevelPromise: PropTypes.Requireable<any>;
26
- };
27
- };
28
- export default OrgUnitDimension;
@@ -1,2 +0,0 @@
1
- export * from './OrgUnitDimension';
2
- export * from './utils';
@@ -1 +0,0 @@
1
- export declare const styles: string;
@@ -1,2 +0,0 @@
1
- export * from './ouIdHelper';
2
- export * from './ouLevelUtils';
@@ -1,10 +0,0 @@
1
- export declare const USER_ORG_UNIT = "USER_ORGUNIT";
2
- export declare const USER_ORG_UNIT_CHILDREN = "USER_ORGUNIT_CHILDREN";
3
- export declare const USER_ORG_UNIT_GRANDCHILDREN = "USER_ORGUNIT_GRANDCHILDREN";
4
- export declare const ouIdHelper: Readonly<{
5
- addLevelPrefix: (id: string) => string;
6
- addGroupPrefix: (id: string) => string;
7
- removePrefix: (id: string) => string;
8
- hasGroupPrefix: (id: string) => boolean;
9
- hasLevelPrefix: (id: string) => boolean;
10
- }>;
@@ -1 +0,0 @@
1
- export declare const convertOuLevelsToUids: (ouLevels: any, layout: any) => any;
@@ -1,27 +0,0 @@
1
- import { ElementRef, EventEmitter, NgZone } from '@angular/core';
2
- import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
3
- import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
4
- import * as i0 from "@angular/core";
5
- type OrganisationUnitSelectionEvent = {
6
- dimensionId: string;
7
- items: Record<string, unknown>[];
8
- };
9
- export declare class OrganisationUnitSelectorComponent extends ReactWrapperModule {
10
- private ngZone;
11
- d2: import("@iapps/d2-web-sdk").D2Web;
12
- selectedOrgUnits: any[];
13
- orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
14
- selectOrgUnits: EventEmitter<any>;
15
- props: Record<string, unknown>;
16
- constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
17
- ngAfterViewInit(): Promise<void>;
18
- private getAppConfig;
19
- getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
20
- getRootOrgUnits(): Promise<string[]>;
21
- getOrgUnitGroups(): Promise<any>;
22
- getOrgUnitLevels(): Promise<any>;
23
- onSelectItems(selectionEvent: OrganisationUnitSelectionEvent): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<OrganisationUnitSelectorComponent, "ng-dhis2-ui-org-unit-selector", never, { "selectedOrgUnits": { "alias": "selectedOrgUnits"; "required": false; }; "orgUnitSelectionConfig": { "alias": "orgUnitSelectionConfig"; "required": false; }; }, { "selectOrgUnits": "selectOrgUnits"; }, never, never, false, never>;
26
- }
27
- export {};
@@ -1,30 +0,0 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
3
- import { OrganisationUnitSelectionConfig, OrganisationUnitSelectionUsageType } from '../../models';
4
- import * as i0 from "@angular/core";
5
- type OrganisationUnitSelectionEvent = {
6
- dimensionId: string;
7
- items: Record<string, unknown>[];
8
- };
9
- export declare class OrganisationUnitSelectorModalComponent extends ReactWrapperModule {
10
- d2: import("@iapps/d2-web-sdk").D2Web;
11
- selectedOrgUnits: any[];
12
- orgUnitSelectionConfig: OrganisationUnitSelectionConfig;
13
- selectOrgUnits: EventEmitter<any>;
14
- cancel: EventEmitter<any>;
15
- confirm: EventEmitter<any>;
16
- props: Record<string, unknown>;
17
- constructor(elementRef: ElementRef<HTMLElement>);
18
- ngAfterViewInit(): Promise<void>;
19
- onCancel(): void;
20
- onConfirm(selectedItems: any[]): void;
21
- private getAppConfig;
22
- getOrgUnitAttributeByUsage(usageType: OrganisationUnitSelectionUsageType): "organisationUnits" | "dataViewOrganisationUnits";
23
- getRootOrgUnits(): Promise<string[]>;
24
- getOrgUnitGroups(): Promise<any>;
25
- getOrgUnitLevels(): Promise<any>;
26
- onSelectItems(selectionEvent: OrganisationUnitSelectionEvent): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorModalComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<OrganisationUnitSelectorModalComponent, "ng-dhis2-ui-org-unit-selector-modal", never, { "selectedOrgUnits": { "alias": "selectedOrgUnits"; "required": false; }; "orgUnitSelectionConfig": { "alias": "orgUnitSelectionConfig"; "required": false; }; }, { "selectOrgUnits": "selectOrgUnits"; "cancel": "cancel"; "confirm": "confirm"; }, never, never, false, never>;
29
- }
30
- export {};
@@ -1,4 +0,0 @@
1
- export * from './organisation-unit-selector.module';
2
- export { OrganisationUnitSelectorComponent } from './containers/organisation-unit-selector/organisation-unit-selector.component';
3
- export { OrganisationUnitSelectorModalComponent } from './containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal';
4
- export * from './models';
@@ -1 +0,0 @@
1
- export * from './organisation-unit-config.model';
@@ -1,13 +0,0 @@
1
- export type OrganisationUnitSelectionUsageType = 'DATA_ENTRY' | 'DATA_VIEW';
2
- export declare class OrganisationUnitSelectionConfig {
3
- hideGroupSelect: boolean;
4
- hideLevelSelect: boolean;
5
- hideUserOrgUnits: boolean;
6
- usageType: OrganisationUnitSelectionUsageType;
7
- minLevel?: number;
8
- allowSingleSelection?: boolean;
9
- batchSize?: number;
10
- additionalQueryFields?: string[];
11
- allowCaching?: boolean;
12
- constructor(params?: Partial<OrganisationUnitSelectionConfig>);
13
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./containers/organisation-unit-selector/organisation-unit-selector.component.tsx";
3
- import * as i2 from "./containers/organisation-unit-selector-modal/organisation-unit-selector-modal.component-modal.tsx";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../../shared/shared.module";
6
- export declare class OrganisationUnitSelectorModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationUnitSelectorModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<OrganisationUnitSelectorModule, [typeof i1.OrganisationUnitSelectorComponent, typeof i2.OrganisationUnitSelectorModalComponent], [typeof i3.CommonModule, typeof i4.SharedDhis2UiModule], [typeof i1.OrganisationUnitSelectorComponent, typeof i2.OrganisationUnitSelectorModalComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<OrganisationUnitSelectorModule>;
10
- }
@@ -1,18 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare const FixedPeriodFilter: {
4
- ({ allowedPeriodTypes, excludedPeriodTypes, currentPeriodType, currentYear, onSelectPeriodType, onSelectYear, dataTest, }: any): React.JSX.Element;
5
- defaultProps: {
6
- excludedPeriodTypes: any[];
7
- };
8
- propTypes: {
9
- currentPeriodType: PropTypes.Validator<string>;
10
- currentYear: PropTypes.Validator<string>;
11
- onSelectPeriodType: PropTypes.Validator<(...args: any[]) => any>;
12
- onSelectYear: PropTypes.Validator<(...args: any[]) => any>;
13
- allowedPeriodTypes: PropTypes.Requireable<string[]>;
14
- dataTest: PropTypes.Requireable<string>;
15
- excludedPeriodTypes: PropTypes.Requireable<string[]>;
16
- };
17
- };
18
- export default FixedPeriodFilter;
@@ -1,15 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare const PeriodDimension: {
4
- ({ onSelect, selectedPeriods, rightFooter, excludedPeriodTypes, systemInfo, }: any): React.JSX.Element;
5
- propTypes: {
6
- onSelect: PropTypes.Validator<(...args: any[]) => any>;
7
- excludedPeriodTypes: PropTypes.Requireable<string[]>;
8
- rightFooter: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
- selectedPeriods: PropTypes.Requireable<any[]>;
10
- systemInfo: PropTypes.Requireable<object>;
11
- };
12
- defaultProps: {
13
- selectedPeriods: any[];
14
- };
15
- };
@@ -1,28 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare const PeriodTransfer: {
4
- ({ onSelect, dataTest, initialSelectedPeriods, rightFooter, excludedPeriodTypes, periodsSettings, }: any): React.JSX.Element;
5
- defaultProps: {
6
- initialSelectedPeriods: any[];
7
- excludedPeriodTypes: any[];
8
- periodsSettings: {
9
- calendar: string;
10
- locale: string;
11
- };
12
- };
13
- propTypes: {
14
- onSelect: PropTypes.Validator<(...args: any[]) => any>;
15
- dataTest: PropTypes.Requireable<string>;
16
- excludedPeriodTypes: PropTypes.Requireable<string[]>;
17
- initialSelectedPeriods: PropTypes.Requireable<PropTypes.InferProps<{
18
- id: PropTypes.Requireable<string>;
19
- name: PropTypes.Requireable<string>;
20
- }>[]>;
21
- periodsSettings: PropTypes.Requireable<PropTypes.InferProps<{
22
- calendar: PropTypes.Requireable<string>;
23
- locale: PropTypes.Requireable<string>;
24
- }>>;
25
- rightFooter: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
- };
27
- };
28
- export default PeriodTransfer;
@@ -1,11 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare const RelativePeriodFilter: {
4
- ({ currentFilter, onSelectFilter, dataTest, excludedPeriodTypes, }: any): React.JSX.Element;
5
- propTypes: {
6
- currentFilter: PropTypes.Validator<string>;
7
- onSelectFilter: PropTypes.Validator<(...args: any[]) => any>;
8
- dataTest: PropTypes.Requireable<string>;
9
- excludedPeriodTypes: PropTypes.Requireable<string[]>;
10
- };
11
- };
@@ -1,17 +0,0 @@
1
- export declare const getFixedPeriodsOptionsById: (id: string, periodSettings?: any) => {
2
- id: string;
3
- getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
4
- name: any;
5
- };
6
- export declare const getFixedPeriodsOptions: () => {
7
- id: string;
8
- getPeriods: (config: any) => import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
9
- name: any;
10
- }[];
11
- export declare const getYearOffsetFromNow: (yearStr: any) => number;
12
- export declare const parsePeriodCode: (code: any, allowedTypes: any) => {
13
- id: string;
14
- name: any;
15
- year: any;
16
- options: import("@dhis2/multi-calendar-dates/build/types/period-calculation/fixed-periods").FixedPeriod[];
17
- };
@@ -1,4 +0,0 @@
1
- export declare const filterPeriodTypesById: (allPeriodTypes?: any[], excludedPeriodTypes?: any[]) => any[];
2
- export * from './relativePeriods';
3
- export * from './fixedPeriods';
4
- export * from './periodTypes';
@@ -1,19 +0,0 @@
1
- export declare const DAILY = "DAILY";
2
- export declare const WEEKLY = "WEEKLY";
3
- export declare const WEEKLYWED = "WEEKLYWED";
4
- export declare const WEEKLYTHU = "WEEKLYTHU";
5
- export declare const WEEKLYSAT = "WEEKLYSAT";
6
- export declare const WEEKLYSUN = "WEEKLYSUN";
7
- export declare const WEEKS_THIS_YEAR = "WEEKS_THIS_YEAR";
8
- export declare const BIWEEKLY = "BIWEEKLY";
9
- export declare const MONTHLY = "MONTHLY";
10
- export declare const BIMONTHLY = "BIMONTHLY";
11
- export declare const QUARTERLY = "QUARTERLY";
12
- export declare const SIXMONTHLY = "SIXMONTHLY";
13
- export declare const SIXMONTHLYAPR = "SIXMONTHLYAPR";
14
- export declare const YEARLY = "YEARLY";
15
- export declare const FINANCIAL = "FINANCIAL";
16
- export declare const FYNOV = "FYNOV";
17
- export declare const FYOCT = "FYOCT";
18
- export declare const FYJUL = "FYJUL";
19
- export declare const FYAPR = "FYAPR";
@@ -1,17 +0,0 @@
1
- export declare const getRelativePeriodsOptionsById: (id: string) => {
2
- id: string;
3
- getPeriods: () => {
4
- id: string;
5
- name: any;
6
- }[];
7
- name: any;
8
- };
9
- export declare const getRelativePeriodsOptions: () => {
10
- id: string;
11
- getPeriods: () => {
12
- id: string;
13
- name: any;
14
- }[];
15
- name: any;
16
- }[];
17
- export declare const getRelativePeriodIds: () => string[];
@@ -1,21 +0,0 @@
1
- import { ElementRef, EventEmitter, NgZone } from '@angular/core';
2
- import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
3
- import * as i0 from "@angular/core";
4
- type PeriodSelectionEvent = {
5
- dimensionId: string;
6
- items: Record<string, unknown>[];
7
- };
8
- export declare class PeriodSelectorComponent extends ReactWrapperModule {
9
- private ngZone;
10
- d2: import("@iapps/d2-web-sdk").D2Web;
11
- selectedPeriods: any[];
12
- selectPeriods: EventEmitter<any>;
13
- props: Record<string, unknown>;
14
- constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
15
- ngAfterViewInit(): Promise<void>;
16
- onSelectItems(selectionEvent: PeriodSelectionEvent): void;
17
- getExcludedPeriodTypes: (systemSettings?: any) => any[];
18
- static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<PeriodSelectorComponent, "ng-dhis2-ui-period-selector", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "selectPeriods": "selectPeriods"; }, never, never, false, never>;
20
- }
21
- export {};
@@ -1,16 +0,0 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import { ReactWrapperModule } from '../../../react-wrapper/react-wrapper.component';
3
- import * as i0 from "@angular/core";
4
- export declare class PeriodSelectorModalComponent extends ReactWrapperModule {
5
- d2: import("@iapps/d2-web-sdk").D2Web;
6
- selectedPeriods: any[];
7
- cancel: EventEmitter<any>;
8
- confirm: EventEmitter<any>;
9
- constructor(elementRef: ElementRef<HTMLElement>);
10
- ngAfterViewInit(): Promise<void>;
11
- onCancel(): void;
12
- onConfirm(selectedItems: any[]): void;
13
- getExcludedPeriodTypes: (systemSettings?: any) => any[];
14
- static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorModalComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<PeriodSelectorModalComponent, "ng-dhis2-ui-period-selector-modal", never, { "selectedPeriods": { "alias": "selectedPeriods"; "required": false; }; }, { "cancel": "cancel"; "confirm": "confirm"; }, never, never, false, never>;
16
- }
@@ -1,3 +0,0 @@
1
- export * from './period-selector.module';
2
- export { PeriodSelectorComponent } from './containers/period-selector/period-selector.component';
3
- export { PeriodSelectorModalComponent } from './containers/period-selector-modal/period-selector-modal.component';
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./containers/period-selector/period-selector.component.tsx";
3
- import * as i2 from "./containers/period-selector-modal/period-selector-modal.component.tsx";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../../shared/shared.module";
6
- export declare class PeriodSelectorModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<PeriodSelectorModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<PeriodSelectorModule, [typeof i1.PeriodSelectorComponent, typeof i2.PeriodSelectorModalComponent], [typeof i3.CommonModule, typeof i4.SharedDhis2UiModule], [typeof i1.PeriodSelectorComponent, typeof i2.PeriodSelectorModalComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<PeriodSelectorModule>;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './models';
2
- export * from './program-entry-form.component';
@@ -1,3 +0,0 @@
1
- export * from './program-entry-form.config';
2
- export * from './program-entry-form-metadata';
3
- export * from './program-entry-form-section.model';