@openmrs/esm-framework 10.0.1-pre.5652 → 10.0.1-pre.5670
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 -1
- package/docs/API.md +0 -14
- package/docs/functions/calculateInterpretation.md +2 -2
- package/docs/functions/normalizeInterpretation.md +3 -3
- package/docs/interfaces/FeatureFlagDefinition.md +4 -4
- package/docs/interfaces/NumericObservationProps.md +1 -1
- package/docs/interfaces/OpenmrsAppRoutes.md +11 -31
- package/docs/interfaces/OpenmrsRoutes.md +3 -3
- package/docs/interfaces/ResourceLoader.md +2 -2
- package/docs/interfaces/WorkspaceDefinition2.md +5 -5
- package/docs/interfaces/WorkspaceGroupDefinition2.md +6 -6
- package/docs/interfaces/WorkspaceWindowDefinition2.md +7 -7
- package/docs/type-aliases/NameUse.md +1 -1
- package/docs/type-aliases/PictogramId.md +1 -1
- package/docs/type-aliases/PictogramProps.md +3 -3
- package/docs/type-aliases/SvgPictogramProps.md +3 -3
- package/docs/variables/AppointmentsAltPictogram.md +1 -1
- package/docs/variables/AppointmentsPictogram.md +1 -1
- package/docs/variables/Assessment1Pictogram.md +1 -1
- package/docs/variables/Assessment2Pictogram.md +1 -1
- package/docs/variables/BloodBankPictogram.md +1 -1
- package/docs/variables/CardiologyPictogram.md +1 -1
- package/docs/variables/CtScanPictogram.md +1 -1
- package/docs/variables/DentistryPictogram.md +1 -1
- package/docs/variables/DigitalTrustPictogram.md +1 -1
- package/docs/variables/EmergencyDepartmentPictogram.md +1 -1
- package/docs/variables/FacilityPictogram.md +1 -1
- package/docs/variables/GeriatricsPictogram.md +1 -1
- package/docs/variables/GynaecologyPictogram.md +1 -1
- package/docs/variables/HomePictogram.md +1 -1
- package/docs/variables/InPatientPictogram.md +1 -1
- package/docs/variables/LaboratoryPictogram.md +1 -1
- package/docs/variables/Labs2Pictogram.md +1 -1
- package/docs/variables/MaybePictogram.md +1 -1
- package/docs/variables/MetadataExportPictogram.md +1 -1
- package/docs/variables/ObstetricsPictogram.md +1 -1
- package/docs/variables/PatientDocumentsPictogram.md +7 -0
- package/docs/variables/PatientListsPictogram.md +1 -1
- package/docs/variables/PatientSearchPictogram.md +1 -1
- package/docs/variables/PatientsPictogram.md +1 -1
- package/docs/variables/PaymentsDeskPictogram.md +1 -1
- package/docs/variables/Pharmacy2Pictogram.md +1 -1
- package/docs/variables/PharmacyPictogram.md +1 -1
- package/docs/variables/Pictogram.md +1 -1
- package/docs/variables/RegistrationPictogram.md +1 -1
- package/docs/variables/ServiceQueuesPictogram.md +1 -1
- package/docs/variables/StockManagementPictogram.md +1 -1
- package/docs/variables/TransferPictogram.md +1 -1
- package/docs/variables/TriagePictogram.md +1 -1
- package/docs/variables/XrayPictogram.md +1 -1
- package/docs/variables/pictogramIds.md +1 -1
- package/mock-jest.tsx +0 -7
- package/mock.tsx +0 -7
- package/package.json +19 -19
- package/docs/functions/WorkspaceContainer.md +0 -59
- package/docs/functions/closeWorkspace.md +0 -32
- package/docs/functions/launchWorkspace.md +0 -61
- package/docs/functions/launchWorkspaceGroup.md +0 -43
- package/docs/functions/navigateAndLaunchWorkspace.md +0 -48
- package/docs/functions/useWorkspaces.md +0 -16
- package/docs/interfaces/ActionMenuButtonProps.md +0 -67
- package/docs/interfaces/CloseWorkspaceOptions.md +0 -54
- package/docs/interfaces/DefaultWorkspaceProps.md +0 -113
- package/docs/interfaces/OpenWorkspace.md +0 -281
- package/docs/interfaces/Prompt.md +0 -53
- package/docs/interfaces/WorkspaceContainerProps.md +0 -64
- package/docs/interfaces/WorkspaceGroupDefinition.md +0 -25
- package/docs/interfaces/WorkspaceRegistration.md +0 -103
- package/docs/interfaces/WorkspacesInfo.md +0 -61
- package/docs/type-aliases/WorkspaceDefinition.md +0 -118
- package/docs/type-aliases/WorkspaceWindowState.md +0 -7
- package/docs/variables/ActionMenuButton.md +0 -12
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **GynaecologyPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:121](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L121)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **HomePictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\> = `FacilityPictogram`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:232](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L232)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **InPatientPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:127](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L127)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **LaboratoryPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:133](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L133)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **Labs2Pictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:139](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L139)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **MaybePictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<`object` & [`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:245](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L245)
|
|
8
8
|
|
|
9
9
|
This is a utility component that takes an `pictogram` and render it if the sprite for the pictogram
|
|
10
10
|
is available. The goal is to make it easier to conditionally render configuration-specified pictograms.
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **MetadataExportPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:145](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L145)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **ObstetricsPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:151](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L151)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[O3 Framework](../API.md) / PatientDocumentsPictogram
|
|
2
|
+
|
|
3
|
+
# Variable: PatientDocumentsPictogram
|
|
4
|
+
|
|
5
|
+
> `const` **PatientDocumentsPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:157](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L157)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **PatientListsPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\> = `PatientsPictogram`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:234](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L234)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **PatientSearchPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:163](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L163)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **PatientsPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:169](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L169)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **PaymentsDeskPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:175](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L175)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **Pharmacy2Pictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:187](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L187)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **PharmacyPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:181](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L181)
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **Pictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`SvgPictogramProps`](../type-aliases/SvgPictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:288](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L288)
|
|
8
8
|
|
|
9
9
|
This is a utility type for custom pictograms. Please maintain alphabetical order when adding new pictograms for readability.
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RegistrationPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:193](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L193)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **ServiceQueuesPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:199](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L199)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **StockManagementPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:205](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L205)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **TransferPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:211](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L211)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **TriagePictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:217](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L217)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **XrayPictogram**: `MemoExoticComponent`\<`ForwardRefExoticComponent`\<[`PictogramProps`](../type-aliases/PictogramProps.md) & `RefAttributes`\<`SVGSVGElement`\>\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:223](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L223)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Variable: pictogramIds
|
|
4
4
|
|
|
5
|
-
> `const` **pictogramIds**: readonly \[`"omrs-pict-appointments"`, `"omrs-pict-assessment-1"`, `"omrs-pict-assessment-2"`, `"omrs-pict-blood-bank"`, `"omrs-pict-cardiology"`, `"omrs-pict-ct-scan"`, `"omrs-pict-dentistry"`, `"omrs-pict-digital-trust"`, `"omrs-pict-emergency-department"`, `"omrs-pict-facility"`, `"omrs-pict-geriatrics"`, `"omrs-pict-gynaecology"`, `"omrs-pict-in-patient"`, `"omrs-pict-laboratory"`, `"omrs-pict-labs-2"`, `"omrs-pict-metadata-export"`, `"omrs-pict-obstetrics"`, `"omrs-pict-patient-search"`, `"omrs-pict-patients"`, `"omrs-pict-payments-desk"`, `"omrs-pict-pharmacy"`, `"omrs-pict-pharmacy-2"`, `"omrs-pict-registration"`, `"omrs-pict-service-queues"`, `"omrs-pict-stock-management"`, `"omrs-pict-transfer"`, `"omrs-pict-triage"`, `"omrs-pict-x-ray"`\]
|
|
5
|
+
> `const` **pictogramIds**: readonly \[`"omrs-pict-appointments"`, `"omrs-pict-assessment-1"`, `"omrs-pict-assessment-2"`, `"omrs-pict-blood-bank"`, `"omrs-pict-cardiology"`, `"omrs-pict-ct-scan"`, `"omrs-pict-dentistry"`, `"omrs-pict-digital-trust"`, `"omrs-pict-emergency-department"`, `"omrs-pict-facility"`, `"omrs-pict-geriatrics"`, `"omrs-pict-gynaecology"`, `"omrs-pict-in-patient"`, `"omrs-pict-laboratory"`, `"omrs-pict-labs-2"`, `"omrs-pict-metadata-export"`, `"omrs-pict-obstetrics"`, `"omrs-pict-patient-documents"`, `"omrs-pict-patient-search"`, `"omrs-pict-patients"`, `"omrs-pict-payments-desk"`, `"omrs-pict-pharmacy"`, `"omrs-pict-pharmacy-2"`, `"omrs-pict-registration"`, `"omrs-pict-service-queues"`, `"omrs-pict-stock-management"`, `"omrs-pict-transfer"`, `"omrs-pict-triage"`, `"omrs-pict-x-ray"`\]
|
|
6
6
|
|
|
7
7
|
Defined in: [packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L8)
|
|
8
8
|
|
package/mock-jest.tsx
CHANGED
|
@@ -115,22 +115,15 @@ export const usePatientPhoto = jest.fn(() => ({
|
|
|
115
115
|
error: null,
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
|
-
export const ActionMenuButton = jest.fn(({ handler }) => <button onClick={handler}>Action Menu Button</button>);
|
|
119
118
|
export const ActionMenuButton2 = jest.fn(({ label, tagContent, icon }) => (
|
|
120
119
|
<button>
|
|
121
120
|
{icon} {tagContent} {label}
|
|
122
121
|
</button>
|
|
123
122
|
));
|
|
124
123
|
export const ActionMenu = jest.fn(() => <div>Action Menu</div>);
|
|
125
|
-
export const WorkspaceContainer = jest.fn(() => <div>Workspace Container</div>);
|
|
126
|
-
export const closeWorkspace = jest.fn();
|
|
127
|
-
export const launchWorkspace = jest.fn();
|
|
128
124
|
export const launchWorkspace2 = jest.fn();
|
|
129
|
-
export const launchWorkspaceGroup = jest.fn();
|
|
130
125
|
export const launchWorkspaceGroup2 = jest.fn();
|
|
131
126
|
export const closeWorkspaceGroup2 = jest.fn();
|
|
132
|
-
export const navigateAndLaunchWorkspace = jest.fn();
|
|
133
|
-
export const useWorkspaces = jest.fn();
|
|
134
127
|
export const useWorkspace2Context = jest.fn();
|
|
135
128
|
|
|
136
129
|
export const OpenmrsDatePicker = jest.fn(({ id, labelText, value, onChange, invalid, isInvalid, invalidText }) => (
|
package/mock.tsx
CHANGED
|
@@ -116,22 +116,15 @@ export const usePatientPhoto = vi.fn(() => ({
|
|
|
116
116
|
error: null,
|
|
117
117
|
}));
|
|
118
118
|
|
|
119
|
-
export const ActionMenuButton = vi.fn(({ handler }) => <button onClick={handler}>Action Menu Button</button>);
|
|
120
119
|
export const ActionMenuButton2 = vi.fn(({ label, tagContent, icon }) => (
|
|
121
120
|
<button>
|
|
122
121
|
{icon} {tagContent} {label}
|
|
123
122
|
</button>
|
|
124
123
|
));
|
|
125
124
|
export const ActionMenu = vi.fn(() => <div>Action Menu</div>);
|
|
126
|
-
export const WorkspaceContainer = vi.fn(() => <div>Workspace Container</div>);
|
|
127
|
-
export const closeWorkspace = vi.fn();
|
|
128
|
-
export const launchWorkspace = vi.fn();
|
|
129
125
|
export const launchWorkspace2 = vi.fn();
|
|
130
|
-
export const launchWorkspaceGroup = vi.fn();
|
|
131
126
|
export const launchWorkspaceGroup2 = vi.fn();
|
|
132
127
|
export const closeWorkspaceGroup2 = vi.fn();
|
|
133
|
-
export const navigateAndLaunchWorkspace = vi.fn();
|
|
134
|
-
export const useWorkspaces = vi.fn();
|
|
135
128
|
export const useWorkspace2Context = vi.fn();
|
|
136
129
|
|
|
137
130
|
export const OpenmrsDatePicker = vi.fn(({ id, labelText, value, onChange, invalid, isInvalid, invalidText }) => (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "10.0.1-pre.
|
|
3
|
+
"version": "10.0.1-pre.5670",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@openmrs/esm-api": "10.0.1-pre.
|
|
64
|
-
"@openmrs/esm-config": "10.0.1-pre.
|
|
65
|
-
"@openmrs/esm-context": "10.0.1-pre.
|
|
66
|
-
"@openmrs/esm-dynamic-loading": "10.0.1-pre.
|
|
67
|
-
"@openmrs/esm-emr-api": "10.0.1-pre.
|
|
68
|
-
"@openmrs/esm-error-handling": "10.0.1-pre.
|
|
69
|
-
"@openmrs/esm-expression-evaluator": "10.0.1-pre.
|
|
70
|
-
"@openmrs/esm-extensions": "10.0.1-pre.
|
|
71
|
-
"@openmrs/esm-feature-flags": "10.0.1-pre.
|
|
72
|
-
"@openmrs/esm-globals": "10.0.1-pre.
|
|
73
|
-
"@openmrs/esm-navigation": "10.0.1-pre.
|
|
74
|
-
"@openmrs/esm-react-utils": "10.0.1-pre.
|
|
75
|
-
"@openmrs/esm-routes": "10.0.1-pre.
|
|
76
|
-
"@openmrs/esm-state": "10.0.1-pre.
|
|
77
|
-
"@openmrs/esm-styleguide": "10.0.1-pre.
|
|
78
|
-
"@openmrs/esm-translations": "10.0.1-pre.
|
|
79
|
-
"@openmrs/esm-utils": "10.0.1-pre.
|
|
63
|
+
"@openmrs/esm-api": "10.0.1-pre.5670",
|
|
64
|
+
"@openmrs/esm-config": "10.0.1-pre.5670",
|
|
65
|
+
"@openmrs/esm-context": "10.0.1-pre.5670",
|
|
66
|
+
"@openmrs/esm-dynamic-loading": "10.0.1-pre.5670",
|
|
67
|
+
"@openmrs/esm-emr-api": "10.0.1-pre.5670",
|
|
68
|
+
"@openmrs/esm-error-handling": "10.0.1-pre.5670",
|
|
69
|
+
"@openmrs/esm-expression-evaluator": "10.0.1-pre.5670",
|
|
70
|
+
"@openmrs/esm-extensions": "10.0.1-pre.5670",
|
|
71
|
+
"@openmrs/esm-feature-flags": "10.0.1-pre.5670",
|
|
72
|
+
"@openmrs/esm-globals": "10.0.1-pre.5670",
|
|
73
|
+
"@openmrs/esm-navigation": "10.0.1-pre.5670",
|
|
74
|
+
"@openmrs/esm-react-utils": "10.0.1-pre.5670",
|
|
75
|
+
"@openmrs/esm-routes": "10.0.1-pre.5670",
|
|
76
|
+
"@openmrs/esm-state": "10.0.1-pre.5670",
|
|
77
|
+
"@openmrs/esm-styleguide": "10.0.1-pre.5670",
|
|
78
|
+
"@openmrs/esm-translations": "10.0.1-pre.5670",
|
|
79
|
+
"@openmrs/esm-utils": "10.0.1-pre.5670"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"dayjs": "1.x",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"swr": "2.x"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.
|
|
91
|
+
"@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5670",
|
|
92
92
|
"@swc/cli": "0.8.1",
|
|
93
93
|
"@swc/core": "1.15.21",
|
|
94
94
|
"@vitest/coverage-v8": "^4.1.2",
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / WorkspaceContainer
|
|
2
|
-
|
|
3
|
-
# Function: ~~WorkspaceContainer()~~
|
|
4
|
-
|
|
5
|
-
> **WorkspaceContainer**(`__namedParameters`): `Element`
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/container/workspace-container.component.tsx:81](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/container/workspace-container.component.tsx#L81)
|
|
8
|
-
|
|
9
|
-
Use this component to render the [workspace window](https://zeroheight.com/23a080e38/p/483a22-workspace)
|
|
10
|
-
in an app such as the patient chart, or a workspace overlay in an app such as the clinic dashboard.
|
|
11
|
-
This allows workspaces to be opened on the page where this component is mounted. This component
|
|
12
|
-
must not be mounted multiple times on the same page. If there are multiple apps on a page, only
|
|
13
|
-
one of those apps should use this component—it "hosts" the workspaces.
|
|
14
|
-
|
|
15
|
-
Workspaces may be opened with the [[launchWorkspace]] function from `@openmrs/esm-framework`
|
|
16
|
-
(among other options).
|
|
17
|
-
|
|
18
|
-
The `overlay` prop determines whether the workspace is rendered as an overlay or a window.
|
|
19
|
-
When a workspace window is opened, the other content on the screen will be pushed to the left.
|
|
20
|
-
When an overlay is opened, it will cover other content on the screen.
|
|
21
|
-
|
|
22
|
-
The context key is a string that appears in the URL, which defines the pages on which workspaces
|
|
23
|
-
are valid. If the URL changes in a way such that it no longer contains the context key, then
|
|
24
|
-
all workspaces will be closed. This ensures that, for example, workspaces on the home page do
|
|
25
|
-
not stay open when the user transitions to the patient dashboard; and also that workspaces do
|
|
26
|
-
not stay open when the user navigates to a different patient. The context key must be a valid
|
|
27
|
-
sub-path of the URL, with no initial or trailing slash. So if the URL is
|
|
28
|
-
`https://example.com/patient/123/foo`, then `patient` and `patient/123` and `123/foo` are valid
|
|
29
|
-
context keys, but `patient/12` and `pati` are not.
|
|
30
|
-
|
|
31
|
-
An extension slot is provided in the workspace header. Its name is derived from the `featureName` of
|
|
32
|
-
the top-level component in which it is defined (feature names are generally provided in the lifecycle
|
|
33
|
-
functions in an app's `index.ts` file). The slot is named `workspace-header-${featureName}-slot`.
|
|
34
|
-
For the patient chart, this is `workspace-header-patient-chart-slot`.
|
|
35
|
-
|
|
36
|
-
This component also provides the [Siderail and Bottom Nav](https://zeroheight.com/23a080e38/p/948cf1-siderail-and-bottom-nav/b/86907e).
|
|
37
|
-
To use this, pass the `showSiderailAndBottomNav` prop. The Siderail is rendered on the right side of the screen
|
|
38
|
-
on desktop, and the Bottom Nav is rendered at the bottom of the screen on tablet or mobile. The sidebar/bottom-nav
|
|
39
|
-
menu provides an extension slot, to which buttons are attached as extensions. The slot
|
|
40
|
-
derives its name from the `featureName` of the top-level component in which this `WorkspaceContainer`
|
|
41
|
-
appears (feature names are generally provided in the lifecycle functions in an app's `index.ts` file).
|
|
42
|
-
The slot is named `action-menu-${featureName}-items-slot`. For the patient chart, this is
|
|
43
|
-
`action-menu-patient-chart-items-slot`.
|
|
44
|
-
|
|
45
|
-
This component also provides everything needed for workspace notifications to be rendered.
|
|
46
|
-
|
|
47
|
-
## Parameters
|
|
48
|
-
|
|
49
|
-
### \_\_namedParameters
|
|
50
|
-
|
|
51
|
-
[`WorkspaceContainerProps`](../interfaces/WorkspaceContainerProps.md)
|
|
52
|
-
|
|
53
|
-
## Returns
|
|
54
|
-
|
|
55
|
-
`Element`
|
|
56
|
-
|
|
57
|
-
## Deprecated
|
|
58
|
-
|
|
59
|
-
Workspace container is no longer needed with workspace v2.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / closeWorkspace
|
|
2
|
-
|
|
3
|
-
# Function: ~~closeWorkspace()~~
|
|
4
|
-
|
|
5
|
-
> **closeWorkspace**(`name`, `options`): `boolean`
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:453](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L453)
|
|
8
|
-
|
|
9
|
-
Function to close an opened workspace
|
|
10
|
-
|
|
11
|
-
## Parameters
|
|
12
|
-
|
|
13
|
-
### name
|
|
14
|
-
|
|
15
|
-
`string`
|
|
16
|
-
|
|
17
|
-
Workspace registration name
|
|
18
|
-
|
|
19
|
-
### options
|
|
20
|
-
|
|
21
|
-
[`CloseWorkspaceOptions`](../interfaces/CloseWorkspaceOptions.md) = `{}`
|
|
22
|
-
|
|
23
|
-
Options to close workspace
|
|
24
|
-
|
|
25
|
-
## Returns
|
|
26
|
-
|
|
27
|
-
`boolean`
|
|
28
|
-
|
|
29
|
-
## Deprecated
|
|
30
|
-
|
|
31
|
-
migrate to workspace v2 and call closeWorkspace from Workspace2DefinitionProps instead. See:
|
|
32
|
-
https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / launchWorkspace
|
|
2
|
-
|
|
3
|
-
# Function: ~~launchWorkspace()~~
|
|
4
|
-
|
|
5
|
-
> **launchWorkspace**\<`T`\>(`name`, `additionalProps?`): `void`
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:305](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L305)
|
|
8
|
-
|
|
9
|
-
This launches a workspace by its name. The workspace must have been registered.
|
|
10
|
-
Workspaces should be registered in the `routes.json` file.
|
|
11
|
-
|
|
12
|
-
For the workspace to appear, there must be either a `<WorkspaceOverlay />` or
|
|
13
|
-
a `<WorkspaceWindow />` component rendered.
|
|
14
|
-
|
|
15
|
-
The behavior of this function is as follows:
|
|
16
|
-
|
|
17
|
-
- If no workspaces are open, or if no other workspaces with the same type are open,
|
|
18
|
-
it will be opened and focused.
|
|
19
|
-
- If a workspace with the same name is already open, it will be displayed/focused,
|
|
20
|
-
if it was not already.
|
|
21
|
-
- If a workspace is launched and a workspace which cannot be hidden is already open,
|
|
22
|
-
a confirmation modal will pop up warning about closing the currently open workspace.
|
|
23
|
-
- If another workspace with the same type is open, the workspace will be brought to
|
|
24
|
-
the front and then a confirmation modal will pop up warning about closing the opened
|
|
25
|
-
workspace
|
|
26
|
-
|
|
27
|
-
Note that this function just manipulates the workspace store. The UI logic is handled
|
|
28
|
-
by the components that display workspaces.
|
|
29
|
-
|
|
30
|
-
Additional props can be passed to the workspace component being launched. Passing a
|
|
31
|
-
prop named `workspaceTitle` will override the title of the workspace.
|
|
32
|
-
|
|
33
|
-
## Type Parameters
|
|
34
|
-
|
|
35
|
-
### T
|
|
36
|
-
|
|
37
|
-
`T` *extends* `object` \| [`DefaultWorkspaceProps`](../interfaces/DefaultWorkspaceProps.md) = [`DefaultWorkspaceProps`](../interfaces/DefaultWorkspaceProps.md) & `object`
|
|
38
|
-
|
|
39
|
-
## Parameters
|
|
40
|
-
|
|
41
|
-
### name
|
|
42
|
-
|
|
43
|
-
`string`
|
|
44
|
-
|
|
45
|
-
The name of the workspace to launch
|
|
46
|
-
|
|
47
|
-
### additionalProps?
|
|
48
|
-
|
|
49
|
-
`Omit`\<`T`, keyof [`DefaultWorkspaceProps`](../interfaces/DefaultWorkspaceProps.md)\> & `object`
|
|
50
|
-
|
|
51
|
-
Props to pass to the workspace component being launched. Passing
|
|
52
|
-
a prop named `workspaceTitle` will override the title of the workspace.
|
|
53
|
-
|
|
54
|
-
## Returns
|
|
55
|
-
|
|
56
|
-
`void`
|
|
57
|
-
|
|
58
|
-
## Deprecated
|
|
59
|
-
|
|
60
|
-
migrate to workspace v2 and use launchWorkspace2 instead. See:
|
|
61
|
-
https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / launchWorkspaceGroup
|
|
2
|
-
|
|
3
|
-
# Function: ~~launchWorkspaceGroup()~~
|
|
4
|
-
|
|
5
|
-
> **launchWorkspaceGroup**(`groupName`, `args`): `void`
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:216](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L216)
|
|
8
|
-
|
|
9
|
-
Launches a workspace group with the specified name and configuration.
|
|
10
|
-
If there are any open workspaces, it will first close them before launching the new workspace group.
|
|
11
|
-
|
|
12
|
-
## Parameters
|
|
13
|
-
|
|
14
|
-
### groupName
|
|
15
|
-
|
|
16
|
-
`string`
|
|
17
|
-
|
|
18
|
-
The name of the workspace group to launch
|
|
19
|
-
|
|
20
|
-
### args
|
|
21
|
-
|
|
22
|
-
`LaunchWorkspaceGroupArg`
|
|
23
|
-
|
|
24
|
-
Configuration object for launching the workspace group
|
|
25
|
-
|
|
26
|
-
## Returns
|
|
27
|
-
|
|
28
|
-
`void`
|
|
29
|
-
|
|
30
|
-
## Example
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
launchWorkspaceGroup("myGroup", {
|
|
34
|
-
state: initialState,
|
|
35
|
-
onWorkspaceGroupLaunch: () => console.log("Workspace group launched"),
|
|
36
|
-
workspaceGroupCleanup: () => console.log("Cleaning up workspace group")
|
|
37
|
-
});
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Deprecated
|
|
41
|
-
|
|
42
|
-
migrate to workspace v2 and use launchWorkspaceGroup2 instead. See:
|
|
43
|
-
https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / navigateAndLaunchWorkspace
|
|
2
|
-
|
|
3
|
-
# Function: ~~navigateAndLaunchWorkspace()~~
|
|
4
|
-
|
|
5
|
-
> **navigateAndLaunchWorkspace**(`options`): `void`
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:407](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L407)
|
|
8
|
-
|
|
9
|
-
Use this function to navigate to a new page and launch a workspace on that page.
|
|
10
|
-
|
|
11
|
-
## Parameters
|
|
12
|
-
|
|
13
|
-
### options
|
|
14
|
-
|
|
15
|
-
The options for navigating and launching the workspace.
|
|
16
|
-
|
|
17
|
-
#### additionalProps?
|
|
18
|
-
|
|
19
|
-
`object`
|
|
20
|
-
|
|
21
|
-
Additional props to pass to the workspace component being launched.
|
|
22
|
-
|
|
23
|
-
#### contextKey
|
|
24
|
-
|
|
25
|
-
`string`
|
|
26
|
-
|
|
27
|
-
The context key used by the target page.
|
|
28
|
-
|
|
29
|
-
#### targetUrl
|
|
30
|
-
|
|
31
|
-
`string`
|
|
32
|
-
|
|
33
|
-
The URL to navigate to. Will be passed to [[navigate]].
|
|
34
|
-
|
|
35
|
-
#### workspaceName
|
|
36
|
-
|
|
37
|
-
`string`
|
|
38
|
-
|
|
39
|
-
The name of the workspace to launch.
|
|
40
|
-
|
|
41
|
-
## Returns
|
|
42
|
-
|
|
43
|
-
`void`
|
|
44
|
-
|
|
45
|
-
## Deprecated
|
|
46
|
-
|
|
47
|
-
migrate to workspace v2 and call launchWorkspace2 instead. See:
|
|
48
|
-
https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / useWorkspaces
|
|
2
|
-
|
|
3
|
-
# Function: ~~useWorkspaces()~~
|
|
4
|
-
|
|
5
|
-
> **useWorkspaces**(): [`WorkspacesInfo`](../interfaces/WorkspacesInfo.md)
|
|
6
|
-
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:568](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L568)
|
|
8
|
-
|
|
9
|
-
## Returns
|
|
10
|
-
|
|
11
|
-
[`WorkspacesInfo`](../interfaces/WorkspacesInfo.md)
|
|
12
|
-
|
|
13
|
-
## Deprecated
|
|
14
|
-
|
|
15
|
-
migrate to workspace v2. See:
|
|
16
|
-
https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
[O3 Framework](../API.md) / ActionMenuButtonProps
|
|
2
|
-
|
|
3
|
-
# Interface: ActionMenuButtonProps
|
|
4
|
-
|
|
5
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:29](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L29)
|
|
6
|
-
|
|
7
|
-
## Properties
|
|
8
|
-
|
|
9
|
-
### getIcon()
|
|
10
|
-
|
|
11
|
-
> **getIcon**: (`props`) => `Element`
|
|
12
|
-
|
|
13
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L30)
|
|
14
|
-
|
|
15
|
-
#### Parameters
|
|
16
|
-
|
|
17
|
-
##### props
|
|
18
|
-
|
|
19
|
-
`object`
|
|
20
|
-
|
|
21
|
-
#### Returns
|
|
22
|
-
|
|
23
|
-
`Element`
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### handler()
|
|
28
|
-
|
|
29
|
-
> **handler**: () => `void`
|
|
30
|
-
|
|
31
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L33)
|
|
32
|
-
|
|
33
|
-
#### Returns
|
|
34
|
-
|
|
35
|
-
`void`
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
|
-
### iconDescription
|
|
40
|
-
|
|
41
|
-
> **iconDescription**: `string`
|
|
42
|
-
|
|
43
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:32](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L32)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
### label
|
|
48
|
-
|
|
49
|
-
> **label**: `string`
|
|
50
|
-
|
|
51
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:31](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L31)
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### tagContent?
|
|
56
|
-
|
|
57
|
-
> `optional` **tagContent**: `ReactNode`
|
|
58
|
-
|
|
59
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L35)
|
|
60
|
-
|
|
61
|
-
***
|
|
62
|
-
|
|
63
|
-
### type
|
|
64
|
-
|
|
65
|
-
> **type**: `string`
|
|
66
|
-
|
|
67
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L34)
|