-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [DHIS2-12362] display relationships
- Loading branch information
Showing
50 changed files
with
796 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...psWidget/TrackedEntityRelationshipsWrapper/TrackedEntityRelationshipsWrapper.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 28 additions & 8 deletions
36
...ckedEntityRelationship/NewTrackedEntityRelationship/NewTrackedEntityRelationship.types.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,44 @@ | ||
// @flow | ||
|
||
import type { RelationshipTypes } from '../../common/Types'; | ||
|
||
export type Props = $ReadOnly<{| | ||
export type ContainerProps = $ReadOnly<{| | ||
renderElement: HTMLElement, | ||
relationshipTypes: RelationshipTypes, | ||
trackedEntityTypeId: string, | ||
programId: string, | ||
onSave: () => void, | ||
onCancel: () => void, | ||
onCloseAddRelationship?: () => void, | ||
onOpenAddRelationship?: () => void, | ||
|}>; | ||
|
||
export type PlainProps = $ReadOnly<{| | ||
addRelationshipRenderElement: HTMLElement, | ||
...Props, | ||
export type StyledContainerProps = $ReadOnly<{| | ||
...ContainerProps, | ||
...CssClasses, | ||
|}>; | ||
|
||
export type PortalProps = $ReadOnly<{| | ||
renderElement: HTMLElement, | ||
...Props, | ||
relationshipTypes: RelationshipTypes, | ||
trackedEntityTypeId: string, | ||
programId: string, | ||
onSave: () => void, | ||
onCancel: () => void, | ||
|}>; | ||
|
||
export type StyledPortalProps = $ReadOnly<{| | ||
...PortalProps, | ||
...CssClasses, | ||
|}>; | ||
|
||
|
||
export type ComponentProps = $ReadOnly<{| | ||
relationshipTypes: RelationshipTypes, | ||
trackedEntityTypeId: string, | ||
programId: string, | ||
onSave: () => void, | ||
onCancel: () => void, | ||
|}>; | ||
|
||
export type StyledComponentProps = $ReadOnly<{| | ||
...ComponentProps, | ||
...CssClasses, | ||
|}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...getsRelationship/WidgetTrackedEntityRelationship/WidgetTrackedEntityRelationship.types.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
// @flow | ||
import type { RelationshipTypes, UrlParameters } from '../common/Types'; | ||
import type { RelationshipTypes } from '../common/Types'; | ||
import type { LinkedRecordClick } from '../common/RelationshipsWidget'; | ||
|
||
export type Props = {| | ||
export type WidgetTrackedEntityRelationshipProps = {| | ||
trackedEntityTypeId: string, | ||
teiId: string, | ||
programId: string, | ||
addRelationshipRenderElement: HTMLElement, | ||
onLinkedRecordClick: (parameters: UrlParameters) => void, | ||
onLinkedRecordClick: LinkedRecordClick, | ||
onOpenAddRelationship?: () => void, | ||
onCloseAddRelationship?: () => void, | ||
relationshipTypes?: RelationshipTypes, | ||
|} | ||
|}; |
8 changes: 8 additions & 0 deletions
8
...ules/capture-core/components/WidgetsRelationship/WidgetTrackedEntityRelationship/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
// @flow | ||
export { WidgetTrackedEntityRelationship } from './WidgetTrackedEntityRelationship.component'; | ||
export type { WidgetTrackedEntityRelationshipProps } from './WidgetTrackedEntityRelationship.types'; | ||
export type { RelationshipTypes } from '../common/Types'; | ||
export type { | ||
LinkedRecordClick, | ||
NavigationArgs, | ||
NavigationArgsEvent, | ||
NavigationArgsTrackedEntity, | ||
} from '../common/RelationshipsWidget'; |
Oops, something went wrong.