@openmrs/esm-framework 8.0.1-pre.3585 → 8.0.1-pre.3600
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.
- package/.turbo/turbo-build.log +1 -4
- package/dist/openmrs-esm-framework.js +2 -2
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +8 -8
- package/docs/functions/CardHeader.md +19 -0
- package/docs/functions/EmptyCardIllustration.md +23 -0
- package/docs/functions/createDashboard.md +29 -0
- package/docs/functions/getCoreTranslation.md +1 -1
- package/docs/functions/showSnackbar.md +1 -1
- package/docs/functions/showToast.md +1 -1
- package/docs/interfaces/CardHeaderProps.md +25 -0
- package/docs/interfaces/DashboardExtensionProps.md +4 -4
- package/docs/interfaces/Drug.md +97 -0
- package/docs/interfaces/EmptyCardProps.md +39 -0
- package/docs/interfaces/ErrorStateProps.md +6 -2
- package/docs/interfaces/Order.md +461 -0
- package/docs/interfaces/PaginationProps.md +95 -0
- package/docs/type-aliases/ErrorCardProps.md +7 -0
- package/docs/type-aliases/FulfillerStatus.md +7 -0
- package/docs/type-aliases/OrderAction.md +7 -0
- package/docs/type-aliases/OrderUrgency.md +7 -0
- package/docs/variables/EmptyCard.md +9 -0
- package/docs/variables/ErrorCard.md +7 -0
- package/docs/variables/ErrorState.md +1 -1
- package/docs/variables/Pagination.md +9 -0
- package/package.json +20 -20
package/docs/API.md
CHANGED
|
@@ -195,7 +195,9 @@
|
|
|
195
195
|
- [usePagination](functions/usePagination.md)
|
|
196
196
|
- [useFhirPagination](functions/useFhirPagination.md)
|
|
197
197
|
- [getFhirServerPaginationHandlers](functions/getFhirServerPaginationHandlers.md)
|
|
198
|
-
- [
|
|
198
|
+
- [CustomOverflowMenu](functions/CustomOverflowMenu.md)
|
|
199
|
+
- [PageHeaderContentProps](interfaces/PageHeaderContentProps.md)
|
|
200
|
+
- [PageHeaderWrapperProps](interfaces/PageHeaderWrapperProps.md)
|
|
199
201
|
- [PatientBannerPatientInfo](functions/PatientBannerPatientInfo.md)
|
|
200
202
|
- [PatientBannerPatientIdentifiers](functions/PatientBannerPatientIdentifiers.md)
|
|
201
203
|
- [PatientBannerActionsMenu](functions/PatientBannerActionsMenu.md)
|
|
@@ -207,24 +209,22 @@
|
|
|
207
209
|
- [PatientPhotoProps](interfaces/PatientPhotoProps.md)
|
|
208
210
|
- [usePatientPhoto](functions/usePatientPhoto.md)
|
|
209
211
|
- [UsePatientPhotoResult](interfaces/UsePatientPhotoResult.md)
|
|
210
|
-
- [
|
|
211
|
-
- [PageHeaderContentProps](interfaces/PageHeaderContentProps.md)
|
|
212
|
-
- [PageHeaderWrapperProps](interfaces/PageHeaderWrapperProps.md)
|
|
212
|
+
- [ResponsiveWrapperProps](interfaces/ResponsiveWrapperProps.md)
|
|
213
213
|
- [useOpenmrsPagination](functions/useOpenmrsPagination.md)
|
|
214
214
|
- [UseServerPaginationOptions](interfaces/UseServerPaginationOptions.md)
|
|
215
215
|
- [useOpenmrsInfinite](functions/useOpenmrsInfinite.md)
|
|
216
216
|
- [UseServerInfiniteOptions](interfaces/UseServerInfiniteOptions.md)
|
|
217
217
|
- [useOpenmrsFetchAll](functions/useOpenmrsFetchAll.md)
|
|
218
218
|
- [UseServerFetchAllOptions](interfaces/UseServerFetchAllOptions.md)
|
|
219
|
+
- [showModal](functions/showModal.md)
|
|
219
220
|
- [showNotification](functions/showNotification.md)
|
|
220
221
|
- [showActionableNotification](functions/showActionableNotification.md)
|
|
221
|
-
- [showToast](functions/showToast.md)
|
|
222
|
-
- [showModal](functions/showModal.md)
|
|
223
|
-
- [ToastDescriptor](interfaces/ToastDescriptor.md)
|
|
224
|
-
- [ToastNotificationMeta](interfaces/ToastNotificationMeta.md)
|
|
225
222
|
- [showSnackbar](functions/showSnackbar.md)
|
|
226
223
|
- [SnackbarDescriptor](interfaces/SnackbarDescriptor.md)
|
|
227
224
|
- [SnackbarMeta](interfaces/SnackbarMeta.md)
|
|
225
|
+
- [showToast](functions/showToast.md)
|
|
226
|
+
- [ToastDescriptor](interfaces/ToastDescriptor.md)
|
|
227
|
+
- [ToastNotificationMeta](interfaces/ToastNotificationMeta.md)
|
|
228
228
|
|
|
229
229
|
## Config
|
|
230
230
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / CardHeader
|
|
2
|
+
|
|
3
|
+
# Function: CardHeader()
|
|
4
|
+
|
|
5
|
+
> **CardHeader**(`__namedParameters`): `Element`
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/cards/card-header.component.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/cards/card-header.component.tsx#L16)
|
|
8
|
+
|
|
9
|
+
Re-usable header component for O3-style cards, like those found on the patient chart
|
|
10
|
+
|
|
11
|
+
## Parameters
|
|
12
|
+
|
|
13
|
+
### \_\_namedParameters
|
|
14
|
+
|
|
15
|
+
[`CardHeaderProps`](../interfaces/CardHeaderProps.md)
|
|
16
|
+
|
|
17
|
+
## Returns
|
|
18
|
+
|
|
19
|
+
`Element`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / EmptyCardIllustration
|
|
2
|
+
|
|
3
|
+
# Function: EmptyCardIllustration()
|
|
4
|
+
|
|
5
|
+
> **EmptyCardIllustration**(`__namedParameters`): `Element`
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx#L18)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### \_\_namedParameters
|
|
12
|
+
|
|
13
|
+
#### height?
|
|
14
|
+
|
|
15
|
+
`string` = `'64'`
|
|
16
|
+
|
|
17
|
+
#### width?
|
|
18
|
+
|
|
19
|
+
`string` = `'64'`
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`Element`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / createDashboard
|
|
2
|
+
|
|
3
|
+
# Function: createDashboard()
|
|
4
|
+
|
|
5
|
+
> **createDashboard**(`props`): (`__namedParameters`) => `Element`
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/dashboard-extension/index.tsx:53](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/dashboard-extension/index.tsx#L53)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### props
|
|
12
|
+
|
|
13
|
+
`Omit`\<[`DashboardExtensionProps`](../interfaces/DashboardExtensionProps.md), `"basePath"`\>
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
> (`__namedParameters`): `Element`
|
|
18
|
+
|
|
19
|
+
### Parameters
|
|
20
|
+
|
|
21
|
+
#### \_\_namedParameters
|
|
22
|
+
|
|
23
|
+
##### basePath
|
|
24
|
+
|
|
25
|
+
`string`
|
|
26
|
+
|
|
27
|
+
### Returns
|
|
28
|
+
|
|
29
|
+
`Element`
|
|
@@ -17,7 +17,7 @@ invalid key to this function will result in a type error.
|
|
|
17
17
|
|
|
18
18
|
### key
|
|
19
19
|
|
|
20
|
-
`"error"` | `"delete"` | `"actions"` | `"actionableNotification"` | `"address"` | `"age"` | `"cancel"` | `"change"` | `"Clinic"` | `"close"` | `"closesActionableNotification"` | `"closeSnackbar"` | `"confirm"` | `"contactAdministratorIfIssuePersists"` | `"contactDetails"` | `"discardChanges"` | `"edit"` | `"errorCopy"` | `"errorLoadingLoginLocations"` | `"female"` | `"leftNavigation"` | `"loading"` | `"male"` | `"noResultsToDisplay"` | `"other"` | `"patientAvatarAlt"` | `"patientIdentifierSticker"` | `"patientLists"` | `"patientPhotoAlt"` | `"patientPhotoPlaceholder"` | `"print"` | `"printError"` | `"printErrorExplainer"` | `"printIdentifierSticker"` | `"printing"` | `"relationships"` | `"resetOverrides"` | `"save"` | `"scriptLoadingFailed"` | `"scriptLoadingError"` | `"searchForLocation"` | `"seeMoreLists"` | `"sex"` | `"showLess"` | `"showMore"` | `"snackbarNotification"` | `"toggleDevTools"` | `"unknown"` | `"yearAbbreviation"` | `"yearsAbbreviation"` | `"closeWorkspaces2PromptTitle"` | `"closeWorkspaces2PromptBody"` | `"closeAllOpenedWorkspaces"` | `"closingAllWorkspacesPromptBody"` | `"closingAllWorkspacesPromptTitle"` | `"discard"` | `"hide"` | `"maximize"` | `"minimize"` | `"openAnyway"` | `"unsavedChangesInOpenedWorkspace"` | `"unsavedChangesInWorkspace"` | `"unsavedChangesTitleText"` | `"workspaceHeader"` | `"address1"` | `"address2"` | `"address3"` | `"address4"` | `"address5"` | `"address6"` | `"city"` | `"cityVillage"` | `"country"` | `"countyDistrict"` | `"district"` | `"postalCode"` | `"state"` | `"stateProvince"`
|
|
20
|
+
`"error"` | `"delete"` | `"actions"` | `"actionableNotification"` | `"address"` | `"age"` | `"cancel"` | `"change"` | `"Clinic"` | `"close"` | `"closesActionableNotification"` | `"closeSnackbar"` | `"confirm"` | `"contactAdministratorIfIssuePersists"` | `"contactDetails"` | `"discardChanges"` | `"edit"` | `"emptyStateText"` | `"errorCopy"` | `"errorLoadingLoginLocations"` | `"female"` | `"leftNavigation"` | `"loading"` | `"male"` | `"noResultsToDisplay"` | `"other"` | `"paginationItemsCount"` | `"paginationOfPages"` | `"patientAvatarAlt"` | `"patientIdentifierSticker"` | `"patientLists"` | `"patientPhotoAlt"` | `"patientPhotoPlaceholder"` | `"print"` | `"printError"` | `"printErrorExplainer"` | `"printIdentifierSticker"` | `"printing"` | `"recordNewEntry"` | `"relationships"` | `"resetOverrides"` | `"save"` | `"scriptLoadingFailed"` | `"scriptLoadingError"` | `"searchForLocation"` | `"seeAll"` | `"seeMoreLists"` | `"sex"` | `"showLess"` | `"showMore"` | `"snackbarNotification"` | `"toggleDevTools"` | `"unknown"` | `"yearAbbreviation"` | `"yearsAbbreviation"` | `"closeWorkspaces2PromptTitle"` | `"closeWorkspaces2PromptBody"` | `"closeAllOpenedWorkspaces"` | `"closingAllWorkspacesPromptBody"` | `"closingAllWorkspacesPromptTitle"` | `"discard"` | `"hide"` | `"maximize"` | `"minimize"` | `"openAnyway"` | `"unsavedChangesInOpenedWorkspace"` | `"unsavedChangesInWorkspace"` | `"unsavedChangesTitleText"` | `"workspaceHeader"` | `"address1"` | `"address2"` | `"address3"` | `"address4"` | `"address5"` | `"address6"` | `"city"` | `"cityVillage"` | `"country"` | `"countyDistrict"` | `"district"` | `"postalCode"` | `"state"` | `"stateProvince"`
|
|
21
21
|
|
|
22
22
|
### defaultText?
|
|
23
23
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **showSnackbar**(`snackbar`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/snackbars/index.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/snackbars/index.tsx:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/snackbars/index.tsx#L34)
|
|
8
8
|
|
|
9
9
|
Displays a snack bar notification in the UI.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **showToast**(`toast`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/toasts/index.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/toasts/index.tsx:38](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/toasts/index.tsx#L38)
|
|
8
8
|
|
|
9
9
|
Displays a toast notification in the UI.
|
|
10
10
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / CardHeaderProps
|
|
2
|
+
|
|
3
|
+
# Interface: CardHeaderProps
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/framework/esm-styleguide/src/cards/card-header.component.tsx:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/cards/card-header.component.tsx#L6)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### children?
|
|
10
|
+
|
|
11
|
+
> `optional` **children**: `ReactNode`
|
|
12
|
+
|
|
13
|
+
Defined in: [packages/framework/esm-styleguide/src/cards/card-header.component.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/cards/card-header.component.tsx#L10)
|
|
14
|
+
|
|
15
|
+
The contents of the card header to render if any.
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### title
|
|
20
|
+
|
|
21
|
+
> **title**: `string`
|
|
22
|
+
|
|
23
|
+
Defined in: [packages/framework/esm-styleguide/src/cards/card-header.component.tsx:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/cards/card-header.component.tsx#L8)
|
|
24
|
+
|
|
25
|
+
The title for this card. This must be a pre-translated string.
|
|
@@ -6,17 +6,17 @@ Defined in: [packages/framework/esm-styleguide/src/dashboard-extension/index.tsx
|
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
9
|
-
### basePath
|
|
9
|
+
### basePath?
|
|
10
10
|
|
|
11
|
-
> **basePath**: `string`
|
|
11
|
+
> `optional` **basePath**: `string`
|
|
12
12
|
|
|
13
13
|
Defined in: [packages/framework/esm-styleguide/src/dashboard-extension/index.tsx:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/dashboard-extension/index.tsx#L13)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
17
|
-
### icon
|
|
17
|
+
### icon?
|
|
18
18
|
|
|
19
|
-
> **icon**: `"omrs-icon-activity"` \| `"omrs-icon-add"` \| `"omrs-icon-arrow-down"` \| `"omrs-icon-arrow-left"` \| `"omrs-icon-arrow-right"` \| `"omrs-icon-arrow-up"` \| `"omrs-icon-baby"` \| `"omrs-icon-calendar-heat-map"` \| `"omrs-icon-calendar"` \| `"omrs-icon-caret-down"` \| `"omrs-icon-caret-left"` \| `"omrs-icon-caret-right"` \| `"omrs-icon-caret-up"` \| `"omrs-icon-chart-average"` \| `"omrs-icon-checkmark-filled"` \| `"omrs-icon-checkmark-outline"` \| `"omrs-icon-chemistry"` \| `"omrs-icon-chevron-down"` \| `"omrs-icon-chevron-left"` \| `"omrs-icon-chevron-right"` \| `"omrs-icon-chevron-up"` \| `"omrs-icon-close"` \| `"omrs-icon-close-filled"` \| `"omrs-icon-close-outline"` \| `"omrs-icon-document"` \| `"omrs-icon-document-attachment"` \| `"omrs-icon-download"` \| `"omrs-icon-drug-order"` \| `"omrs-icon-edit"` \| `"omrs-icon-event-schedule"` \| `"omrs-icon-events"` \| `"omrs-icon-gender-female"` \| `"omrs-icon-gender-male"` \| `"omrs-icon-gender-other"` \| `"omrs-icon-gender-unknown"` \| `"omrs-icon-generic-order-type"` \| `"omrs-icon-group"` \| `"omrs-icon-group-access"` \| `"omrs-icon-hospital-bed"` \| `"omrs-icon-image-medical"` \| `"omrs-icon-information"` \| `"omrs-icon-information-filled"` \| `"omrs-icon-information-square"` \| `"omrs-icon-inventory-management"` \| `"omrs-icon-lab-order"` \| `"omrs-icon-list-checked"` \| `"omrs-icon-location"` \| `"omrs-icon-material-order"` \| `"omrs-icon-maximize"` \| `"omrs-icon-medication"` \| `"omrs-icon-message-queue"` \| `"omrs-icon-microscope"` \| `"omrs-icon-money"` \| `"omrs-icon-mother"` \| `"omrs-icon-movement"` \| `"omrs-icon-overflow-menu--horizontal"` \| `"omrs-icon-overflow-menu--vertical"` \| `"omrs-icon-password"` \| `"omrs-icon-pedestrian-family"` \| `"omrs-icon-pen"` \| `"omrs-icon-printer"` \| `"omrs-icon-procedure-order"` \| `"omrs-icon-programs"` \| `"omrs-icon-renew"` \| `"omrs-icon-referral-order"` \| `"omrs-icon-report"` \| `"omrs-icon-reset"` \| `"omrs-icon-save"` \| `"omrs-icon-search"` \| `"omrs-icon-settings"` \| `"omrs-icon-shopping-cart"` \| `"omrs-icon-shopping-cart--arrow-down"` \| `"omrs-icon-sticky-note-add"` \| `"omrs-icon-switcher"` \| `"omrs-icon-syringe"` \| `"omrs-icon-table-of-contents"` \| `"omrs-icon-table"` \| `"omrs-icon-time"` \| `"omrs-icon-tools"` \| `"omrs-icon-translate"` \| `"omrs-icon-trash-can"` \| `"omrs-icon-tree-view--alt"` \| `"omrs-icon-user-avatar"` \| `"omrs-icon-user-follow"` \| `"omrs-icon-user-xray"` \| `"omrs-icon-user"` \| `"omrs-icon-view-off"` \| `"omrs-icon-view"` \| `"omrs-icon-warning"`
|
|
19
|
+
> `optional` **icon**: `"omrs-icon-activity"` \| `"omrs-icon-add"` \| `"omrs-icon-arrow-down"` \| `"omrs-icon-arrow-left"` \| `"omrs-icon-arrow-right"` \| `"omrs-icon-arrow-up"` \| `"omrs-icon-baby"` \| `"omrs-icon-calendar-heat-map"` \| `"omrs-icon-calendar"` \| `"omrs-icon-caret-down"` \| `"omrs-icon-caret-left"` \| `"omrs-icon-caret-right"` \| `"omrs-icon-caret-up"` \| `"omrs-icon-chart-average"` \| `"omrs-icon-checkmark-filled"` \| `"omrs-icon-checkmark-outline"` \| `"omrs-icon-chemistry"` \| `"omrs-icon-chevron-down"` \| `"omrs-icon-chevron-left"` \| `"omrs-icon-chevron-right"` \| `"omrs-icon-chevron-up"` \| `"omrs-icon-close"` \| `"omrs-icon-close-filled"` \| `"omrs-icon-close-outline"` \| `"omrs-icon-document"` \| `"omrs-icon-document-attachment"` \| `"omrs-icon-download"` \| `"omrs-icon-drug-order"` \| `"omrs-icon-edit"` \| `"omrs-icon-event-schedule"` \| `"omrs-icon-events"` \| `"omrs-icon-gender-female"` \| `"omrs-icon-gender-male"` \| `"omrs-icon-gender-other"` \| `"omrs-icon-gender-unknown"` \| `"omrs-icon-generic-order-type"` \| `"omrs-icon-group"` \| `"omrs-icon-group-access"` \| `"omrs-icon-hospital-bed"` \| `"omrs-icon-image-medical"` \| `"omrs-icon-information"` \| `"omrs-icon-information-filled"` \| `"omrs-icon-information-square"` \| `"omrs-icon-inventory-management"` \| `"omrs-icon-lab-order"` \| `"omrs-icon-list-checked"` \| `"omrs-icon-location"` \| `"omrs-icon-material-order"` \| `"omrs-icon-maximize"` \| `"omrs-icon-medication"` \| `"omrs-icon-message-queue"` \| `"omrs-icon-microscope"` \| `"omrs-icon-money"` \| `"omrs-icon-mother"` \| `"omrs-icon-movement"` \| `"omrs-icon-overflow-menu--horizontal"` \| `"omrs-icon-overflow-menu--vertical"` \| `"omrs-icon-password"` \| `"omrs-icon-pedestrian-family"` \| `"omrs-icon-pen"` \| `"omrs-icon-printer"` \| `"omrs-icon-procedure-order"` \| `"omrs-icon-programs"` \| `"omrs-icon-renew"` \| `"omrs-icon-referral-order"` \| `"omrs-icon-report"` \| `"omrs-icon-reset"` \| `"omrs-icon-save"` \| `"omrs-icon-search"` \| `"omrs-icon-settings"` \| `"omrs-icon-shopping-cart"` \| `"omrs-icon-shopping-cart--arrow-down"` \| `"omrs-icon-sticky-note-add"` \| `"omrs-icon-switcher"` \| `"omrs-icon-syringe"` \| `"omrs-icon-table-of-contents"` \| `"omrs-icon-table"` \| `"omrs-icon-time"` \| `"omrs-icon-tools"` \| `"omrs-icon-translate"` \| `"omrs-icon-trash-can"` \| `"omrs-icon-tree-view--alt"` \| `"omrs-icon-user-avatar"` \| `"omrs-icon-user-follow"` \| `"omrs-icon-user-xray"` \| `"omrs-icon-user"` \| `"omrs-icon-view-off"` \| `"omrs-icon-view"` \| `"omrs-icon-warning"`
|
|
20
20
|
|
|
21
21
|
Defined in: [packages/framework/esm-styleguide/src/dashboard-extension/index.tsx:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/dashboard-extension/index.tsx#L14)
|
|
22
22
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / Drug
|
|
2
|
+
|
|
3
|
+
# Interface: Drug
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L3)
|
|
6
|
+
|
|
7
|
+
## Extends
|
|
8
|
+
|
|
9
|
+
- `OpenmrsResource`
|
|
10
|
+
|
|
11
|
+
## Indexable
|
|
12
|
+
|
|
13
|
+
\[`anythingElse`: `string`\]: `any`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### auditInfo?
|
|
18
|
+
|
|
19
|
+
> `optional` **auditInfo**: `AuditInfo`
|
|
20
|
+
|
|
21
|
+
Defined in: packages/framework/esm-api/dist/types/openmrs-resource.d.ts:14
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
`OpenmrsResource.auditInfo`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### concept
|
|
30
|
+
|
|
31
|
+
> **concept**: `Concept`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L6)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### display
|
|
38
|
+
|
|
39
|
+
> **display**: `string`
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L8)
|
|
42
|
+
|
|
43
|
+
#### Overrides
|
|
44
|
+
|
|
45
|
+
`OpenmrsResource.display`
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### dosageForm
|
|
50
|
+
|
|
51
|
+
> **dosageForm**: `OpenmrsResource`
|
|
52
|
+
|
|
53
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L7)
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### links?
|
|
58
|
+
|
|
59
|
+
> `optional` **links**: `Link`[]
|
|
60
|
+
|
|
61
|
+
Defined in: packages/framework/esm-api/dist/types/openmrs-resource.d.ts:13
|
|
62
|
+
|
|
63
|
+
#### Inherited from
|
|
64
|
+
|
|
65
|
+
`OpenmrsResource.links`
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### resourceVersion?
|
|
70
|
+
|
|
71
|
+
> `optional` **resourceVersion**: `string`
|
|
72
|
+
|
|
73
|
+
Defined in: packages/framework/esm-api/dist/types/openmrs-resource.d.ts:15
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
`OpenmrsResource.resourceVersion`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### strength
|
|
82
|
+
|
|
83
|
+
> **strength**: `string`
|
|
84
|
+
|
|
85
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L5)
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### uuid
|
|
90
|
+
|
|
91
|
+
> **uuid**: `string`
|
|
92
|
+
|
|
93
|
+
Defined in: [packages/framework/esm-emr-api/src/types/drug-resource.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/drug-resource.ts#L4)
|
|
94
|
+
|
|
95
|
+
#### Overrides
|
|
96
|
+
|
|
97
|
+
`OpenmrsResource.uuid`
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / EmptyCardProps
|
|
2
|
+
|
|
3
|
+
# Interface: EmptyCardProps
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx:9](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx#L9)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### displayText
|
|
10
|
+
|
|
11
|
+
> **displayText**: `string`
|
|
12
|
+
|
|
13
|
+
Defined in: [packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx#L11)
|
|
14
|
+
|
|
15
|
+
The name of the type of item that would be displayed here if not empty. This must be a pre-translated string.
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### headerTitle
|
|
20
|
+
|
|
21
|
+
> **headerTitle**: `string`
|
|
22
|
+
|
|
23
|
+
Defined in: [packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx#L13)
|
|
24
|
+
|
|
25
|
+
The title to use for this empty component. This must be a pre-translated string.
|
|
26
|
+
|
|
27
|
+
## Methods
|
|
28
|
+
|
|
29
|
+
### launchForm()?
|
|
30
|
+
|
|
31
|
+
> `optional` **launchForm**(): `void`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/empty-card/empty-card.component.tsx#L15)
|
|
34
|
+
|
|
35
|
+
A callback to invoke when the user tries to record a new item.
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`void`
|
|
@@ -10,7 +10,9 @@ Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.compo
|
|
|
10
10
|
|
|
11
11
|
> **error**: `any`
|
|
12
12
|
|
|
13
|
-
Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.component.tsx:
|
|
13
|
+
Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.component.tsx:9](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/error-state/error-state.component.tsx#L9)
|
|
14
|
+
|
|
15
|
+
The error that caused this error card to be rendered. Expected to be a failed fetch result.
|
|
14
16
|
|
|
15
17
|
***
|
|
16
18
|
|
|
@@ -18,4 +20,6 @@ Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.compo
|
|
|
18
20
|
|
|
19
21
|
> **headerTitle**: `string`
|
|
20
22
|
|
|
21
|
-
Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.component.tsx:
|
|
23
|
+
Defined in: [packages/framework/esm-styleguide/src/error-state/error-state.component.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/error-state/error-state.component.tsx#L11)
|
|
24
|
+
|
|
25
|
+
The title to use for this empty component. This must be a pre-translated string.
|