@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.
Files changed (72) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/docs/API.md +0 -14
  3. package/docs/functions/calculateInterpretation.md +2 -2
  4. package/docs/functions/normalizeInterpretation.md +3 -3
  5. package/docs/interfaces/FeatureFlagDefinition.md +4 -4
  6. package/docs/interfaces/NumericObservationProps.md +1 -1
  7. package/docs/interfaces/OpenmrsAppRoutes.md +11 -31
  8. package/docs/interfaces/OpenmrsRoutes.md +3 -3
  9. package/docs/interfaces/ResourceLoader.md +2 -2
  10. package/docs/interfaces/WorkspaceDefinition2.md +5 -5
  11. package/docs/interfaces/WorkspaceGroupDefinition2.md +6 -6
  12. package/docs/interfaces/WorkspaceWindowDefinition2.md +7 -7
  13. package/docs/type-aliases/NameUse.md +1 -1
  14. package/docs/type-aliases/PictogramId.md +1 -1
  15. package/docs/type-aliases/PictogramProps.md +3 -3
  16. package/docs/type-aliases/SvgPictogramProps.md +3 -3
  17. package/docs/variables/AppointmentsAltPictogram.md +1 -1
  18. package/docs/variables/AppointmentsPictogram.md +1 -1
  19. package/docs/variables/Assessment1Pictogram.md +1 -1
  20. package/docs/variables/Assessment2Pictogram.md +1 -1
  21. package/docs/variables/BloodBankPictogram.md +1 -1
  22. package/docs/variables/CardiologyPictogram.md +1 -1
  23. package/docs/variables/CtScanPictogram.md +1 -1
  24. package/docs/variables/DentistryPictogram.md +1 -1
  25. package/docs/variables/DigitalTrustPictogram.md +1 -1
  26. package/docs/variables/EmergencyDepartmentPictogram.md +1 -1
  27. package/docs/variables/FacilityPictogram.md +1 -1
  28. package/docs/variables/GeriatricsPictogram.md +1 -1
  29. package/docs/variables/GynaecologyPictogram.md +1 -1
  30. package/docs/variables/HomePictogram.md +1 -1
  31. package/docs/variables/InPatientPictogram.md +1 -1
  32. package/docs/variables/LaboratoryPictogram.md +1 -1
  33. package/docs/variables/Labs2Pictogram.md +1 -1
  34. package/docs/variables/MaybePictogram.md +1 -1
  35. package/docs/variables/MetadataExportPictogram.md +1 -1
  36. package/docs/variables/ObstetricsPictogram.md +1 -1
  37. package/docs/variables/PatientDocumentsPictogram.md +7 -0
  38. package/docs/variables/PatientListsPictogram.md +1 -1
  39. package/docs/variables/PatientSearchPictogram.md +1 -1
  40. package/docs/variables/PatientsPictogram.md +1 -1
  41. package/docs/variables/PaymentsDeskPictogram.md +1 -1
  42. package/docs/variables/Pharmacy2Pictogram.md +1 -1
  43. package/docs/variables/PharmacyPictogram.md +1 -1
  44. package/docs/variables/Pictogram.md +1 -1
  45. package/docs/variables/RegistrationPictogram.md +1 -1
  46. package/docs/variables/ServiceQueuesPictogram.md +1 -1
  47. package/docs/variables/StockManagementPictogram.md +1 -1
  48. package/docs/variables/TransferPictogram.md +1 -1
  49. package/docs/variables/TriagePictogram.md +1 -1
  50. package/docs/variables/XrayPictogram.md +1 -1
  51. package/docs/variables/pictogramIds.md +1 -1
  52. package/mock-jest.tsx +0 -7
  53. package/mock.tsx +0 -7
  54. package/package.json +19 -19
  55. package/docs/functions/WorkspaceContainer.md +0 -59
  56. package/docs/functions/closeWorkspace.md +0 -32
  57. package/docs/functions/launchWorkspace.md +0 -61
  58. package/docs/functions/launchWorkspaceGroup.md +0 -43
  59. package/docs/functions/navigateAndLaunchWorkspace.md +0 -48
  60. package/docs/functions/useWorkspaces.md +0 -16
  61. package/docs/interfaces/ActionMenuButtonProps.md +0 -67
  62. package/docs/interfaces/CloseWorkspaceOptions.md +0 -54
  63. package/docs/interfaces/DefaultWorkspaceProps.md +0 -113
  64. package/docs/interfaces/OpenWorkspace.md +0 -281
  65. package/docs/interfaces/Prompt.md +0 -53
  66. package/docs/interfaces/WorkspaceContainerProps.md +0 -64
  67. package/docs/interfaces/WorkspaceGroupDefinition.md +0 -25
  68. package/docs/interfaces/WorkspaceRegistration.md +0 -103
  69. package/docs/interfaces/WorkspacesInfo.md +0 -61
  70. package/docs/type-aliases/WorkspaceDefinition.md +0 -118
  71. package/docs/type-aliases/WorkspaceWindowState.md +0 -7
  72. package/docs/variables/ActionMenuButton.md +0 -12
