@openmrs/esm-framework 7.0.0 → 7.0.1-pre.3258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/interfaces/ExtensionRegistration.md +2 -2
- package/docs/interfaces/FeatureFlagDefinition.md +4 -4
- package/docs/interfaces/ImportMap.md +2 -2
- package/docs/interfaces/OpenWorkspace.md +18 -18
- package/docs/interfaces/OpenmrsAppRoutes.md +10 -10
- package/docs/interfaces/OpenmrsDatePickerProps.md +1 -1
- package/docs/interfaces/OpenmrsDateRangePickerProps.md +14 -14
- package/docs/interfaces/ResourceLoader.md +2 -2
- package/docs/interfaces/SpaConfig.md +6 -6
- package/docs/interfaces/WorkspaceGroupDefinition.md +3 -3
- package/docs/interfaces/WorkspaceRegistration.md +12 -12
- package/docs/type-aliases/ExtensionDefinition.md +47 -3
- package/docs/type-aliases/ModalDefinition.md +15 -3
- package/docs/type-aliases/NameUse.md +1 -1
- package/docs/type-aliases/OpenmrsRoutes.md +2 -2
- package/docs/type-aliases/PageDefinition.md +1 -1
- package/docs/type-aliases/SpaEnvironment.md +1 -1
- package/docs/type-aliases/WorkspaceDefinition.md +43 -3
- package/docs/type-aliases/WorkspaceWindowState.md +1 -1
- package/docs/variables/OpenmrsDateRangePicker.md +1 -1
- package/package.json +22 -21
- package/setup-tests.ts +1 -1
|
@@ -72,10 +72,10 @@ Defined in: [packages/framework/esm-extensions/src/store.ts:20](https://github.c
|
|
|
72
72
|
|
|
73
73
|
### load()
|
|
74
74
|
|
|
75
|
-
> **load**(): `Promise`\<`
|
|
75
|
+
> **load**(): `Promise`\<`LifeCycles`\>
|
|
76
76
|
|
|
77
77
|
Defined in: [packages/framework/esm-extensions/src/store.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/store.ts#L14)
|
|
78
78
|
|
|
79
79
|
#### Returns
|
|
80
80
|
|
|
81
|
-
`Promise`\<`
|
|
81
|
+
`Promise`\<`LifeCycles`\>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: FeatureFlagDefinition
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:298
|
|
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:
|
|
15
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:304
|
|
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:
|
|
25
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:300
|
|
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:
|
|
35
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:302
|
|
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: ImportMap
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:73
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,4 +10,4 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:74
|
|
|
10
10
|
|
|
11
11
|
> **imports**: `Record`\<`string`, `string`\>
|
|
12
12
|
|
|
13
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
13
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:74
|
|
@@ -56,7 +56,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:115]
|
|
|
56
56
|
|
|
57
57
|
> **groups**: `string`[]
|
|
58
58
|
|
|
59
|
-
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:
|
|
59
|
+
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:16
|
|
60
60
|
|
|
61
61
|
#### Inherited from
|
|
62
62
|
|
|
@@ -64,27 +64,11 @@ Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:18
|
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
### load()
|
|
68
|
-
|
|
69
|
-
> **load**: () => `Promise`\<`object` & `LifeCycles`\>
|
|
70
|
-
|
|
71
|
-
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:14
|
|
72
|
-
|
|
73
|
-
#### Returns
|
|
74
|
-
|
|
75
|
-
`Promise`\<`object` & `LifeCycles`\>
|
|
76
|
-
|
|
77
|
-
#### Inherited from
|
|
78
|
-
|
|
79
|
-
`WorkspaceRegistration.load`
|
|
80
|
-
|
|
81
|
-
***
|
|
82
|
-
|
|
83
67
|
### moduleName
|
|
84
68
|
|
|
85
69
|
> **moduleName**: `string`
|
|
86
70
|
|
|
87
|
-
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:
|
|
71
|
+
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:15
|
|
88
72
|
|
|
89
73
|
#### Inherited from
|
|
90
74
|
|
|
@@ -217,6 +201,22 @@ will directly close the workspace without any prompt
|
|
|
217
201
|
|
|
218
202
|
***
|
|
219
203
|
|
|
204
|
+
### load()
|
|
205
|
+
|
|
206
|
+
> **load**(): `Promise`\<`LifeCycles`\>
|
|
207
|
+
|
|
208
|
+
Defined in: packages/framework/esm-extensions/dist/workspaces.d.ts:14
|
|
209
|
+
|
|
210
|
+
#### Returns
|
|
211
|
+
|
|
212
|
+
`Promise`\<`LifeCycles`\>
|
|
213
|
+
|
|
214
|
+
#### Inherited from
|
|
215
|
+
|
|
216
|
+
`WorkspaceRegistration.load`
|
|
217
|
+
|
|
218
|
+
***
|
|
219
|
+
|
|
220
220
|
### promptBeforeClosing()
|
|
221
221
|
|
|
222
222
|
> **promptBeforeClosing**(`testFcn`): `void`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: OpenmrsAppRoutes
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:307
|
|
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:
|
|
15
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:311
|
|
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:
|
|
25
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:325
|
|
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:
|
|
35
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:327
|
|
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:
|
|
45
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:329
|
|
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:
|
|
55
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:313
|
|
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:
|
|
71
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:323
|
|
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:
|
|
81
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:309
|
|
82
82
|
|
|
83
83
|
The version of this frontend module.
|
|
84
84
|
|
|
@@ -88,7 +88,7 @@ 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:
|
|
91
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:333
|
|
92
92
|
|
|
93
93
|
An array of all workspace groups supported by this frontend module.
|
|
94
94
|
|
|
@@ -98,6 +98,6 @@ An array of all workspace groups supported by this frontend module.
|
|
|
98
98
|
|
|
99
99
|
> `optional` **workspaces**: [`WorkspaceDefinition`](../type-aliases/WorkspaceDefinition.md)[]
|
|
100
100
|
|
|
101
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
101
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:331
|
|
102
102
|
|
|
103
103
|
An array of all workspaces supported by this frontend module. Workspaces can be launched by name.
|
|
@@ -747,7 +747,7 @@ prop instead.
|
|
|
747
747
|
|
|
748
748
|
### validationBehavior?
|
|
749
749
|
|
|
750
|
-
> `optional` **validationBehavior**: `"
|
|
750
|
+
> `optional` **validationBehavior**: `"native"` \| `"aria"`
|
|
751
751
|
|
|
752
752
|
Defined in: node\_modules/react-aria-components/dist/types.d.ts:81
|
|
753
753
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: OpenmrsDateRangePickerProps
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
5
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:32](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L32)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -113,7 +113,7 @@ The children of the component. A function may be provided to alter the children
|
|
|
113
113
|
|
|
114
114
|
> `optional` **className**: `Argument`
|
|
115
115
|
|
|
116
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
116
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L35)
|
|
117
117
|
|
|
118
118
|
Any CSS classes to add to the outer div of the date picker
|
|
119
119
|
|
|
@@ -137,7 +137,7 @@ Whether the overlay is open by default (uncontrolled).
|
|
|
137
137
|
|
|
138
138
|
> `optional` **defaultValue**: \[`DateInputValue`, `DateInputValue`\]
|
|
139
139
|
|
|
140
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
140
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:37](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L37)
|
|
141
141
|
|
|
142
142
|
The default value (uncontrolled)
|
|
143
143
|
|
|
@@ -237,7 +237,7 @@ The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/d
|
|
|
237
237
|
|
|
238
238
|
> `optional` **invalid**: `boolean`
|
|
239
239
|
|
|
240
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
240
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L39)
|
|
241
241
|
|
|
242
242
|
Whether the input value is invalid.
|
|
243
243
|
|
|
@@ -247,7 +247,7 @@ Whether the input value is invalid.
|
|
|
247
247
|
|
|
248
248
|
> `optional` **invalidText**: `string`
|
|
249
249
|
|
|
250
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
250
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:41](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L41)
|
|
251
251
|
|
|
252
252
|
Text to show if the input is invalid e.g. an error message
|
|
253
253
|
|
|
@@ -351,7 +351,7 @@ Whether user input is required on the input before form submission.
|
|
|
351
351
|
|
|
352
352
|
> `optional` **label**: `string` \| `ReactElement`\<`any`, `string` \| `JSXElementConstructor`\<`any`\>\>
|
|
353
353
|
|
|
354
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
354
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:46](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L46)
|
|
355
355
|
|
|
356
356
|
The label for this DatePicker element
|
|
357
357
|
|
|
@@ -365,7 +365,7 @@ Use labelText instead
|
|
|
365
365
|
|
|
366
366
|
> `optional` **labelText**: `string` \| `ReactElement`\<`any`, `string` \| `JSXElementConstructor`\<`any`\>\>
|
|
367
367
|
|
|
368
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
368
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:48](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L48)
|
|
369
369
|
|
|
370
370
|
The label for this DatePicker element.
|
|
371
371
|
|
|
@@ -375,7 +375,7 @@ The label for this DatePicker element.
|
|
|
375
375
|
|
|
376
376
|
> `optional` **light**: `boolean`
|
|
377
377
|
|
|
378
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
378
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:50](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L50)
|
|
379
379
|
|
|
380
380
|
'true' to use the light version.
|
|
381
381
|
|
|
@@ -385,7 +385,7 @@ Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-ra
|
|
|
385
385
|
|
|
386
386
|
> `optional` **maxDate**: `DateInputValue`
|
|
387
387
|
|
|
388
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
388
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:52](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L52)
|
|
389
389
|
|
|
390
390
|
The latest date it is possible to select
|
|
391
391
|
|
|
@@ -409,7 +409,7 @@ The maximum allowed date that a user may select.
|
|
|
409
409
|
|
|
410
410
|
> `optional` **minDate**: `DateInputValue`
|
|
411
411
|
|
|
412
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
412
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:54](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L54)
|
|
413
413
|
|
|
414
414
|
The earliest date it is possible to select
|
|
415
415
|
|
|
@@ -457,7 +457,7 @@ Handler that is called when the element loses focus.
|
|
|
457
457
|
|
|
458
458
|
> `optional` **onChange**: (`value`) => `void`
|
|
459
459
|
|
|
460
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
460
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:56](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L56)
|
|
461
461
|
|
|
462
462
|
Handler that is called when the value changes.
|
|
463
463
|
|
|
@@ -477,7 +477,7 @@ Handler that is called when the value changes.
|
|
|
477
477
|
|
|
478
478
|
> `optional` **onChangeRaw**: (`value`) => `void`
|
|
479
479
|
|
|
480
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
480
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:58](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L58)
|
|
481
481
|
|
|
482
482
|
Handler that is called when the value changes. Note that this provides types from @internationalized/date.
|
|
483
483
|
|
|
@@ -754,7 +754,7 @@ prop instead.
|
|
|
754
754
|
|
|
755
755
|
### validationBehavior?
|
|
756
756
|
|
|
757
|
-
> `optional` **validationBehavior**: `"
|
|
757
|
+
> `optional` **validationBehavior**: `"native"` \| `"aria"`
|
|
758
758
|
|
|
759
759
|
Defined in: node\_modules/react-aria-components/dist/types.d.ts:81
|
|
760
760
|
|
|
@@ -778,6 +778,6 @@ or invalid via ARIA.
|
|
|
778
778
|
|
|
779
779
|
> `optional` **value**: \[`DateInputValue`, `DateInputValue`\]
|
|
780
780
|
|
|
781
|
-
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:
|
|
781
|
+
Defined in: [packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx:60](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/date-range/date-range-picker.component.tsx#L60)
|
|
782
782
|
|
|
783
783
|
The value (controlled)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: ResourceLoader()\<T\>
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:340
|
|
6
6
|
|
|
7
7
|
## Type Parameters
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:389
|
|
|
12
12
|
|
|
13
13
|
> **ResourceLoader**(): `Promise`\<`T`\>
|
|
14
14
|
|
|
15
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
15
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:341
|
|
16
16
|
|
|
17
17
|
## Returns
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: SpaConfig
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:79
|
|
6
6
|
|
|
7
7
|
The configuration passed to the app shell initialization function
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ The configuration passed to the app shell initialization function
|
|
|
12
12
|
|
|
13
13
|
> **apiUrl**: `string`
|
|
14
14
|
|
|
15
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
15
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:83
|
|
16
16
|
|
|
17
17
|
The base path or URL for the OpenMRS API / endpoints.
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ The base path or URL for the OpenMRS API / endpoints.
|
|
|
22
22
|
|
|
23
23
|
> `optional` **configUrls**: `string`[]
|
|
24
24
|
|
|
25
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
25
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:96
|
|
26
26
|
|
|
27
27
|
URLs of configurations to load in the system.
|
|
28
28
|
|
|
@@ -32,7 +32,7 @@ URLs of configurations to load in the system.
|
|
|
32
32
|
|
|
33
33
|
> `optional` **env**: [`SpaEnvironment`](../type-aliases/SpaEnvironment.md)
|
|
34
34
|
|
|
35
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
35
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:92
|
|
36
36
|
|
|
37
37
|
The environment to use.
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ production
|
|
|
48
48
|
|
|
49
49
|
> `optional` **offline**: `boolean`
|
|
50
50
|
|
|
51
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
51
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:101
|
|
52
52
|
|
|
53
53
|
Defines if offline should be supported by installing a service worker.
|
|
54
54
|
|
|
@@ -64,6 +64,6 @@ true
|
|
|
64
64
|
|
|
65
65
|
> **spaPath**: `string`
|
|
66
66
|
|
|
67
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
67
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:87
|
|
68
68
|
|
|
69
69
|
The base path for the SPA root path.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: WorkspaceGroupDefinition
|
|
4
4
|
|
|
5
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
5
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:285
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: packages/framework/esm-globals/dist/types.d.ts:334
|
|
|
10
10
|
|
|
11
11
|
> `optional` **members**: `string`[]
|
|
12
12
|
|
|
13
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
13
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:293
|
|
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:
|
|
23
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:289
|
|
24
24
|
|
|
25
25
|
Name of the workspace group. This is used to launch the workspace group
|
|
@@ -32,18 +32,6 @@ Defined in: [packages/framework/esm-extensions/src/workspaces.ts:20](https://git
|
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
### load()
|
|
36
|
-
|
|
37
|
-
> **load**: () => `Promise`\<`object` & `LifeCycles`\>
|
|
38
|
-
|
|
39
|
-
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)
|
|
40
|
-
|
|
41
|
-
#### Returns
|
|
42
|
-
|
|
43
|
-
`Promise`\<`object` & `LifeCycles`\>
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
35
|
### moduleName
|
|
48
36
|
|
|
49
37
|
> **moduleName**: `string`
|
|
@@ -97,3 +85,15 @@ Defined in: [packages/framework/esm-extensions/src/workspaces.ts:13](https://git
|
|
|
97
85
|
> **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
|
|
98
86
|
|
|
99
87
|
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)
|
|
88
|
+
|
|
89
|
+
## Methods
|
|
90
|
+
|
|
91
|
+
### load()
|
|
92
|
+
|
|
93
|
+
> **load**(): `Promise`\<`LifeCycles`\>
|
|
94
|
+
|
|
95
|
+
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)
|
|
96
|
+
|
|
97
|
+
#### Returns
|
|
98
|
+
|
|
99
|
+
`Promise`\<`LifeCycles`\>
|
|
@@ -2,68 +2,112 @@
|
|
|
2
2
|
|
|
3
3
|
# Type Alias: ExtensionDefinition
|
|
4
4
|
|
|
5
|
-
> **ExtensionDefinition** = `object`
|
|
5
|
+
> **ExtensionDefinition** = `object`
|
|
6
6
|
|
|
7
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
7
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:170
|
|
8
8
|
|
|
9
9
|
A definition of an extension as extracted from an app's routes.json
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### component
|
|
14
|
+
|
|
15
|
+
> **component**: `string`
|
|
16
|
+
|
|
17
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:212
|
|
18
|
+
|
|
19
|
+
The name of the component exported by this frontend module.
|
|
20
|
+
|
|
21
|
+
***
|
|
12
22
|
|
|
13
23
|
### featureFlag?
|
|
14
24
|
|
|
15
25
|
> `optional` **featureFlag**: `string`
|
|
16
26
|
|
|
27
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:202
|
|
28
|
+
|
|
17
29
|
If supplied, the extension will only be rendered when this feature flag is enabled.
|
|
18
30
|
|
|
31
|
+
***
|
|
32
|
+
|
|
19
33
|
### meta?
|
|
20
34
|
|
|
21
35
|
> `optional` **meta**: `object`
|
|
22
36
|
|
|
37
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:206
|
|
38
|
+
|
|
23
39
|
Meta describes any properties that are passed down to the extension when it is loaded
|
|
24
40
|
|
|
25
41
|
#### Index Signature
|
|
26
42
|
|
|
27
43
|
\[`k`: `string`\]: `unknown`
|
|
28
44
|
|
|
45
|
+
***
|
|
46
|
+
|
|
29
47
|
### name
|
|
30
48
|
|
|
31
49
|
> **name**: `string`
|
|
32
50
|
|
|
51
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:174
|
|
52
|
+
|
|
33
53
|
The name of this extension. This is used to refer to the extension in configuration.
|
|
34
54
|
|
|
55
|
+
***
|
|
56
|
+
|
|
35
57
|
### offline?
|
|
36
58
|
|
|
37
59
|
> `optional` **offline**: `boolean`
|
|
38
60
|
|
|
61
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:190
|
|
62
|
+
|
|
39
63
|
Determines whether the component renders while the browser is not connected to the internet. If false, this page will never render while offline.
|
|
40
64
|
|
|
65
|
+
***
|
|
66
|
+
|
|
41
67
|
### online?
|
|
42
68
|
|
|
43
69
|
> `optional` **online**: `boolean`
|
|
44
70
|
|
|
71
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:186
|
|
72
|
+
|
|
45
73
|
Determines whether the component renders while the browser is connected to the internet. If false, this page will never render while online.
|
|
46
74
|
|
|
75
|
+
***
|
|
76
|
+
|
|
47
77
|
### order?
|
|
48
78
|
|
|
49
79
|
> `optional` **order**: `number`
|
|
50
80
|
|
|
81
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:194
|
|
82
|
+
|
|
51
83
|
Determines the order in which this component renders in its default extension slot. Note that this can be overridden by configuration.
|
|
52
84
|
|
|
85
|
+
***
|
|
86
|
+
|
|
53
87
|
### privileges?
|
|
54
88
|
|
|
55
89
|
> `optional` **privileges**: `string` \| `string`[]
|
|
56
90
|
|
|
91
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:198
|
|
92
|
+
|
|
57
93
|
The user must have ANY of these privileges to see this extension.
|
|
58
94
|
|
|
95
|
+
***
|
|
96
|
+
|
|
59
97
|
### slot?
|
|
60
98
|
|
|
61
99
|
> `optional` **slot**: `string`
|
|
62
100
|
|
|
101
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:178
|
|
102
|
+
|
|
63
103
|
If supplied, the slot that this extension is rendered into by default.
|
|
64
104
|
|
|
105
|
+
***
|
|
106
|
+
|
|
65
107
|
### slots?
|
|
66
108
|
|
|
67
109
|
> `optional` **slots**: `string`[]
|
|
68
110
|
|
|
111
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:182
|
|
112
|
+
|
|
69
113
|
If supplied, the slots that this extension is rendered into by default.
|
|
@@ -2,16 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
# Type Alias: ModalDefinition
|
|
4
4
|
|
|
5
|
-
> **ModalDefinition** = `object`
|
|
5
|
+
> **ModalDefinition** = `object`
|
|
6
6
|
|
|
7
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
7
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:217
|
|
8
8
|
|
|
9
9
|
A definition of a modal as extracted from an app's routes.json
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### component
|
|
14
|
+
|
|
15
|
+
> **component**: `string`
|
|
16
|
+
|
|
17
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:225
|
|
18
|
+
|
|
19
|
+
The name of the component exported by this frontend module.
|
|
20
|
+
|
|
21
|
+
***
|
|
12
22
|
|
|
13
23
|
### name
|
|
14
24
|
|
|
15
25
|
> **name**: `string`
|
|
16
26
|
|
|
27
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:221
|
|
28
|
+
|
|
17
29
|
The name of this modal. This is used to launch the modal.
|
|
@@ -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:
|
|
7
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:339
|
|
8
8
|
|
|
9
|
-
This interfaces describes the format of the overall
|
|
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
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **PageDefinition** = `object` & \{ `route`: `string` \| `boolean`; `routeRegex?`: `never`; \} \| \{ `route?`: `never`; `routeRegex`: `string`; \}
|
|
6
6
|
|
|
7
|
-
Defined in: packages/framework/esm-globals/dist/types.d.ts:
|
|
7
|
+
Defined in: packages/framework/esm-globals/dist/types.d.ts:112
|
|
8
8
|
|
|
9
9
|
A definition of a page extracted from an app's routes.json
|
|
10
10
|
|