@openmrs/esm-framework 7.0.1-pre.3258 → 7.0.1-pre.3273

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,17 @@
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:66](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L66)
8
+
9
+ Closes the workspace group that is currently opened. Note that only one workspace group
10
+ may be opened at any given time
11
+
12
+ ## Returns
13
+
14
+ `Promise`\<`boolean`\>
15
+
16
+ a Promise that resolves to true if there is no opened group to begin with or we successfully closed
17
+ 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,77 @@
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:123](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L123)
8
+
9
+ Attempts to launch the specified workspace with the given workspace props. This also implicitly opens
10
+ the workspace window to which the workspace belongs (if it's not opened already),
11
+ and the workspace group to which the window belongs (if it's not opened already).
12
+
13
+ When calling `launchWorkspace2`, we need to also pass in the workspace props. While not required,
14
+ we can also pass in the window props (shared by other workspaces in the window) and the group props
15
+ (shared by all windows and their workspaces). Omitting the window props or the group props¹ means the caller
16
+ explicitly does not care what the current window props and group props are, and that they may be set
17
+ by other actions (like calling `launchWorkspace2` on a different workspace with those props passed in)
18
+ at a later time.
19
+
20
+ If there is already an opened workspace group, and it's not the group the workspace belongs to
21
+ or has incompatible² group props, then we prompt the user to close the group (and its windows and their workspaces).
22
+ On user confirm, the existing opened group is closed and the new workspace, along with its window and its group,
23
+ is opened.
24
+
25
+ If the window is already opened, but with incompatible window props, we prompt the user to close
26
+ the window (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
27
+
28
+ If the workspace is already opened, but with incompatible workspace props, we also prompt the user to close
29
+ the **window** (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
30
+ This is true regardless of whether the already opened workspace has any child workspaces.
31
+
32
+ Note that calling this function *never* results in creating a child workspace in the affected window.
33
+ To do so, we need to call `launchChildWorkspace` instead.
34
+
35
+ [¹] Omitting window or group props is useful for workspaces that don't have ties to the window or group "context" (props).
36
+ For example, in the patient chart, the visit notes / clinical forms / order basket action menu button all share
37
+ a "group context" of the current visit. However, the "patient list" action menu button does not need to share that group
38
+ context, so opening that workspace should not need to cause other workspaces / windows / groups to potentially close.
39
+ The "patient search" workspace in the queues and ward apps is another example.
40
+
41
+ [²] 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
42
+
43
+ ## Type Parameters
44
+
45
+ ### WorkspaceProps
46
+
47
+ `WorkspaceProps` *extends* `Record`\<`string`, `any`\>
48
+
49
+ ### WindowProps
50
+
51
+ `WindowProps` *extends* `Record`\<`string`, `any`\>
52
+
53
+ ### GroupProp
54
+
55
+ `GroupProp` *extends* `Record`\<`string`, `any`\>
56
+
57
+ ## Parameters
58
+
59
+ ### workspaceName
60
+
61
+ `string`
62
+
63
+ ### workspaceProps
64
+
65
+ `null` | `WorkspaceProps`
66
+
67
+ ### windowProps
68
+
69
+ `null` | `WindowProps`
70
+
71
+ ### groupProps
72
+
73
+ `null` | `GroupProp`
74
+
75
+ ## Returns
76
+
77
+ `Promise`\<`boolean`\>
@@ -0,0 +1,38 @@
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:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L27)
8
+
9
+ Attempts to launch the specified workspace group with the given group props. Note that only one workspace group
10
+ may be opened at any given time. If a workspace group is already opened, calling `launchWorkspaceGroup2` with
11
+ either a different group name, or same group name but different incompatible props**, will result in prompting to
12
+ confirm closing workspaces. If the user confirms, the opened group, along with its windows (and their workspaces), is closed, and
13
+ the requested group is immediately opened.
14
+
15
+ ** 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
16
+
17
+ ## Type Parameters
18
+
19
+ ### GroupProps
20
+
21
+ `GroupProps` *extends* `Record`\<`string`, `any`\>
22
+
23
+ ## Parameters
24
+
25
+ ### groupName
26
+
27
+ `string`
28
+
29
+ ### groupProps
30
+
31
+ `null` | `GroupProps`
32
+
33
+ ## Returns
34
+
35
+ `Promise`\<`boolean`\>
36
+
37
+ a Promise that resolves to true if the specified workspace group with the specified group props
38
+ 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:298
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:304
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:300
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:302
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:307
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:311
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:325
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:327
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:329
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:313
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:323
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:309
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:333
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:331
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:340
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:340
12
12
 
13
13
  > **ResourceLoader**(): `Promise`\<`T`\>
14
14
 
15
- Defined in: packages/framework/esm-globals/dist/types.d.ts:341
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:285
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:285
10
10
 
11
11
  > `optional` **members**: `string`[]
12
12
 
13
- Defined in: packages/framework/esm-globals/dist/types.d.ts:293
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:289
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
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ExtensionDefinition** = `object`
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:170
7
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:168
8
8
 
9
9
  A definition of an extension as extracted from an app's routes.json
10
10
 
@@ -14,7 +14,7 @@ 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:212
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
 
@@ -24,7 +24,7 @@ The name of the component exported by this frontend module.
24
24
 
25
25
  > `optional` **featureFlag**: `string`
26
26
 
27
- Defined in: packages/framework/esm-globals/dist/types.d.ts:202
27
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:200
28
28
 
29
29
  If supplied, the extension will only be rendered when this feature flag is enabled.
30
30
 
@@ -34,7 +34,7 @@ If supplied, the extension will only be rendered when this feature flag is enabl
34
34
 
35
35
  > `optional` **meta**: `object`
36
36
 
37
- Defined in: packages/framework/esm-globals/dist/types.d.ts:206
37
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:204
38
38
 
39
39
  Meta describes any properties that are passed down to the extension when it is loaded
40
40
 
@@ -48,7 +48,7 @@ Meta describes any properties that are passed down to the extension when it is l
48
48
 
49
49
  > **name**: `string`
50
50
 
51
- Defined in: packages/framework/esm-globals/dist/types.d.ts:174
51
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:172
52
52
 
53
53
  The name of this extension. This is used to refer to the extension in configuration.
54
54
 
@@ -58,7 +58,7 @@ The name of this extension. This is used to refer to the extension in configurat
58
58
 
59
59
  > `optional` **offline**: `boolean`
60
60
 
61
- Defined in: packages/framework/esm-globals/dist/types.d.ts:190
61
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:188
62
62
 
63
63
  Determines whether the component renders while the browser is not connected to the internet. If false, this page will never render while offline.
64
64
 
@@ -68,7 +68,7 @@ Determines whether the component renders while the browser is not connected to t
68
68
 
69
69
  > `optional` **online**: `boolean`
70
70
 
71
- Defined in: packages/framework/esm-globals/dist/types.d.ts:186
71
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:184
72
72
 
73
73
  Determines whether the component renders while the browser is connected to the internet. If false, this page will never render while online.
74
74
 
@@ -78,7 +78,7 @@ Determines whether the component renders while the browser is connected to the i
78
78
 
79
79
  > `optional` **order**: `number`
80
80
 
81
- Defined in: packages/framework/esm-globals/dist/types.d.ts:194
81
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:192
82
82
 
83
83
  Determines the order in which this component renders in its default extension slot. Note that this can be overridden by configuration.
84
84
 
@@ -88,7 +88,7 @@ Determines the order in which this component renders in its default extension sl
88
88
 
89
89
  > `optional` **privileges**: `string` \| `string`[]
90
90
 
91
- Defined in: packages/framework/esm-globals/dist/types.d.ts:198
91
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:196
92
92
 
93
93
  The user must have ANY of these privileges to see this extension.
94
94
 
@@ -98,7 +98,7 @@ The user must have ANY of these privileges to see this extension.
98
98
 
99
99
  > `optional` **slot**: `string`
100
100
 
101
- Defined in: packages/framework/esm-globals/dist/types.d.ts:178
101
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:176
102
102
 
103
103
  If supplied, the slot that this extension is rendered into by default.
104
104
 
@@ -108,6 +108,6 @@ If supplied, the slot that this extension is rendered into by default.
108
108
 
109
109
  > `optional` **slots**: `string`[]
110
110
 
111
- Defined in: packages/framework/esm-globals/dist/types.d.ts:182
111
+ Defined in: packages/framework/esm-globals/dist/types.d.ts:180
112
112
 
113
113
  If supplied, the slots that this extension is rendered into by default.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ModalDefinition** = `object`
6
6
 
7
- Defined in: packages/framework/esm-globals/dist/types.d.ts:217
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:225
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:221
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:343
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:339
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
@@ -16,6 +16,12 @@ A definition of a page extracted from an app's routes.json
16
16
 
17
17
  The name of the component exported by this frontend module.
18
18
 
19
+ ### containerDomId?
20
+
21
+ > `optional` **containerDomId**: `string`
22
+
23
+ If supplied, the page will be rendered within the DOM element with the specified ID. Defaults to "omrs-apps-container" if not supplied.
24
+
19
25
  ### featureFlag?
20
26
 
21
27
  > `optional` **featureFlag**: `string`
@@ -33,9 +39,3 @@ Determines whether the component renders while the browser is not connected to t
33
39
  > `optional` **online**: `boolean`
34
40
 
35
41
  Determines whether the component renders while the browser is connected to the internet. If false, this page will never render while online.
36
-
37
- ### order?
38
-
39
- > `optional` **order**: `number`
40
-
41
- Determines the order in which this page is rendered in the app-shell, which is useful for situations where DOM ordering matters.
@@ -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* `Record`\<`string`, `any`\>
14
+
15
+ ### WindowProps
16
+
17
+ `WindowProps` *extends* `Record`\<`string`, `any`\>
18
+
19
+ ### GroupProps
20
+
21
+ `GroupProps` *extends* `Record`\<`string`, `any`\>