@@ -1,103 +0,0 @@
1
- [O3 Framework](../API.md) / WorkspaceRegistration
2
-
3
- # Interface: WorkspaceRegistration
4
-
5
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:9](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L9)
6
-
7
- See [[WorkspaceDefinition]] for more information about these properties
8
-
9
- ## Extended by
10
-
11
- - [`OpenWorkspace`](OpenWorkspace.md)
12
-
13
- ## Properties
14
-
15
- ### canHide
16
-
17
- > **canHide**: `boolean`
18
-
19
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L14)
20
-
21
- ***
22
-
23
- ### canMaximize
24
-
25
- > **canMaximize**: `boolean`
26
-
27
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L15)
28
-
29
- ***
30
-
31
- ### groups
32
-
33
- > **groups**: `string`[]
34
-
35
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:20](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L20)
36
-
37
- ***
38
-
39
- ### moduleName
40
-
41
- > **moduleName**: `string`
42
-
43
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:19](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L19)
44
-
45
- ***
46
-
47
- ### name
48
-
49
- > **name**: `string`
50
-
51
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L10)
52
-
53
- ***
54
-
55
- ### preferredWindowSize
56
-
57
- > **preferredWindowSize**: [`WorkspaceWindowState`](../type-aliases/WorkspaceWindowState.md)
58
-
59
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L17)
60
-
61
- ***
62
-
63
- ### title
64
-
65
- > **title**: `string`
66
-
67
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L11)
68
-
69
- ***
70
-
71
- ### titleNode?
72
-
73
- > `optional` **titleNode**: `ReactNode`
74
-
75
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L12)
76
-
77
- ***
78
-
79
- ### type
80
-
81
- > **type**: `string`
82
-
83
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L13)
84
-
85
- ***
86
-
87
- ### width
88
-
89
- > **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
90
-
91
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L16)
92
-
93
- ## Methods
94
-
95
- ### load()
96
-
97
- > **load**(): `Promise`\<`LifeCycles`\>
98
-
99
- Defined in: [packages/framework/esm-extensions/src/workspaces.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/workspaces.ts#L18)
100
-
101
- #### Returns
102
-
103
- `Promise`\<`LifeCycles`\>
@@ -1,61 +0,0 @@
1
- [O3 Framework](../API.md) / WorkspacesInfo
2
-
3
- # Interface: WorkspacesInfo
4
-
5
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:556](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L556)
6
-
7
- ## Properties
8
-
9
- ### active
10
-
11
- > **active**: `boolean`
12
-
13
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:557](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L557)
14
-
15
- ***
16
-
17
- ### prompt
18
-
19
- > **prompt**: `null` \| [`Prompt`](Prompt.md)
20
-
21
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:558](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L558)
22
-
23
- ***
24
-
25
- ### workspaceGroup?
26
-
27
- > `optional` **workspaceGroup**: `object`
28
-
29
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:561](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L561)
30
-
31
- #### cleanup()?
32
-
33
- > `optional` **cleanup**(): `void`
34
-
35
- ##### Returns
36
-
37
- `void`
38
-
39
- #### members
40
-
41
- > **members**: `string`[]
42
-
43
- #### name
44
-
45
- > **name**: `string`
46
-
47
- ***
48
-
49
- ### workspaces
50
-
51
- > **workspaces**: [`OpenWorkspace`](OpenWorkspace.md)[]
52
-
53
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:560](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L560)
54
-
55
- ***
56
-
57
- ### workspaceWindowState
58
-
59
- > **workspaceWindowState**: [`WorkspaceWindowState`](../type-aliases/WorkspaceWindowState.md)
60
-
61
- Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:559](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L559)
@@ -1,118 +0,0 @@
1
- [O3 Framework](../API.md) / WorkspaceDefinition
2
-
3
- # Type Alias: WorkspaceDefinition
4
-
5
- > **WorkspaceDefinition** = `object`
6
-
7
- Defined in: [packages/framework/esm-globals/src/types.ts:211](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L211)
8
-
9
- A definition of a workspace as extracted from an app's routes.json
10
-
11
- ## Properties
12
-
13
- ### canHide?
14
-
15
- > `optional` **canHide**: `boolean`
16
-
17
- Defined in: [packages/framework/esm-globals/src/types.ts:227](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L227)
18
-
19
- ***
20
-
21
- ### canMaximize?
22
-
23
- > `optional` **canMaximize**: `boolean`
24
-
25
- Defined in: [packages/framework/esm-globals/src/types.ts:228](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L228)
26
-
27
- ***
28
-
29
- ### component
30
-
31
- > **component**: `string`
32
-
33
- Defined in: [packages/framework/esm-globals/src/types.ts:264](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L264)
34
-
35
- The name of the component exported by this frontend module.
36
-
37
- ***
38
-
39
- ### groups
40
-
41
- > **groups**: `string`[]
42
-
43
- Defined in: [packages/framework/esm-globals/src/types.ts:260](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L260)
44
-
45
- Workspaces can open either independently or as part of a "workspace group". A
46
- "workspace group" groups related workspaces together, so that only one is visible
47
- at a time. For example,
48
-
49
- #### Example
50
-
51
- ```ts
52
- {
53
- * name: 'order-basket',
54
- * type: 'order',
55
- * groups: ['ward-patient']
56
- * }
57
-
58
- This means that the 'order-basket' workspace can be opened independently, or only
59
- in the 'ward-patient'.
60
- If a workspace group is already open and a new workspace is launched, and the
61
- groups in the newly launched workspace do not include the currently open group’s
62
- name, the entire workspace group will close, and the new workspace will launch independently.
63
- ```
64
-
65
- ***
66
-
67
- ### name
68
-
69
- > **name**: `string`
70
-
71
- Defined in: [packages/framework/esm-globals/src/types.ts:215](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L215)
72
-
73
- The name of this workspace. This is used to launch the workspace.
74
-
75
- ***
76
-
77
- ### preferredWindowSize?
78
-
79
- > `optional` **preferredWindowSize**: [`WorkspaceWindowState`](WorkspaceWindowState.md)
80
-
81
- Defined in: [packages/framework/esm-globals/src/types.ts:238](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L238)
82
-
83
- Launches the workspace in the preferred size, it defaults to the 'narrow' width
84
-
85
- ***
86
-
87
- ### title
88
-
89
- > **title**: `string`
90
-
91
- Defined in: [packages/framework/esm-globals/src/types.ts:220](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L220)
92
-
93
- The title of the workspace. This will be looked up as a key in the translations of the module
94
- defining the workspace.
95
-
96
- ***
97
-
98
- ### type
99
-
100
- > **type**: `string`
101
-
102
- Defined in: [packages/framework/esm-globals/src/types.ts:226](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L226)
103
-
104
- The type of the workspace. Only one of each "type" of workspace is allowed to be open at a
105
- time. The default is "form". If the right sidebar is in use, then the type determines which
106
- right sidebar icon corresponds to the workspace.
107
-
108
- ***
109
-
110
- ### width?
111
-
112
- > `optional` **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
113
-
114
- Defined in: [packages/framework/esm-globals/src/types.ts:234](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L234)
115
-
116
- Controls the width of the workspace. The default is "narrow" and this should only be
117
- changed to "wider" if the workspace itself has internal navigation, like the form editor.
118
- The width "extra-wide" is for workspaces that contain their own sidebar.
@@ -1,7 +0,0 @@
1
- [O3 Framework](../API.md) / WorkspaceWindowState
2
-
3
- # Type Alias: WorkspaceWindowState
4
-
5
- > **WorkspaceWindowState** = `"maximized"` \| `"hidden"` \| `"normal"`
6
-
7
- Defined in: [packages/framework/esm-globals/src/types.ts:206](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L206)
@@ -1,12 +0,0 @@
1
- [O3 Framework](../API.md) / ActionMenuButton
2
-
3
- # Variable: ActionMenuButton
4
-
5
- > `const` **ActionMenuButton**: `React.FC`\<[`ActionMenuButtonProps`](../interfaces/ActionMenuButtonProps.md)\>
6
-
7
- Defined in: [packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/action-menu-button/action-menu-button.component.tsx#L42)
8
-
9
- ## Depcreated
10
-
11
- migrate to workspace v2 and use ActionMenuButton2. See:
12
- https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide