@openmrs/esm-framework 5.8.2-pre.2534 → 6.0.0
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 +6 -6
- package/dist/openmrs-esm-framework.js +1 -1
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +47 -15
- package/docs/classes/OpenmrsFetchError.md +15 -3
- package/docs/interfaces/CloseWorkspaceOptions.md +17 -0
- package/docs/interfaces/DefaultWorkspaceProps.md +4 -4
- package/docs/interfaces/FeatureFlagDefinition.md +3 -3
- package/docs/interfaces/FetchConfig.md +2 -2
- package/docs/interfaces/FetchError.md +34 -0
- package/docs/interfaces/OpenWorkspace.md +24 -28
- package/docs/interfaces/OpenmrsAppRoutes.md +8 -8
- package/docs/interfaces/PageHeaderContentProps.md +3 -3
- package/docs/interfaces/PageHeaderWrapperProps.md +2 -2
- package/docs/interfaces/Prompt.md +5 -5
- package/docs/interfaces/ResourceLoader.md +1 -1
- package/docs/interfaces/WorkspaceRegistration.md +7 -18
- package/docs/interfaces/WorkspacesInfo.md +22 -4
- package/jest.config.js +1 -0
- package/package.json +19 -20
- package/src/integration-tests/extension-config.test.tsx +21 -4
package/docs/API.md
CHANGED
@@ -262,6 +262,7 @@
|
|
262
262
|
|
263
263
|
- [closeWorkspace](API.md#closeworkspace)
|
264
264
|
- [launchWorkspace](API.md#launchworkspace)
|
265
|
+
- [launchWorkspaceGroup](API.md#launchworkspacegroup)
|
265
266
|
- [navigateAndLaunchWorkspace](API.md#navigateandlaunchworkspace)
|
266
267
|
- [useWorkspaces](API.md#useworkspaces)
|
267
268
|
|
@@ -609,7 +610,7 @@ ___
|
|
609
610
|
|
610
611
|
#### Defined in
|
611
612
|
|
612
|
-
[packages/framework/esm-globals/src/types.ts:
|
613
|
+
[packages/framework/esm-globals/src/types.ts:409](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L409)
|
613
614
|
|
614
615
|
___
|
615
616
|
|
@@ -622,7 +623,7 @@ Basically, this is the same as the app routes, with each routes definition keyed
|
|
622
623
|
|
623
624
|
#### Defined in
|
624
625
|
|
625
|
-
[packages/framework/esm-globals/src/types.ts:
|
626
|
+
[packages/framework/esm-globals/src/types.ts:400](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L400)
|
626
627
|
|
627
628
|
___
|
628
629
|
|
@@ -792,7 +793,7 @@ ___
|
|
792
793
|
|
793
794
|
### WorkspaceDefinition
|
794
795
|
|
795
|
-
Ƭ **WorkspaceDefinition**: { `canHide?`: `boolean` ; `canMaximize?`: `boolean` ; `
|
796
|
+
Ƭ **WorkspaceDefinition**: { `canHide?`: `boolean` ; `canMaximize?`: `boolean` ; `groups`: `string`[] ; `name`: `string` ; `preferredWindowSize?`: [`WorkspaceWindowState`](API.md#workspacewindowstate) ; `title`: `string` ; `type`: `string` ; `width?`: ``"narrow"`` \| ``"wider"`` \| ``"extra-wide"`` } & { `component`: `string` } \| { `component?`: `never` }
|
796
797
|
|
797
798
|
A definition of a workspace as extracted from an app's routes.json
|
798
799
|
|
@@ -925,7 +926,7 @@ ___
|
|
925
926
|
|
926
927
|
#### Defined in
|
927
928
|
|
928
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
929
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L30)
|
929
930
|
|
930
931
|
___
|
931
932
|
|
@@ -2343,7 +2344,7 @@ and some other content on the right side:
|
|
2343
2344
|
|
2344
2345
|
#### Defined in
|
2345
2346
|
|
2346
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
2347
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:58](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L58)
|
2347
2348
|
|
2348
2349
|
___
|
2349
2350
|
|
@@ -2366,7 +2367,7 @@ on its own, and the PageHeaderContent component is not needed.
|
|
2366
2367
|
|
2367
2368
|
#### Defined in
|
2368
2369
|
|
2369
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
2370
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:90](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L90)
|
2370
2371
|
|
2371
2372
|
___
|
2372
2373
|
|
@@ -2854,7 +2855,7 @@ To cancel the network request, simply call `subscription.unsubscribe();`
|
|
2854
2855
|
|
2855
2856
|
#### Defined in
|
2856
2857
|
|
2857
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
2858
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:271](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L271)
|
2858
2859
|
|
2859
2860
|
___
|
2860
2861
|
|
@@ -3411,7 +3412,7 @@ for more information about defining a config schema.
|
|
3411
3412
|
|
3412
3413
|
#### Defined in
|
3413
3414
|
|
3414
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3415
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:242](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L242)
|
3415
3416
|
|
3416
3417
|
___
|
3417
3418
|
|
@@ -3443,7 +3444,7 @@ of the execution of a function.
|
|
3443
3444
|
|
3444
3445
|
#### Defined in
|
3445
3446
|
|
3446
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3447
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:275](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L275)
|
3447
3448
|
|
3448
3449
|
___
|
3449
3450
|
|
@@ -3464,7 +3465,7 @@ ___
|
|
3464
3465
|
|
3465
3466
|
#### Defined in
|
3466
3467
|
|
3467
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3468
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:259](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L259)
|
3468
3469
|
|
3469
3470
|
___
|
3470
3471
|
|
@@ -6901,7 +6902,7 @@ invalid key to this function will result in a type error.
|
|
6901
6902
|
|
6902
6903
|
| Name | Type | Description |
|
6903
6904
|
| :------ | :------ | :------ |
|
6904
|
-
| `key` | ``"error"`` \| ``"change"`` \| ``"close"`` \| ``"other"`` \| ``"actions"`` \| ``"address"`` \| ``"age"`` \| ``"cancel"`` \| ``"confirm"`` \| ``"contactAdministratorIfIssuePersists"`` \| ``"contactDetails"`` \| ``"errorCopy"`` \| ``"female"`` \| ``"loading"`` \| ``"male"`` \| ``"patientIdentifierSticker"`` \| ``"patientLists"`` \| ``"print"`` \| ``"printError"`` \| ``"printErrorExplainer"`` \| ``"printIdentifierSticker"`` \| ``"printing"`` \| ``"relationships"`` \| ``"resetOverrides"`` \| ``"save"`` \| ``"scriptLoadingFailed"`` \| ``"scriptLoadingError"`` \| ``"seeMoreLists"`` \| ``"sex"`` \| ``"showLess"`` \| ``"showMore"`` \| ``"unknown"`` \| ``"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"`` | - |
|
6905
|
+
| `key` | ``"error"`` \| ``"change"`` \| ``"close"`` \| ``"other"`` \| ``"Clinic"`` \| ``"actions"`` \| ``"address"`` \| ``"age"`` \| ``"cancel"`` \| ``"confirm"`` \| ``"contactAdministratorIfIssuePersists"`` \| ``"contactDetails"`` \| ``"errorCopy"`` \| ``"female"`` \| ``"loading"`` \| ``"male"`` \| ``"patientIdentifierSticker"`` \| ``"patientLists"`` \| ``"print"`` \| ``"printError"`` \| ``"printErrorExplainer"`` \| ``"printIdentifierSticker"`` \| ``"printing"`` \| ``"relationships"`` \| ``"resetOverrides"`` \| ``"save"`` \| ``"scriptLoadingFailed"`` \| ``"scriptLoadingError"`` \| ``"seeMoreLists"`` \| ``"sex"`` \| ``"showLess"`` \| ``"showMore"`` \| ``"unknown"`` \| ``"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"`` | - |
|
6905
6906
|
| `defaultText?` | `string` | - |
|
6906
6907
|
| `options?` | `Omit`<`TOptions`<`StringMap`\>, ``"defaultValue"`` \| ``"ns"``\> | Object passed to the i18next `t` function. See https://www.i18next.com/translation-function/essentials#overview-options for more information. `ns` and `defaultValue` are already set and may not be used. |
|
6907
6908
|
|
@@ -8230,7 +8231,7 @@ Function to close an opened workspace
|
|
8230
8231
|
|
8231
8232
|
#### Defined in
|
8232
8233
|
|
8233
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
8234
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:425](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L425)
|
8234
8235
|
|
8235
8236
|
___
|
8236
8237
|
|
@@ -8281,7 +8282,38 @@ prop named `workspaceTitle` will override the title of the workspace.
|
|
8281
8282
|
|
8282
8283
|
#### Defined in
|
8283
8284
|
|
8284
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
8285
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:289](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L289)
|
8286
|
+
|
8287
|
+
___
|
8288
|
+
|
8289
|
+
### launchWorkspaceGroup
|
8290
|
+
|
8291
|
+
▸ **launchWorkspaceGroup**(`groupName`, `args`): `void`
|
8292
|
+
|
8293
|
+
Launches a workspace group with the specified name and configuration.
|
8294
|
+
If there are any open workspaces, it will first close them before launching the new workspace group.
|
8295
|
+
|
8296
|
+
**`example`**
|
8297
|
+
launchWorkspaceGroup("myGroup", {
|
8298
|
+
state: initialState,
|
8299
|
+
onWorkspaceGroupLaunch: () => console.log("Workspace group launched"),
|
8300
|
+
workspaceGroupCleanup: () => console.log("Cleaning up workspace group")
|
8301
|
+
});
|
8302
|
+
|
8303
|
+
#### Parameters
|
8304
|
+
|
8305
|
+
| Name | Type | Description |
|
8306
|
+
| :------ | :------ | :------ |
|
8307
|
+
| `groupName` | `string` | The name of the workspace group to launch |
|
8308
|
+
| `args` | `LaunchWorkspaceGroupArg` | Configuration object for launching the workspace group |
|
8309
|
+
|
8310
|
+
#### Returns
|
8311
|
+
|
8312
|
+
`void`
|
8313
|
+
|
8314
|
+
#### Defined in
|
8315
|
+
|
8316
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:205](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L205)
|
8285
8317
|
|
8286
8318
|
___
|
8287
8319
|
|
@@ -8307,7 +8339,7 @@ Use this function to navigate to a new page and launch a workspace on that page.
|
|
8307
8339
|
|
8308
8340
|
#### Defined in
|
8309
8341
|
|
8310
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
8342
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:382](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L382)
|
8311
8343
|
|
8312
8344
|
___
|
8313
8345
|
|
@@ -8321,4 +8353,4 @@ ___
|
|
8321
8353
|
|
8322
8354
|
#### Defined in
|
8323
8355
|
|
8324
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
8356
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:536](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L536)
|
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
↳ **`OpenmrsFetchError`**
|
10
10
|
|
11
|
+
## Implements
|
12
|
+
|
13
|
+
- [`FetchError`](../interfaces/FetchError.md)
|
14
|
+
|
11
15
|
## Table of contents
|
12
16
|
|
13
17
|
### API Constructors
|
@@ -53,7 +57,7 @@ Error.constructor
|
|
53
57
|
|
54
58
|
#### Defined in
|
55
59
|
|
56
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
60
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:304](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L304)
|
57
61
|
|
58
62
|
## API Properties
|
59
63
|
|
@@ -61,9 +65,13 @@ Error.constructor
|
|
61
65
|
|
62
66
|
• **response**: `Response`
|
63
67
|
|
68
|
+
#### Implementation of
|
69
|
+
|
70
|
+
[FetchError](../interfaces/FetchError.md).[response](../interfaces/FetchError.md#response)
|
71
|
+
|
64
72
|
#### Defined in
|
65
73
|
|
66
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
74
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:312](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L312)
|
67
75
|
|
68
76
|
___
|
69
77
|
|
@@ -71,9 +79,13 @@ ___
|
|
71
79
|
|
72
80
|
• **responseBody**: ``null`` \| `string` \| [`FetchResponseJson`](../interfaces/FetchResponseJson.md)
|
73
81
|
|
82
|
+
#### Implementation of
|
83
|
+
|
84
|
+
[FetchError](../interfaces/FetchError.md).[responseBody](../interfaces/FetchError.md#responsebody)
|
85
|
+
|
74
86
|
#### Defined in
|
75
87
|
|
76
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
88
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:313](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L313)
|
77
89
|
|
78
90
|
___
|
79
91
|
|
@@ -6,6 +6,7 @@
|
|
6
6
|
|
7
7
|
### Workspace Properties
|
8
8
|
|
9
|
+
- [closeWorkspaceGroup](CloseWorkspaceOptions.md#closeworkspacegroup)
|
9
10
|
- [ignoreChanges](CloseWorkspaceOptions.md#ignorechanges)
|
10
11
|
|
11
12
|
### Workspace Methods
|
@@ -14,6 +15,22 @@
|
|
14
15
|
|
15
16
|
## Workspace Properties
|
16
17
|
|
18
|
+
### closeWorkspaceGroup
|
19
|
+
|
20
|
+
• `Optional` **closeWorkspaceGroup**: `boolean`
|
21
|
+
|
22
|
+
Controls whether the workspace group should be closed and store to be
|
23
|
+
cleared when this workspace is closed.
|
24
|
+
Defaults to true except when opening a new workspace of the same group.
|
25
|
+
|
26
|
+
**`default`** true
|
27
|
+
|
28
|
+
#### Defined in
|
29
|
+
|
30
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L33)
|
31
|
+
|
32
|
+
___
|
33
|
+
|
17
34
|
### ignoreChanges
|
18
35
|
|
19
36
|
• `Optional` **ignoreChanges**: `boolean`
|
@@ -43,7 +43,7 @@ closed, given the user forcefully closes the workspace.
|
|
43
43
|
|
44
44
|
#### Defined in
|
45
45
|
|
46
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
46
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:45](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L45)
|
47
47
|
|
48
48
|
___
|
49
49
|
|
@@ -66,7 +66,7 @@ will directly close the workspace without any prompt
|
|
66
66
|
|
67
67
|
#### Defined in
|
68
68
|
|
69
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
69
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:55](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L55)
|
70
70
|
|
71
71
|
___
|
72
72
|
|
@@ -89,7 +89,7 @@ this workspace is closed; e.g. if there is unsaved data.
|
|
89
89
|
|
90
90
|
#### Defined in
|
91
91
|
|
92
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
92
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:50](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L50)
|
93
93
|
|
94
94
|
___
|
95
95
|
|
@@ -117,4 +117,4 @@ title needs to be set dynamically.
|
|
117
117
|
|
118
118
|
#### Defined in
|
119
119
|
|
120
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
120
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:70](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L70)
|
@@ -22,7 +22,7 @@ An explanation of what the flag does, which will be displayed in the Implementer
|
|
22
22
|
|
23
23
|
#### Defined in
|
24
24
|
|
25
|
-
[packages/framework/esm-globals/src/types.ts:
|
25
|
+
[packages/framework/esm-globals/src/types.ts:363](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L363)
|
26
26
|
|
27
27
|
___
|
28
28
|
|
@@ -34,7 +34,7 @@ A code-friendly name for the flag, which will be used to reference it in code
|
|
34
34
|
|
35
35
|
#### Defined in
|
36
36
|
|
37
|
-
[packages/framework/esm-globals/src/types.ts:
|
37
|
+
[packages/framework/esm-globals/src/types.ts:359](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L359)
|
38
38
|
|
39
39
|
___
|
40
40
|
|
@@ -46,4 +46,4 @@ A human-friendly name which will be displayed in the Implementer Tools
|
|
46
46
|
|
47
47
|
#### Defined in
|
48
48
|
|
49
|
-
[packages/framework/esm-globals/src/types.ts:
|
49
|
+
[packages/framework/esm-globals/src/types.ts:361](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L361)
|
@@ -37,7 +37,7 @@
|
|
37
37
|
|
38
38
|
#### Defined in
|
39
39
|
|
40
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
40
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:318](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L318)
|
41
41
|
|
42
42
|
___
|
43
43
|
|
@@ -47,7 +47,7 @@ ___
|
|
47
47
|
|
48
48
|
#### Defined in
|
49
49
|
|
50
|
-
[packages/framework/esm-api/src/openmrs-fetch.ts:
|
50
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:317](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L317)
|
51
51
|
|
52
52
|
___
|
53
53
|
|
@@ -0,0 +1,34 @@
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / FetchError
|
2
|
+
|
3
|
+
# Interface: FetchError
|
4
|
+
|
5
|
+
## Implemented by
|
6
|
+
|
7
|
+
- [`OpenmrsFetchError`](../classes/OpenmrsFetchError.md)
|
8
|
+
|
9
|
+
## Table of contents
|
10
|
+
|
11
|
+
### API Properties
|
12
|
+
|
13
|
+
- [response](FetchError.md#response)
|
14
|
+
- [responseBody](FetchError.md#responsebody)
|
15
|
+
|
16
|
+
## API Properties
|
17
|
+
|
18
|
+
### response
|
19
|
+
|
20
|
+
• **response**: `Response`
|
21
|
+
|
22
|
+
#### Defined in
|
23
|
+
|
24
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L336)
|
25
|
+
|
26
|
+
___
|
27
|
+
|
28
|
+
### responseBody
|
29
|
+
|
30
|
+
• **responseBody**: ``null`` \| `ResponseBody`
|
31
|
+
|
32
|
+
#### Defined in
|
33
|
+
|
34
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:337](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L337)
|
@@ -16,11 +16,10 @@
|
|
16
16
|
|
17
17
|
- [canHide](OpenWorkspace.md#canhide)
|
18
18
|
- [canMaximize](OpenWorkspace.md#canmaximize)
|
19
|
-
- [
|
19
|
+
- [groups](OpenWorkspace.md#groups)
|
20
20
|
- [moduleName](OpenWorkspace.md#modulename)
|
21
21
|
- [name](OpenWorkspace.md#name)
|
22
22
|
- [preferredWindowSize](OpenWorkspace.md#preferredwindowsize)
|
23
|
-
- [sidebarFamily](OpenWorkspace.md#sidebarfamily)
|
24
23
|
- [title](OpenWorkspace.md#title)
|
25
24
|
- [titleNode](OpenWorkspace.md#titlenode)
|
26
25
|
- [type](OpenWorkspace.md#type)
|
@@ -29,6 +28,7 @@
|
|
29
28
|
### Workspace Properties
|
30
29
|
|
31
30
|
- [additionalProps](OpenWorkspace.md#additionalprops)
|
31
|
+
- [currentWorkspaceGroup](OpenWorkspace.md#currentworkspacegroup)
|
32
32
|
|
33
33
|
### Methods
|
34
34
|
|
@@ -68,17 +68,17 @@ ___
|
|
68
68
|
|
69
69
|
___
|
70
70
|
|
71
|
-
###
|
71
|
+
### groups
|
72
72
|
|
73
|
-
• **
|
73
|
+
• `Optional` **groups**: `string`[]
|
74
74
|
|
75
75
|
#### Inherited from
|
76
76
|
|
77
|
-
[WorkspaceRegistration](WorkspaceRegistration.md).[
|
77
|
+
[WorkspaceRegistration](WorkspaceRegistration.md).[groups](WorkspaceRegistration.md#groups)
|
78
78
|
|
79
79
|
#### Defined in
|
80
80
|
|
81
|
-
[packages/framework/esm-extensions/src/workspaces.ts:
|
81
|
+
[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)
|
82
82
|
|
83
83
|
___
|
84
84
|
|
@@ -92,7 +92,7 @@ ___
|
|
92
92
|
|
93
93
|
#### Defined in
|
94
94
|
|
95
|
-
[packages/framework/esm-extensions/src/workspaces.ts:
|
95
|
+
[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)
|
96
96
|
|
97
97
|
___
|
98
98
|
|
@@ -120,21 +120,7 @@ ___
|
|
120
120
|
|
121
121
|
#### Defined in
|
122
122
|
|
123
|
-
[packages/framework/esm-extensions/src/workspaces.ts:
|
124
|
-
|
125
|
-
___
|
126
|
-
|
127
|
-
### sidebarFamily
|
128
|
-
|
129
|
-
• **sidebarFamily**: `string`
|
130
|
-
|
131
|
-
#### Inherited from
|
132
|
-
|
133
|
-
[WorkspaceRegistration](WorkspaceRegistration.md).[sidebarFamily](WorkspaceRegistration.md#sidebarfamily)
|
134
|
-
|
135
|
-
#### Defined in
|
136
|
-
|
137
|
-
[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)
|
123
|
+
[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)
|
138
124
|
|
139
125
|
___
|
140
126
|
|
@@ -202,7 +188,17 @@ ___
|
|
202
188
|
|
203
189
|
#### Defined in
|
204
190
|
|
205
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
191
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:109](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L109)
|
192
|
+
|
193
|
+
___
|
194
|
+
|
195
|
+
### currentWorkspaceGroup
|
196
|
+
|
197
|
+
• `Optional` **currentWorkspaceGroup**: `string`
|
198
|
+
|
199
|
+
#### Defined in
|
200
|
+
|
201
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:110](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L110)
|
206
202
|
|
207
203
|
## Methods
|
208
204
|
|
@@ -232,7 +228,7 @@ closed, given the user forcefully closes the workspace.
|
|
232
228
|
|
233
229
|
#### Defined in
|
234
230
|
|
235
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
231
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:45](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L45)
|
236
232
|
|
237
233
|
___
|
238
234
|
|
@@ -259,7 +255,7 @@ will directly close the workspace without any prompt
|
|
259
255
|
|
260
256
|
#### Defined in
|
261
257
|
|
262
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
258
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:55](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L55)
|
263
259
|
|
264
260
|
___
|
265
261
|
|
@@ -277,7 +273,7 @@ ___
|
|
277
273
|
|
278
274
|
#### Defined in
|
279
275
|
|
280
|
-
[packages/framework/esm-extensions/src/workspaces.ts:
|
276
|
+
[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)
|
281
277
|
|
282
278
|
___
|
283
279
|
|
@@ -304,7 +300,7 @@ this workspace is closed; e.g. if there is unsaved data.
|
|
304
300
|
|
305
301
|
#### Defined in
|
306
302
|
|
307
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
303
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:50](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L50)
|
308
304
|
|
309
305
|
___
|
310
306
|
|
@@ -336,4 +332,4 @@ title needs to be set dynamically.
|
|
336
332
|
|
337
333
|
#### Defined in
|
338
334
|
|
339
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
335
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:70](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L70)
|
@@ -27,7 +27,7 @@ A list of backend modules necessary for this frontend module and the correspondi
|
|
27
27
|
|
28
28
|
#### Defined in
|
29
29
|
|
30
|
-
[packages/framework/esm-globals/src/types.ts:
|
30
|
+
[packages/framework/esm-globals/src/types.ts:371](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L371)
|
31
31
|
|
32
32
|
___
|
33
33
|
|
@@ -39,7 +39,7 @@ An array of all extensions supported by this frontend module. Extensions can be
|
|
39
39
|
|
40
40
|
#### Defined in
|
41
41
|
|
42
|
-
[packages/framework/esm-globals/src/types.ts:
|
42
|
+
[packages/framework/esm-globals/src/types.ts:387](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L387)
|
43
43
|
|
44
44
|
___
|
45
45
|
|
@@ -51,7 +51,7 @@ An array of all feature flags for any beta-stage features this module provides.
|
|
51
51
|
|
52
52
|
#### Defined in
|
53
53
|
|
54
|
-
[packages/framework/esm-globals/src/types.ts:
|
54
|
+
[packages/framework/esm-globals/src/types.ts:389](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L389)
|
55
55
|
|
56
56
|
___
|
57
57
|
|
@@ -63,7 +63,7 @@ An array of all modals supported by this frontend module. Modals can be launched
|
|
63
63
|
|
64
64
|
#### Defined in
|
65
65
|
|
66
|
-
[packages/framework/esm-globals/src/types.ts:
|
66
|
+
[packages/framework/esm-globals/src/types.ts:391](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L391)
|
67
67
|
|
68
68
|
___
|
69
69
|
|
@@ -81,7 +81,7 @@ The name of the backend dependency and either the required version or an object
|
|
81
81
|
|
82
82
|
#### Defined in
|
83
83
|
|
84
|
-
[packages/framework/esm-globals/src/types.ts:
|
84
|
+
[packages/framework/esm-globals/src/types.ts:373](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L373)
|
85
85
|
|
86
86
|
___
|
87
87
|
|
@@ -93,7 +93,7 @@ An array of all pages supported by this frontend module. Pages are automatically
|
|
93
93
|
|
94
94
|
#### Defined in
|
95
95
|
|
96
|
-
[packages/framework/esm-globals/src/types.ts:
|
96
|
+
[packages/framework/esm-globals/src/types.ts:385](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L385)
|
97
97
|
|
98
98
|
___
|
99
99
|
|
@@ -105,7 +105,7 @@ The version of this frontend module.
|
|
105
105
|
|
106
106
|
#### Defined in
|
107
107
|
|
108
|
-
[packages/framework/esm-globals/src/types.ts:
|
108
|
+
[packages/framework/esm-globals/src/types.ts:369](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L369)
|
109
109
|
|
110
110
|
___
|
111
111
|
|
@@ -117,4 +117,4 @@ An array of all workspaces supported by this frontend module. Workspaces can be
|
|
117
117
|
|
118
118
|
#### Defined in
|
119
119
|
|
120
|
-
[packages/framework/esm-globals/src/types.ts:
|
120
|
+
[packages/framework/esm-globals/src/types.ts:393](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L393)
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
#### Defined in
|
20
20
|
|
21
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
21
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L12)
|
22
22
|
|
23
23
|
___
|
24
24
|
|
@@ -28,7 +28,7 @@ ___
|
|
28
28
|
|
29
29
|
#### Defined in
|
30
30
|
|
31
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
31
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L11)
|
32
32
|
|
33
33
|
___
|
34
34
|
|
@@ -38,4 +38,4 @@ ___
|
|
38
38
|
|
39
39
|
#### Defined in
|
40
40
|
|
41
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
41
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L10)
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
#### Defined in
|
19
19
|
|
20
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
20
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L16)
|
21
21
|
|
22
22
|
___
|
23
23
|
|
@@ -27,4 +27,4 @@ ___
|
|
27
27
|
|
28
28
|
#### Defined in
|
29
29
|
|
30
|
-
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:
|
30
|
+
[packages/framework/esm-styleguide/src/page-header/page-header.component.tsx:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/page-header/page-header.component.tsx#L17)
|