@openmrs/esm-framework 8.0.1-pre.3331 → 8.0.1-pre.3360

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.
@@ -0,0 +1,19 @@
1
+ [O3 Framework](../API.md) / closeWorkspaceGroup2
2
+
3
+ # Function: closeWorkspaceGroup2()
4
+
5
+ > **closeWorkspaceGroup2**(): `Promise`\<`boolean`\>
6
+
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:69](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L69)
8
+
9
+ **`Experimental`**
10
+
11
+ Closes the workspace group that is currently opened. Note that only one workspace group
12
+ may be opened at any given time
13
+
14
+ ## Returns
15
+
16
+ `Promise`\<`boolean`\>
17
+
18
+ a Promise that resolves to true if there is no opened group to begin with or we successfully closed
19
+ the opened group; false otherwise.
@@ -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"` | `"address"` | `"age"` | `"cancel"` | `"change"` | `"Clinic"` | `"close"` | `"confirm"` | `"contactAdministratorIfIssuePersists"` | `"contactDetails"` | `"edit"` | `"errorCopy"` | `"female"` | `"loading"` | `"male"` | `"other"` | `"patientIdentifierSticker"` | `"patientLists"` | `"print"` | `"printError"` | `"printErrorExplainer"` | `"printIdentifierSticker"` | `"printing"` | `"relationships"` | `"resetOverrides"` | `"save"` | `"scriptLoadingFailed"` | `"scriptLoadingError"` | `"seeMoreLists"` | `"sex"` | `"showLess"` | `"showMore"` | `"toggleDevTools"` | `"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"`
20
+ `"error"` | `"delete"` | `"actions"` | `"address"` | `"age"` | `"cancel"` | `"change"` | `"Clinic"` | `"close"` | `"confirm"` | `"contactAdministratorIfIssuePersists"` | `"contactDetails"` | `"edit"` | `"errorCopy"` | `"female"` | `"loading"` | `"male"` | `"other"` | `"patientIdentifierSticker"` | `"patientLists"` | `"print"` | `"printError"` | `"printErrorExplainer"` | `"printIdentifierSticker"` | `"printing"` | `"relationships"` | `"resetOverrides"` | `"save"` | `"scriptLoadingFailed"` | `"scriptLoadingError"` | `"seeMoreLists"` | `"sex"` | `"showLess"` | `"showMore"` | `"toggleDevTools"` | `"unknown"` | `"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
 
@@ -0,0 +1,79 @@
1
+ [O3 Framework](../API.md) / launchWorkspace2
2
+
3
+ # Function: launchWorkspace2()
4
+
5
+ > **launchWorkspace2**\<`WorkspaceProps`, `WindowProps`, `GroupProp`\>(`workspaceName`, `workspaceProps`, `windowProps`, `groupProps`): `Promise`\<`boolean`\>
6
+
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:127](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L127)
8
+
9
+ **`Experimental`**
10
+
11
+ Attempts to launch the specified workspace with the given workspace props. This also implicitly opens
12
+ the workspace window to which the workspace belongs (if it's not opened already),
13
+ and the workspace group to which the window belongs (if it's not opened already).
14
+
15
+ When calling `launchWorkspace2`, we need to also pass in the workspace props. While not required,
16
+ we can also pass in the window props (shared by other workspaces in the window) and the group props
17
+ (shared by all windows and their workspaces). Omitting the window props or the group props[^1] means the caller
18
+ explicitly does not care what the current window props and group props are, and that they may be set
19
+ by other actions (like calling `launchWorkspace2` on a different workspace with those props passed in)
20
+ at a later time.
21
+
22
+ If there is already an opened workspace group, and it's not the group the workspace belongs to
23
+ or has incompatible[^2] group props, then we prompt the user to close the group (and its windows and their workspaces).
24
+ On user confirm, the existing opened group is closed and the new workspace, along with its window and its group,
25
+ is opened.
26
+
27
+ If the window is already opened, but with incompatible window props, we prompt the user to close
28
+ the window (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
29
+
30
+ If the workspace is already opened, but with incompatible workspace props, we also prompt the user to close
31
+ the **window** (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
32
+ This is true regardless of whether the already opened workspace has any child workspaces.
33
+
34
+ Note that calling this function *never* results in creating a child workspace in the affected window.
35
+ To do so, we need to call `launchChildWorkspace` instead.
36
+
37
+ [^1] Omitting window or group props is useful for workspaces that don't have ties to the window or group "context" (props).
38
+ For example, in the patient chart, the visit notes / clinical forms / order basket action menu button all share
39
+ a "group context" of the current visit. However, the "patient list" action menu button does not need to share that group
40
+ context, so opening that workspace should not need to cause other workspaces / windows / groups to potentially close.
41
+ The "patient search" workspace in the queues and ward apps is another example.
42
+
43
+ [^2] 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
44
+
45
+ ## Type Parameters
46
+
47
+ ### WorkspaceProps
48
+
49
+ `WorkspaceProps` *extends* `object`
50
+
51
+ ### WindowProps
52
+
53
+ `WindowProps` *extends* `object`
54
+
55
+ ### GroupProp
56
+
57
+ `GroupProp` *extends* `object`
58
+
59
+ ## Parameters
60
+
61
+ ### workspaceName
62
+
63
+ `string`
64
+
65
+ ### workspaceProps
66
+
67
+ `null` | `WorkspaceProps`
68
+
69
+ ### windowProps
70
+
71
+ `null` | `WindowProps`
72
+
73
+ ### groupProps
74
+
75
+ `null` | `GroupProp`
76
+
77
+ ## Returns
78
+
79
+ `Promise`\<`boolean`\>
@@ -0,0 +1,40 @@
1
+ [O3 Framework](../API.md) / launchWorkspaceGroup2
2
+
3
+ # Function: launchWorkspaceGroup2()
4
+
5
+ > **launchWorkspaceGroup2**\<`GroupProps`\>(`groupName`, `groupProps`): `Promise`\<`boolean`\>
6
+
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:29](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L29)
8
+
9
+ **`Experimental`**
10
+
11
+ Attempts to launch the specified workspace group with the given group props. Note that only one workspace group
12
+ may be opened at any given time. If a workspace group is already opened, calling `launchWorkspaceGroup2` with
13
+ either a different group name, or same group name but different incompatible props**, will result in prompting to
14
+ confirm closing workspaces. If the user confirms, the opened group, along with its windows (and their workspaces), is closed, and
15
+ the requested group is immediately opened.
16
+
17
+ ** 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
18
+
19
+ ## Type Parameters
20
+
21
+ ### GroupProps
22
+
23
+ `GroupProps` *extends* `object`
24
+
25
+ ## Parameters
26
+
27
+ ### groupName
28
+
29
+ `string`
30
+
31
+ ### groupProps
32
+
33
+ `null` | `GroupProps`
34
+
35
+ ## Returns
36
+
37
+ `Promise`\<`boolean`\>
38
+
39
+ a Promise that resolves to true if the specified workspace group with the specified group props
40
+ is successfully opened, or that it already is opened.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: FeatureFlagDefinition
4
4
 
5
- Defined in: packages/framework/esm-globals/dist/types.d.ts:300
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:316
6
6
 
7
7
  A definition of a feature flag extracted from the routes.json
8
8
 
@@ -12,7 +12,7 @@ A definition of a feature flag extracted from the routes.json
12
12
 
13
13
  > **description**: `string`
14
14
 
15
- Defined in: packages/framework/esm-globals/dist/types.d.ts:306
15
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:322
16
16
 
17
17
  An explanation of what the flag does, which will be displayed in the Implementer Tools
18
18
 
@@ -22,7 +22,7 @@ An explanation of what the flag does, which will be displayed in the Implementer
22
22
 
23
23
  > **flagName**: `string`
24
24
 
25
- Defined in: packages/framework/esm-globals/dist/types.d.ts:302
25
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:318
26
26
 
27
27
  A code-friendly name for the flag, which will be used to reference it in code
28
28
 
@@ -32,6 +32,6 @@ A code-friendly name for the flag, which will be used to reference it in code
32
32
 
33
33
  > **label**: `string`
34
34
 
35
- Defined in: packages/framework/esm-globals/dist/types.d.ts:304
35
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:320
36
36
 
37
37
  A human-friendly name which will be displayed in the Implementer Tools
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: OpenmrsAppRoutes
4
4
 
5
- Defined in: packages/framework/esm-globals/dist/types.d.ts:309
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:325
6
6
 
7
7
  This interface describes the format of the routes provided by an app
8
8
 
@@ -12,7 +12,7 @@ This interface describes the format of the routes provided by an app
12
12
 
13
13
  > `optional` **backendDependencies**: `Record`\<`string`, `string`\>
14
14
 
15
- Defined in: packages/framework/esm-globals/dist/types.d.ts:313
15
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:329
16
16
 
17
17
  A list of backend modules necessary for this frontend module and the corresponding required versions.
18
18
 
@@ -22,7 +22,7 @@ A list of backend modules necessary for this frontend module and the correspondi
22
22
 
23
23
  > `optional` **extensions**: [`ExtensionDefinition`](../type-aliases/ExtensionDefinition.md)[]
24
24
 
25
- Defined in: packages/framework/esm-globals/dist/types.d.ts:327
25
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:343
26
26
 
27
27
  An array of all extensions supported by this frontend module. Extensions can be mounted in extension slots, either via declarations in this file or configuration.
28
28
 
@@ -32,7 +32,7 @@ An array of all extensions supported by this frontend module. Extensions can be
32
32
 
33
33
  > `optional` **featureFlags**: [`FeatureFlagDefinition`](FeatureFlagDefinition.md)[]
34
34
 
35
- Defined in: packages/framework/esm-globals/dist/types.d.ts:329
35
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:345
36
36
 
37
37
  An array of all feature flags for any beta-stage features this module provides.
38
38
 
@@ -42,7 +42,7 @@ An array of all feature flags for any beta-stage features this module provides.
42
42
 
43
43
  > `optional` **modals**: [`ModalDefinition`](../type-aliases/ModalDefinition.md)[]
44
44
 
45
- Defined in: packages/framework/esm-globals/dist/types.d.ts:331
45
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:347
46
46
 
47
47
  An array of all modals supported by this frontend module. Modals can be launched by name.
48
48
 
@@ -52,7 +52,7 @@ An array of all modals supported by this frontend module. Modals can be launched
52
52
 
53
53
  > `optional` **optionalBackendDependencies**: `object`
54
54
 
55
- Defined in: packages/framework/esm-globals/dist/types.d.ts:315
55
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:331
56
56
 
57
57
  A list of backend modules that may enable optional functionality in this frontend module if available and the corresponding required versions.
58
58
 
@@ -68,7 +68,7 @@ The name of the backend dependency and either the required version or an object
68
68
 
69
69
  > `optional` **pages**: [`PageDefinition`](../type-aliases/PageDefinition.md)[]
70
70
 
71
- Defined in: packages/framework/esm-globals/dist/types.d.ts:325
71
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:341
72
72
 
73
73
  An array of all pages supported by this frontend module. Pages are automatically mounted based on a route.
74
74
 
@@ -78,7 +78,7 @@ An array of all pages supported by this frontend module. Pages are automatically
78
78
 
79
79
  > `optional` **version**: `string`
80
80
 
81
- Defined in: packages/framework/esm-globals/dist/types.d.ts:311
81
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:327
82
82
 
83
83
  The version of this frontend module.
84
84
 
@@ -88,16 +88,46 @@ The version of this frontend module.
88
88
 
89
89
  > `optional` **workspaceGroups**: [`WorkspaceGroupDefinition`](WorkspaceGroupDefinition.md)[]
90
90
 
91
- Defined in: packages/framework/esm-globals/dist/types.d.ts:335
91
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:351
92
92
 
93
93
  An array of all workspace groups supported by this frontend module.
94
94
 
95
95
  ***
96
96
 
97
+ ### workspaceGroups2?
98
+
99
+ > `optional` **workspaceGroups2**: [`WorkspaceGroupDefinition2`](WorkspaceGroupDefinition2.md)[]
100
+
101
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:353
102
+
103
+ An array of all workspace groups (v2) supported by this frontend module.
104
+
105
+ ***
106
+
97
107
  ### workspaces?
98
108
 
99
109
  > `optional` **workspaces**: [`WorkspaceDefinition`](../type-aliases/WorkspaceDefinition.md)[]
100
110
 
101
- Defined in: packages/framework/esm-globals/dist/types.d.ts:333
111
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:349
102
112
 
103
113
  An array of all workspaces supported by this frontend module. Workspaces can be launched by name.
114
+
115
+ ***
116
+
117
+ ### workspaces2?
118
+
119
+ > `optional` **workspaces2**: [`WorkspaceDefinition2`](WorkspaceDefinition2.md)[]
120
+
121
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:357
122
+
123
+ An array of all workspaces (v2) supported by this frontend module.
124
+
125
+ ***
126
+
127
+ ### workspaceWindows2?
128
+
129
+ > `optional` **workspaceWindows2**: [`WorkspaceWindowDefinition2`](WorkspaceWindowDefinition2.md)[]
130
+
131
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:355
132
+
133
+ An array of all workspace windows (v2) supported by this frontend module.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ResourceLoader()\<T\>
4
4
 
5
- Defined in: packages/framework/esm-globals/dist/types.d.ts:342
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:364
6
6
 
7
7
  ## Type Parameters
8
8
 
@@ -12,7 +12,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:342
12
12
 
13
13
  > **ResourceLoader**(): `Promise`\<`T`\>
14
14
 
15
- Defined in: packages/framework/esm-globals/dist/types.d.ts:343
15
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:365
16
16
 
17
17
  ## Returns
18
18
 
@@ -0,0 +1,29 @@
1
+ [O3 Framework](../API.md) / WorkspaceDefinition2
2
+
3
+ # Interface: WorkspaceDefinition2
4
+
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:308
6
+
7
+ ## Properties
8
+
9
+ ### component
10
+
11
+ > **component**: `string`
12
+
13
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:310
14
+
15
+ ***
16
+
17
+ ### name
18
+
19
+ > **name**: `string`
20
+
21
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:309
22
+
23
+ ***
24
+
25
+ ### window
26
+
27
+ > **window**: `string`
28
+
29
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:311
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: WorkspaceGroupDefinition
4
4
 
5
- Defined in: packages/framework/esm-globals/dist/types.d.ts:287
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:283
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:287
10
10
 
11
11
  > `optional` **members**: `string`[]
12
12
 
13
- Defined in: packages/framework/esm-globals/dist/types.d.ts:295
13
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:291
14
14
 
15
15
  List of workspace names which are part of the workspace group.
16
16
 
@@ -20,6 +20,6 @@ List of workspace names which are part of the workspace group.
20
20
 
21
21
  > **name**: `string`
22
22
 
23
- Defined in: packages/framework/esm-globals/dist/types.d.ts:291
23
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:287
24
24
 
25
25
  Name of the workspace group. This is used to launch the workspace group
@@ -0,0 +1,29 @@
1
+ [O3 Framework](../API.md) / WorkspaceGroupDefinition2
2
+
3
+ # Interface: WorkspaceGroupDefinition2
4
+
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:293
6
+
7
+ ## Properties
8
+
9
+ ### closeable?
10
+
11
+ > `optional` **closeable**: `boolean`
12
+
13
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:295
14
+
15
+ ***
16
+
17
+ ### name
18
+
19
+ > **name**: `string`
20
+
21
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:294
22
+
23
+ ***
24
+
25
+ ### overlay?
26
+
27
+ > `optional` **overlay**: `boolean`
28
+
29
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:296
@@ -0,0 +1,69 @@
1
+ [O3 Framework](../API.md) / WorkspaceWindowDefinition2
2
+
3
+ # Interface: WorkspaceWindowDefinition2
4
+
5
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:298
6
+
7
+ ## Properties
8
+
9
+ ### canHide
10
+
11
+ > **canHide**: `boolean`
12
+
13
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:301
14
+
15
+ ***
16
+
17
+ ### canMaximize
18
+
19
+ > **canMaximize**: `boolean`
20
+
21
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:302
22
+
23
+ ***
24
+
25
+ ### group
26
+
27
+ > **group**: `string`
28
+
29
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:304
30
+
31
+ ***
32
+
33
+ ### icon?
34
+
35
+ > `optional` **icon**: `string`
36
+
37
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:300
38
+
39
+ ***
40
+
41
+ ### name
42
+
43
+ > **name**: `string`
44
+
45
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:299
46
+
47
+ ***
48
+
49
+ ### order?
50
+
51
+ > `optional` **order**: `number`
52
+
53
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:305
54
+
55
+ ***
56
+
57
+ ### overlay
58
+
59
+ > **overlay**: `boolean`
60
+
61
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:303
62
+
63
+ ***
64
+
65
+ ### width?
66
+
67
+ > `optional` **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
68
+
69
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:306
@@ -14,27 +14,17 @@ A definition of an extension as extracted from an app's routes.json
14
14
 
15
15
  > **component**: `string`
16
16
 
17
- Defined in: packages/framework/esm-globals/dist/types.d.ts:214
17
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:210
18
18
 
19
19
  The name of the component exported by this frontend module.
20
20
 
21
21
  ***
22
22
 
23
- ### displayExpression?
24
-
25
- > `optional` **displayExpression**: `string`
26
-
27
- Defined in: packages/framework/esm-globals/dist/types.d.ts:200
28
-
29
- The expression that determines whether the extension is displayed.
30
-
31
- ***
32
-
33
23
  ### featureFlag?
34
24
 
35
25
  > `optional` **featureFlag**: `string`
36
26
 
37
- Defined in: packages/framework/esm-globals/dist/types.d.ts:204
27
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:200
38
28
 
39
29
  If supplied, the extension will only be rendered when this feature flag is enabled.
40
30
 
@@ -44,7 +34,7 @@ If supplied, the extension will only be rendered when this feature flag is enabl
44
34
 
45
35
  > `optional` **meta**: `object`
46
36
 
47
- Defined in: packages/framework/esm-globals/dist/types.d.ts:208
37
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:204
48
38
 
49
39
  Meta describes any properties that are passed down to the extension when it is loaded
50
40
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ModalDefinition** = `object`
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:219
7
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:215
8
8
 
9
9
  A definition of a modal as extracted from an app's routes.json
10
10
 
@@ -14,7 +14,7 @@ A definition of a modal as extracted from an app's routes.json
14
14
 
15
15
  > **component**: `string`
16
16
 
17
- Defined in: packages/framework/esm-globals/dist/types.d.ts:227
17
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:223
18
18
 
19
19
  The name of the component exported by this frontend module.
20
20
 
@@ -24,6 +24,6 @@ The name of the component exported by this frontend module.
24
24
 
25
25
  > **name**: `string`
26
26
 
27
- Defined in: packages/framework/esm-globals/dist/types.d.ts:223
27
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:219
28
28
 
29
29
  The name of this modal. This is used to launch the modal.
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **NameUse** = `"usual"` \| `"official"` \| `"temp"` \| `"nickname"` \| `"anonymous"` \| `"old"` \| `"maiden"`
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:345
7
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:367
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **OpenmrsRoutes** = `Record`\<`string`, [`OpenmrsAppRoutes`](../interfaces/OpenmrsAppRoutes.md)\>
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:341
7
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:363
8
8
 
9
9
  This interfaces describes the format of the overall routes.json loaded by the app shell.
10
10
  Basically, this is the same as the app routes, with each routes definition keyed by the app's name
@@ -0,0 +1,21 @@
1
+ [O3 Framework](../API.md) / Workspace2Definition
2
+
3
+ # Type Alias: Workspace2Definition\<WorkspaceProps, WindowProps, GroupProps\>
4
+
5
+ > **Workspace2Definition**\<`WorkspaceProps`, `WindowProps`, `GroupProps`\> = `React.FC`\<`Workspace2DefinitionProps`\<`WorkspaceProps`, `WindowProps`, `GroupProps`\>\>
6
+
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:47](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L47)
8
+
9
+ ## Type Parameters
10
+
11
+ ### WorkspaceProps
12
+
13
+ `WorkspaceProps` *extends* `object`
14
+
15
+ ### WindowProps
16
+
17
+ `WindowProps` *extends* `object`
18
+
19
+ ### GroupProps
20
+
21
+ `GroupProps` *extends* `object`
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **WorkspaceDefinition** = `object`
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:233
7
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:229
8
8
 
9
9
  A definition of a workspace as extracted from an app's routes.json
10
10
 
@@ -14,7 +14,7 @@ A definition of a workspace as extracted from an app's routes.json
14
14
 
15
15
  > `optional` **canHide**: `boolean`
16
16
 
17
- Defined in: packages/framework/esm-globals/dist/types.d.ts:249
17
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:245
18
18
 
19
19
  ***
20
20
 
@@ -22,7 +22,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:249
22
22
 
23
23
  > `optional` **canMaximize**: `boolean`
24
24
 
25
- Defined in: packages/framework/esm-globals/dist/types.d.ts:250
25
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:246
26
26
 
27
27
  ***
28
28
 
@@ -30,7 +30,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:250
30
30
 
31
31
  > **component**: `string`
32
32
 
33
- Defined in: packages/framework/esm-globals/dist/types.d.ts:285
33
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:281
34
34
 
35
35
  The name of the component exported by this frontend module.
36
36
 
@@ -40,7 +40,7 @@ The name of the component exported by this frontend module.
40
40
 
41
41
  > **groups**: `string`[]
42
42
 
43
- Defined in: packages/framework/esm-globals/dist/types.d.ts:281
43
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:277
44
44
 
45
45
  Workspaces can open either independently or as part of a "workspace group". A
46
46
  "workspace group" groups related workspaces together, so that only one is visible
@@ -68,7 +68,7 @@ name, the entire workspace group will close, and the new workspace will launch i
68
68
 
69
69
  > **name**: `string`
70
70
 
71
- Defined in: packages/framework/esm-globals/dist/types.d.ts:237
71
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:233
72
72
 
73
73
  The name of this workspace. This is used to launch the workspace.
74
74
 
@@ -78,7 +78,7 @@ The name of this workspace. This is used to launch the workspace.
78
78
 
79
79
  > `optional` **preferredWindowSize**: [`WorkspaceWindowState`](WorkspaceWindowState.md)
80
80
 
81
- Defined in: packages/framework/esm-globals/dist/types.d.ts:260
81
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:256
82
82
 
83
83
  Launches the workspace in the preferred size, it defaults to the 'narrow' width
84
84
 
@@ -88,7 +88,7 @@ Launches the workspace in the preferred size, it defaults to the 'narrow' width
88
88
 
89
89
  > **title**: `string`
90
90
 
91
- Defined in: packages/framework/esm-globals/dist/types.d.ts:242
91
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:238
92
92
 
93
93
  The title of the workspace. This will be looked up as a key in the translations of the module
94
94
  defining the workspace.
@@ -99,7 +99,7 @@ defining the workspace.
99
99
 
100
100
  > **type**: `string`
101
101
 
102
- Defined in: packages/framework/esm-globals/dist/types.d.ts:248
102
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:244
103
103
 
104
104
  The type of the workspace. Only one of each "type" of workspace is allowed to be open at a
105
105
  time. The default is "form". If the right sidebar is in use, then the type determines which
@@ -111,7 +111,7 @@ right sidebar icon corresponds to the workspace.
111
111
 
112
112
  > `optional` **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
113
113
 
114
- Defined in: packages/framework/esm-globals/dist/types.d.ts:256
114
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:252
115
115
 
116
116
  Controls the width of the workspace. The default is "narrow" and this should only be
117
117
  changed to "wider" if the workspace itself has internal navigation, like the form editor.