@iapps/ng-dhis2-ui 1.2.103 → 1.2.105

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 +604 -384
  2. package/fesm2022/iapps-ng-dhis2-ui.mjs.map +1 -1
  3. package/index.d.ts +1306 -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,16 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- declare const Apps: {
10
- ({ apps, baseUrl }: any): React.JSX.Element;
11
- propTypes: {
12
- apps: PropTypes.Validator<any[]>;
13
- baseUrl: PropTypes.Requireable<string>;
14
- };
15
- };
16
- export default Apps;
@@ -1,15 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare const DebugInfoMenuItem: {
10
- (params: any): React.JSX.Element;
11
- propTypes: {
12
- hideProfileMenu: PropTypes.Validator<(...args: any[]) => any>;
13
- showDebugInfoModal: PropTypes.Validator<(...args: any[]) => any>;
14
- };
15
- };
@@ -1,8 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare function DebugInfoModal(params: any): React.JSX.Element;
4
- export declare namespace DebugInfoModal {
5
- var propTypes: {
6
- onClose: PropTypes.Validator<(...args: any[]) => any>;
7
- };
8
- }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare module 'react' {
3
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
4
- jsx?: boolean;
5
- global?: boolean;
6
- }
7
- }
8
- export declare function DebugInfoTable(): React.JSX.Element;
@@ -1,7 +0,0 @@
1
- export declare const useDebugInfo: () => {
2
- app_name: any;
3
- app_version: any;
4
- dhis2_version: any;
5
- dhis2_revision: any;
6
- };
7
- export declare const useFormattedDebugInfo: () => string;
@@ -1,14 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare const HeaderBarContextProvider: {
4
- (params: any): React.JSX.Element;
5
- propTypes: {
6
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
7
- updateAvailable: PropTypes.Requireable<boolean>;
8
- onApplyAvailableUpdate: PropTypes.Requireable<(...args: any[]) => any>;
9
- };
10
- };
11
- export declare const useHeaderBarContext: () => {
12
- updateAvailable: boolean;
13
- onApplyAvailableUpdate: () => void;
14
- };
@@ -1,19 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- import { HeaderBarData } from '../models';
4
- interface HeaderBarProp {
5
- appName: string;
6
- data: HeaderBarData;
7
- className?: string;
8
- }
9
- export declare const HeaderBar: {
10
- ({ appName, data, className }: HeaderBarProp): React.JSX.Element;
11
- propTypes: {
12
- appName: PropTypes.Requireable<string>;
13
- data: typeof HeaderBarData;
14
- className: PropTypes.Requireable<string>;
15
- updateAvailable: PropTypes.Requireable<boolean>;
16
- onApplyAvailableUpdate: PropTypes.Requireable<(...args: any[]) => any>;
17
- };
18
- };
19
- export {};
@@ -1 +0,0 @@
1
- export declare const joinPath: (...parts: any[]) => string;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare module 'react' {
3
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
4
- jsx?: boolean;
5
- global?: boolean;
6
- }
7
- }
8
- export declare const LogoImage: () => React.JSX.Element;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- declare module 'react' {
3
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
4
- jsx?: boolean;
5
- global?: boolean;
6
- }
7
- }
8
- interface LogoProp {
9
- baseUrl: string;
10
- }
11
- export declare const Logo: ({ baseUrl }: LogoProp) => React.JSX.Element;
12
- export {};
@@ -1,21 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare const NotificationIcon: {
10
- (params: any): React.JSX.Element;
11
- defaultProps: {
12
- count: number;
13
- };
14
- propTypes: {
15
- href: PropTypes.Validator<string>;
16
- count: PropTypes.Requireable<number>;
17
- dataTestId: PropTypes.Requireable<string>;
18
- message: PropTypes.Requireable<string>;
19
- kind: PropTypes.Requireable<string>;
20
- };
21
- };
@@ -1,16 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare const Notifications: {
10
- (params: any): React.JSX.Element;
11
- propTypes: {
12
- interpretations: PropTypes.Requireable<number>;
13
- messages: PropTypes.Requireable<number>;
14
- userAuthorities: PropTypes.Requireable<string[]>;
15
- };
16
- };
@@ -1 +0,0 @@
1
- export declare const useOnDocClick: (containerRef: any, hide: any) => void;
@@ -1 +0,0 @@
1
- export * from './profile-menu';
@@ -1,16 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare const ProfileHeader: {
10
- (params: any): React.JSX.Element;
11
- propTypes: {
12
- avatarId: PropTypes.Requireable<string>;
13
- email: PropTypes.Requireable<string>;
14
- name: PropTypes.Requireable<string>;
15
- };
16
- };
@@ -1,13 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- export declare const ProfileMenu: {
4
- (params: any): React.JSX.Element;
5
- propTypes: {
6
- hideProfileMenu: PropTypes.Validator<(...args: any[]) => any>;
7
- showDebugInfoModal: PropTypes.Validator<(...args: any[]) => any>;
8
- avatarId: PropTypes.Requireable<string>;
9
- email: PropTypes.Requireable<string>;
10
- helpUrl: PropTypes.Requireable<string>;
11
- name: PropTypes.Requireable<string>;
12
- };
13
- };
@@ -1,14 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare function UpdateNotification(params: any): React.JSX.Element;
10
- export declare namespace UpdateNotification {
11
- var propTypes: {
12
- hideProfileMenu: PropTypes.Validator<(...args: any[]) => any>;
13
- };
14
- }
@@ -1,18 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- declare const Profile: {
10
- (params: any): React.JSX.Element;
11
- propTypes: {
12
- name: PropTypes.Validator<string>;
13
- avatarId: PropTypes.Requireable<string>;
14
- email: PropTypes.Requireable<string>;
15
- helpUrl: PropTypes.Requireable<string>;
16
- };
17
- };
18
- export default Profile;
@@ -1,15 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- declare module 'react' {
4
- interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
5
- jsx?: boolean;
6
- global?: boolean;
7
- }
8
- }
9
- export declare const Title: {
10
- (params: any): React.JSX.Element;
11
- propTypes: {
12
- app: PropTypes.Requireable<string>;
13
- instance: PropTypes.Requireable<string>;
14
- };
15
- };
@@ -1,9 +0,0 @@
1
- import { ActionOptionOrientation, LineListActionOption } from '../../models';
2
- import React from 'react';
3
- import { TableRow } from '../../models/line-list.models';
4
- export declare const DataTableActions: (props: {
5
- data: TableRow;
6
- actionOptions: LineListActionOption[];
7
- actionOptionOrientation: ActionOptionOrientation;
8
- onClick: (dropdownOption: LineListActionOption) => void;
9
- }) => React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './data-table-actions';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { DropdownMenuOption } from '../../models';
3
- export declare const ContextMenu: (params: {
4
- dropDownOptions: DropdownMenuOption[];
5
- anchorRef: any;
6
- onClose: (event?: any, data?: any) => void;
7
- onMenuClick: (dropdownOption: DropdownMenuOption) => void;
8
- }) => React.JSX.Element;
9
- export declare const DropdownMenu: (props: {
10
- dropdownOptions: DropdownMenuOption[];
11
- onClick: (dropdownOption: DropdownMenuOption) => void;
12
- }) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const dropdownStyles: {
2
- layer: {
3
- zIndex: string;
4
- };
5
- };
@@ -1 +0,0 @@
1
- export * from './dropdown-menu';
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- key: string;
4
- label?: string;
5
- required?: boolean;
6
- onSelectOrgUnit: (selectedOrgUnits: any) => void;
7
- onBlur?: (selectedOrgUnit: Record<string, unknown>) => void;
8
- selected?: string;
9
- maxTreeHeight?: number;
10
- disabled?: boolean;
11
- previousOrgUnitId?: string;
12
- };
13
- export declare const OrgUnitFormField: (props: Props) => React.JSX.Element;
14
- export {};
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export declare const OrgUnitSelector: ({ hide, setHide, selectedOrgUnit, setSelectedOrgUnit, setOrgUnitState, setTempOrgUnitState, tempOrgUnitState }: any) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const FilterToolbar: ({ orgUnitLabel, selectedOrgUnit, setSelectedOrgUnit, setOrgUnitState, defaultOrgUnit, setHide, startDateState, setStartDateState, endDateState, setEndDateState, visibleFilters, dateStates, inputValues, setInputValues, handleInputChange, handleInputChangeForSelectField, handleDateSelect, showAllFilters, setShowAllFilters, setTempStartDateState, setTempEndDateState, setTempOrgUnitState, tempStartDateState, tempEndDateState, tempOrgUnitState, dataQueryFiltersState, setDataQueryFiltersState, SetOrgUnitModalVisible, showEnrollmentDates, handleAdditionalFilters, handleStartDateFilter, handleEndDateFilter, handleOrgUnitFilter, setDateStates, prevInputValues, setPrevInputValues, setTempDataQueryFiltersState, prevDateStates, setPrevDateStates, prevSelectedOrgUnit, setPrevSelectedOrgUnit, }: any) => React.JSX.Element;
3
- export declare function formatDateForDisplay(dateString: string | null | undefined): string;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const LineListTable: ({ columns, data, pager, setPager, getTextColorFromBackGround, actionOptions, actionOptionOrientation, actionSelected, selectable, rowsSelected, showActionButtons, error }: any) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import { Pager } from '@iapps/d2-web-sdk';
2
- import React from 'react';
3
- type PaginationProps = {
4
- pager: Pager;
5
- setPager: React.Dispatch<React.SetStateAction<Pager>>;
6
- };
7
- export declare const Pagination: ({ pager, setPager }: PaginationProps) => React.JSX.Element;
8
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TableBody: ({ data, columns, getTextColorFromBackGround, actionOptions, actionOptionOrientation, actionSelected, selectedRows, onRowToggle, selectable, showActionButtons, error, }: any) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const TableCell: ({ cell, getTextColorFromBackGround, }: {
3
- cell: any;
4
- getTextColorFromBackGround: (color: string) => string;
5
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TableFooter: ({ pager, setPager, columns }: any) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const TableHeader: ({ columns, allSelected, onSelectAll, selectable, showActionButtons, }: {
3
- columns: any[];
4
- allSelected: boolean;
5
- onSelectAll: (checked: boolean) => void;
6
- selectable: boolean;
7
- showActionButtons: boolean;
8
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const TableRow: ({ row, columns, getTextColorFromBackGround, actionOptions, actionOptionOrientation, actionSelected, isChecked, onToggle, selectable, showActionButtons, }: any) => React.JSX.Element;
@@ -1,52 +0,0 @@
1
- import { EventEmitter, SimpleChanges } from '@angular/core';
2
- import { DataQueryFilter, DHIS2Event, EnrollmentStatus, EventStatus, TrackedEntityInstance } from '@iapps/d2-web-sdk';
3
- import React from 'react';
4
- import { ReactWrapperModule } from '../../react-wrapper/react-wrapper.component';
5
- import { ActionOptionOrientation, LineListActionOption } from '../models';
6
- import { AttributeFilter } from '../models/attribute-filter.model';
7
- import { LineListService } from '../services/line-list.service';
8
- import * as i0 from "@angular/core";
9
- export declare class LineListTableComponent extends ReactWrapperModule {
10
- triggerToken: string;
11
- programId: string;
12
- orgUnit: string;
13
- programStageId?: string;
14
- actionOptions?: LineListActionOption[];
15
- actionOptionOrientation: ActionOptionOrientation;
16
- attributeFilters?: AttributeFilter[];
17
- useOuModeWithOlderDHIS2Instance?: boolean;
18
- startDate?: string;
19
- endDate?: string;
20
- dataQueryFilters?: DataQueryFilter[];
21
- ouMode?: string;
22
- isButtonLoading: boolean;
23
- buttonFilter: string;
24
- filterRootOrgUnit: boolean;
25
- showFilters: boolean;
26
- isOptionSetNameVisible: boolean;
27
- allowRowsSelection: boolean;
28
- enrollmentStatus: EnrollmentStatus;
29
- filterableColumnIds: string[];
30
- triggerRefetch: boolean;
31
- eventStatus: {
32
- programStage: string;
33
- status: EventStatus;
34
- };
35
- actionSelected: EventEmitter<{
36
- action: string;
37
- data: TrackedEntityInstance | DHIS2Event;
38
- }>;
39
- rowsSelected: EventEmitter<TrackedEntityInstance[] | DHIS2Event[]>;
40
- showActionButtons: boolean;
41
- showEnrollmentDates: boolean;
42
- showDownloadButton: boolean;
43
- searcheableDataElements: string[];
44
- private reactStateUpdaters;
45
- setReactStateUpdaters: (updaters: any) => void;
46
- ngOnChanges(changes: SimpleChanges): void;
47
- lineListService: LineListService;
48
- LineList: () => React.JSX.Element;
49
- ngAfterViewInit(): Promise<void>;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<LineListTableComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<LineListTableComponent, "ng-dhis2-ui-line-list", never, { "triggerToken": { "alias": "triggerToken"; "required": false; }; "programId": { "alias": "programId"; "required": false; }; "orgUnit": { "alias": "orgUnit"; "required": false; }; "programStageId": { "alias": "programStageId"; "required": false; }; "actionOptions": { "alias": "actionOptions"; "required": false; }; "actionOptionOrientation": { "alias": "actionOptionOrientation"; "required": false; }; "attributeFilters": { "alias": "attributeFilters"; "required": false; }; "useOuModeWithOlderDHIS2Instance": { "alias": "useOuModeWithOlderDHIS2Instance"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "dataQueryFilters": { "alias": "dataQueryFilters"; "required": false; }; "ouMode": { "alias": "ouMode"; "required": false; }; "isButtonLoading": { "alias": "isButtonLoading"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; "filterRootOrgUnit": { "alias": "filterRootOrgUnit"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; "isOptionSetNameVisible": { "alias": "isOptionSetNameVisible"; "required": false; }; "allowRowsSelection": { "alias": "allowRowsSelection"; "required": false; }; "enrollmentStatus": { "alias": "enrollmentStatus"; "required": false; }; "filterableColumnIds": { "alias": "filterableColumnIds"; "required": false; }; "triggerRefetch": { "alias": "triggerRefetch"; "required": false; }; "eventStatus": { "alias": "eventStatus"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "showEnrollmentDates": { "alias": "showEnrollmentDates"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "searcheableDataElements": { "alias": "searcheableDataElements"; "required": false; }; }, { "actionSelected": "actionSelected"; "rowsSelected": "rowsSelected"; }, never, ["*"], false, never>;
52
- }
@@ -1 +0,0 @@
1
- export * from './use-dynamic-styles.hook';
@@ -1 +0,0 @@
1
- export declare const useDynamicStyles: <T extends Record<string, React.CSSProperties | any>>(stylesObj: T) => { [K in keyof T]: string; };
@@ -1,3 +0,0 @@
1
- export * from './line-list.module';
2
- export * from './containers/line-list.component';
3
- export * from './models';
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./containers/line-list.component.tsx";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../shared/shared.module";
5
- import * as i4 from "../react-wrapper/react-wrapper.component.tsx";
6
- export declare class LineListModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<LineListModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<LineListModule, [typeof i1.LineListTableComponent], [typeof i2.CommonModule, typeof i3.SharedDhis2UiModule, typeof i4.ReactWrapperModule], [typeof i1.LineListTableComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<LineListModule>;
10
- }
@@ -1 +0,0 @@
1
- export type ActionOptionOrientation = 'DROPDOWN' | 'BUTTON' | 'LINK';
@@ -1,10 +0,0 @@
1
- export interface AttributeFilter {
2
- attribute?: string;
3
- dataElement?: string;
4
- operator: string;
5
- value: string | number;
6
- }
7
- export interface AttributeFilterGroup {
8
- logic: 'AND' | 'OR';
9
- filters: AttributeFilter[];
10
- }
@@ -1,9 +0,0 @@
1
- export interface DropdownMenuOption {
2
- id?: string;
3
- label: string;
4
- action?: string;
5
- description?: string;
6
- iconOnly?: boolean;
7
- icon?: any;
8
- destructive?: boolean;
9
- }
@@ -1,6 +0,0 @@
1
- export interface FilterConfig {
2
- programStage: string;
3
- dataElement: string;
4
- operator: string;
5
- value: string | number;
6
- }
@@ -1,3 +0,0 @@
1
- export * from './action-option-orientation.model';
2
- export * from './dropdown-menu.model';
3
- export * from './line-list-action-option.model';
@@ -1,6 +0,0 @@
1
- import { DHIS2Event, TrackedEntityInstance } from '@iapps/d2-web-sdk';
2
- import { DropdownMenuOption } from './dropdown-menu.model';
3
- export interface LineListActionOption extends DropdownMenuOption {
4
- condition?: string;
5
- onClick?: (tableRow: TrackedEntityInstance | DHIS2Event) => void;
6
- }