@openmrs/esm-framework 6.3.1-pre.2961 → 6.3.1-pre.2986
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 +3 -25
- package/dist/index.d.ts +17 -0
- package/dist/internal.d.ts +17 -0
- package/dist/openmrs-esm-framework.js +1 -2
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +369 -283
- package/docs/classes/OpenmrsFetchError.md +10 -10
- package/docs/enums/VisitMode.md +3 -3
- package/docs/enums/VisitStatus.md +2 -2
- package/docs/interfaces/AssignedExtension.md +1 -1
- package/docs/interfaces/Attachment.md +7 -7
- package/docs/interfaces/AttachmentResponse.md +6 -6
- package/docs/interfaces/CloseWorkspaceOptions.md +3 -3
- package/docs/interfaces/ConfigurableLinkProps.md +474 -317
- package/docs/interfaces/ConnectedExtension.md +1 -1
- package/docs/interfaces/ConnectivityChangedEvent.md +1 -1
- package/docs/interfaces/CurrentPatientOptions.md +1 -1
- package/docs/interfaces/DefaultWorkspaceProps.md +4 -4
- package/docs/interfaces/Diagnosis.md +25 -25
- package/docs/interfaces/EmrApiConfigurationResponse.md +596 -0
- package/docs/interfaces/Encounter.md +24 -24
- package/docs/interfaces/EncounterProvider.md +16 -16
- package/docs/interfaces/EncounterRole.md +16 -16
- package/docs/interfaces/EncounterType.md +16 -16
- package/docs/interfaces/ExtensionSlotBaseProps.md +3 -3
- package/docs/interfaces/FHIRCode.md +3 -3
- package/docs/interfaces/FHIRLocationResource.md +30 -0
- package/docs/interfaces/FHIRResource.md +1 -1
- package/docs/interfaces/FeatureFlagDefinition.md +3 -3
- package/docs/interfaces/FetchConfig.md +13 -13
- package/docs/interfaces/FetchError.md +2 -2
- package/docs/interfaces/FetchResponse.md +15 -15
- package/docs/interfaces/ImportMap.md +1 -1
- package/docs/interfaces/Location.md +370 -3
- package/docs/interfaces/LoggedInUserFetchResponse.md +15 -15
- package/docs/interfaces/NewVisitPayload.md +7 -7
- package/docs/interfaces/NotificationDescriptor.md +20 -2
- package/docs/interfaces/Obs.md +36 -36
- package/docs/interfaces/OldExtensionSlotBaseProps.md +3 -3
- package/docs/interfaces/OnlyThePatient.md +1 -1
- package/docs/interfaces/OpenWorkspace.md +29 -29
- package/docs/interfaces/OpenmrsAppRoutes.md +9 -9
- package/docs/interfaces/OpenmrsDatePickerProps.md +1 -1
- package/docs/interfaces/OpenmrsResource.md +0 -12
- package/docs/interfaces/OpenmrsResourceStrict.md +0 -6
- package/docs/interfaces/Patient.md +17 -17
- package/docs/interfaces/PatientIdentifier.md +18 -18
- package/docs/interfaces/PatientIdentifierType.md +22 -22
- package/docs/interfaces/PatientPhotoProps.md +0 -11
- package/docs/interfaces/PatientWithFullResponse.md +1 -1
- package/docs/interfaces/Prompt.md +5 -5
- package/docs/interfaces/ResourceLoader.md +1 -1
- package/docs/interfaces/RetryOptions.md +3 -3
- package/docs/interfaces/ShowActionableNotificationEvent.md +6 -6
- package/docs/interfaces/ShowNotificationEvent.md +5 -5
- package/docs/interfaces/ShowSnackbarEvent.md +8 -8
- package/docs/interfaces/ShowToastEvent.md +5 -5
- package/docs/interfaces/SpaConfig.md +5 -5
- package/docs/interfaces/StyleguideConfigObject.md +2 -2
- package/docs/interfaces/UploadedFile.md +7 -7
- package/docs/interfaces/UseConfigOptions.md +22 -0
- package/docs/interfaces/UseServerFetchAllOptions.md +5 -5
- package/docs/interfaces/UseServerInfiniteOptions.md +5 -5
- package/docs/interfaces/UseServerPaginationOptions.md +2 -2
- package/docs/interfaces/Visit.md +11 -11
- package/docs/interfaces/VisitItem.md +4 -4
- package/docs/interfaces/VisitReturnType.md +2 -2
- package/docs/interfaces/VisitStoreState.md +3 -3
- package/docs/interfaces/VisitType.md +3 -3
- package/docs/interfaces/WorkspaceGroupDefinition.md +2 -2
- package/docs/interfaces/WorkspaceRegistration.md +0 -6
- package/docs/interfaces/WorkspacesInfo.md +5 -5
- package/mock-jest.tsx +125 -0
- package/mock.tsx +44 -42
- package/package.json +58 -31
- package/rspack.config.cjs +96 -0
- package/{src/integration-tests/setup-tests.ts → setup-tests.ts} +6 -1
- package/src/declarations.d.ts +0 -1
- package/src/index.ts +2 -3
- package/src/integration-tests/extension-config.test.tsx +14 -12
- package/src/internal.ts +2 -3
- package/src/mock-test.test.ts +2 -2
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +3 -24
- package/typedoc.json +1 -0
- package/vitest.config.ts +9 -0
- package/dist/278.openmrs-esm-framework.js +0 -2
- package/dist/278.openmrs-esm-framework.js.map +0 -1
- package/dist/530.openmrs-esm-framework.js +0 -2
- package/dist/530.openmrs-esm-framework.js.map +0 -1
- package/dist/588.openmrs-esm-framework.js +0 -2
- package/dist/588.openmrs-esm-framework.js.map +0 -1
- package/dist/619.openmrs-esm-framework.js +0 -2
- package/dist/619.openmrs-esm-framework.js.map +0 -1
- package/dist/645.openmrs-esm-framework.js +0 -2
- package/dist/645.openmrs-esm-framework.js.map +0 -1
- package/dist/735.openmrs-esm-framework.js +0 -3
- package/dist/735.openmrs-esm-framework.js.LICENSE.txt +0 -9
- package/dist/735.openmrs-esm-framework.js.map +0 -1
- package/dist/746.openmrs-esm-framework.js +0 -2
- package/dist/746.openmrs-esm-framework.js.map +0 -1
- package/dist/788.openmrs-esm-framework.js +0 -3
- package/dist/788.openmrs-esm-framework.js.LICENSE.txt +0 -19
- package/dist/788.openmrs-esm-framework.js.map +0 -1
- package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -68
- package/jest.config.js +0 -22
- package/webpack.config.js +0 -80
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
## Hierarchy
|
6
6
|
|
7
|
-
-
|
7
|
+
- `OpenmrsResourceStrict`
|
8
8
|
|
9
9
|
↳ **`PatientIdentifierType`**
|
10
10
|
|
@@ -31,15 +31,15 @@
|
|
31
31
|
|
32
32
|
### auditInfo
|
33
33
|
|
34
|
-
• `Optional` **auditInfo**:
|
34
|
+
• `Optional` **auditInfo**: `AuditInfo`
|
35
35
|
|
36
36
|
#### Inherited from
|
37
37
|
|
38
|
-
|
38
|
+
OpenmrsResourceStrict.auditInfo
|
39
39
|
|
40
40
|
#### Defined in
|
41
41
|
|
42
|
-
|
42
|
+
packages/framework/esm-api/dist/types/openmrs-resource.d.ts:14
|
43
43
|
|
44
44
|
___
|
45
45
|
|
@@ -49,7 +49,7 @@ ___
|
|
49
49
|
|
50
50
|
#### Defined in
|
51
51
|
|
52
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
52
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L5)
|
53
53
|
|
54
54
|
___
|
55
55
|
|
@@ -59,11 +59,11 @@ ___
|
|
59
59
|
|
60
60
|
#### Inherited from
|
61
61
|
|
62
|
-
|
62
|
+
OpenmrsResourceStrict.display
|
63
63
|
|
64
64
|
#### Defined in
|
65
65
|
|
66
|
-
|
66
|
+
packages/framework/esm-api/dist/types/openmrs-resource.d.ts:12
|
67
67
|
|
68
68
|
___
|
69
69
|
|
@@ -73,7 +73,7 @@ ___
|
|
73
73
|
|
74
74
|
#### Defined in
|
75
75
|
|
76
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
76
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L6)
|
77
77
|
|
78
78
|
___
|
79
79
|
|
@@ -83,21 +83,21 @@ ___
|
|
83
83
|
|
84
84
|
#### Defined in
|
85
85
|
|
86
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
86
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L7)
|
87
87
|
|
88
88
|
___
|
89
89
|
|
90
90
|
### links
|
91
91
|
|
92
|
-
• `Optional` **links**:
|
92
|
+
• `Optional` **links**: `Link`[]
|
93
93
|
|
94
94
|
#### Inherited from
|
95
95
|
|
96
|
-
|
96
|
+
OpenmrsResourceStrict.links
|
97
97
|
|
98
98
|
#### Defined in
|
99
99
|
|
100
|
-
|
100
|
+
packages/framework/esm-api/dist/types/openmrs-resource.d.ts:13
|
101
101
|
|
102
102
|
___
|
103
103
|
|
@@ -107,7 +107,7 @@ ___
|
|
107
107
|
|
108
108
|
#### Defined in
|
109
109
|
|
110
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
110
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L10)
|
111
111
|
|
112
112
|
___
|
113
113
|
|
@@ -117,7 +117,7 @@ ___
|
|
117
117
|
|
118
118
|
#### Defined in
|
119
119
|
|
120
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
120
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L4)
|
121
121
|
|
122
122
|
___
|
123
123
|
|
@@ -127,7 +127,7 @@ ___
|
|
127
127
|
|
128
128
|
#### Defined in
|
129
129
|
|
130
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
130
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L8)
|
131
131
|
|
132
132
|
___
|
133
133
|
|
@@ -137,11 +137,11 @@ ___
|
|
137
137
|
|
138
138
|
#### Inherited from
|
139
139
|
|
140
|
-
|
140
|
+
OpenmrsResourceStrict.resourceVersion
|
141
141
|
|
142
142
|
#### Defined in
|
143
143
|
|
144
|
-
|
144
|
+
packages/framework/esm-api/dist/types/openmrs-resource.d.ts:15
|
145
145
|
|
146
146
|
___
|
147
147
|
|
@@ -151,7 +151,7 @@ ___
|
|
151
151
|
|
152
152
|
#### Defined in
|
153
153
|
|
154
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
154
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L12)
|
155
155
|
|
156
156
|
___
|
157
157
|
|
@@ -161,7 +161,7 @@ ___
|
|
161
161
|
|
162
162
|
#### Defined in
|
163
163
|
|
164
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
164
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L11)
|
165
165
|
|
166
166
|
___
|
167
167
|
|
@@ -171,11 +171,11 @@ ___
|
|
171
171
|
|
172
172
|
#### Inherited from
|
173
173
|
|
174
|
-
|
174
|
+
OpenmrsResourceStrict.uuid
|
175
175
|
|
176
176
|
#### Defined in
|
177
177
|
|
178
|
-
|
178
|
+
packages/framework/esm-api/dist/types/openmrs-resource.d.ts:11
|
179
179
|
|
180
180
|
___
|
181
181
|
|
@@ -185,4 +185,4 @@ ___
|
|
185
185
|
|
186
186
|
#### Defined in
|
187
187
|
|
188
|
-
[packages/framework/esm-api/src/types/patient-resource.ts:
|
188
|
+
[packages/framework/esm-emr-api/src/types/patient-resource.ts:9](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/patient-resource.ts#L9)
|
@@ -8,7 +8,6 @@
|
|
8
8
|
|
9
9
|
- [patientName](PatientPhotoProps.md#patientname)
|
10
10
|
- [patientUuid](PatientPhotoProps.md#patientuuid)
|
11
|
-
- [size](PatientPhotoProps.md#size)
|
12
11
|
|
13
12
|
## UI Properties
|
14
13
|
|
@@ -29,13 +28,3 @@ ___
|
|
29
28
|
#### Defined in
|
30
29
|
|
31
30
|
[packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L13)
|
32
|
-
|
33
|
-
___
|
34
|
-
|
35
|
-
### size
|
36
|
-
|
37
|
-
• `Optional` **size**: ``"small"``
|
38
|
-
|
39
|
-
#### Defined in
|
40
|
-
|
41
|
-
[packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L15)
|
@@ -26,4 +26,4 @@
|
|
26
26
|
|
27
27
|
#### Defined in
|
28
28
|
|
29
|
-
[packages/framework/esm-api/src/
|
29
|
+
[packages/framework/esm-emr-api/src/current-patient.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/current-patient.ts#L12)
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
#### Defined in
|
25
25
|
|
26
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
26
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:93](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L93)
|
27
27
|
|
28
28
|
___
|
29
29
|
|
@@ -35,7 +35,7 @@ Defaults to "Cancel"
|
|
35
35
|
|
36
36
|
#### Defined in
|
37
37
|
|
38
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
38
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:98](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L98)
|
39
39
|
|
40
40
|
___
|
41
41
|
|
@@ -47,7 +47,7 @@ Defaults to "Confirm"
|
|
47
47
|
|
48
48
|
#### Defined in
|
49
49
|
|
50
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
50
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:95](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L95)
|
51
51
|
|
52
52
|
___
|
53
53
|
|
@@ -57,7 +57,7 @@ ___
|
|
57
57
|
|
58
58
|
#### Defined in
|
59
59
|
|
60
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
60
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:92](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L92)
|
61
61
|
|
62
62
|
## Methods
|
63
63
|
|
@@ -71,4 +71,4 @@ ___
|
|
71
71
|
|
72
72
|
#### Defined in
|
73
73
|
|
74
|
-
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:
|
74
|
+
[packages/framework/esm-styleguide/src/workspaces/workspaces.ts:96](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L96)
|
@@ -33,7 +33,7 @@ Returning a value for the inital attempt (`0`) delays the initial function invoc
|
|
33
33
|
|
34
34
|
#### Defined in
|
35
35
|
|
36
|
-
|
36
|
+
packages/framework/esm-utils/dist/retry.d.ts:17
|
37
37
|
|
38
38
|
___
|
39
39
|
|
@@ -57,7 +57,7 @@ Allows running side-effects on errors, e.g. logging.
|
|
57
57
|
|
58
58
|
#### Defined in
|
59
59
|
|
60
|
-
|
60
|
+
packages/framework/esm-utils/dist/retry.d.ts:24
|
61
61
|
|
62
62
|
___
|
63
63
|
|
@@ -80,4 +80,4 @@ with an error on the current attempt.
|
|
80
80
|
|
81
81
|
#### Defined in
|
82
82
|
|
83
|
-
|
83
|
+
packages/framework/esm-utils/dist/retry.d.ts:11
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
#### Defined in
|
26
26
|
|
27
|
-
|
27
|
+
packages/framework/esm-globals/dist/events.d.ts:27
|
28
28
|
|
29
29
|
___
|
30
30
|
|
@@ -34,7 +34,7 @@ ___
|
|
34
34
|
|
35
35
|
#### Defined in
|
36
36
|
|
37
|
-
|
37
|
+
packages/framework/esm-globals/dist/events.d.ts:25
|
38
38
|
|
39
39
|
___
|
40
40
|
|
@@ -44,7 +44,7 @@ ___
|
|
44
44
|
|
45
45
|
#### Defined in
|
46
46
|
|
47
|
-
|
47
|
+
packages/framework/esm-globals/dist/events.d.ts:29
|
48
48
|
|
49
49
|
___
|
50
50
|
|
@@ -54,7 +54,7 @@ ___
|
|
54
54
|
|
55
55
|
#### Defined in
|
56
56
|
|
57
|
-
|
57
|
+
packages/framework/esm-globals/dist/events.d.ts:24
|
58
58
|
|
59
59
|
___
|
60
60
|
|
@@ -64,7 +64,7 @@ ___
|
|
64
64
|
|
65
65
|
#### Defined in
|
66
66
|
|
67
|
-
|
67
|
+
packages/framework/esm-globals/dist/events.d.ts:26
|
68
68
|
|
69
69
|
## Methods
|
70
70
|
|
@@ -78,4 +78,4 @@ ___
|
|
78
78
|
|
79
79
|
#### Defined in
|
80
80
|
|
81
|
-
|
81
|
+
packages/framework/esm-globals/dist/events.d.ts:28
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
#### Defined in
|
22
22
|
|
23
|
-
|
23
|
+
packages/framework/esm-globals/dist/events.d.ts:20
|
24
24
|
|
25
25
|
___
|
26
26
|
|
@@ -30,7 +30,7 @@ ___
|
|
30
30
|
|
31
31
|
#### Defined in
|
32
32
|
|
33
|
-
|
33
|
+
packages/framework/esm-globals/dist/events.d.ts:17
|
34
34
|
|
35
35
|
___
|
36
36
|
|
@@ -40,7 +40,7 @@ ___
|
|
40
40
|
|
41
41
|
#### Defined in
|
42
42
|
|
43
|
-
|
43
|
+
packages/framework/esm-globals/dist/events.d.ts:18
|
44
44
|
|
45
45
|
___
|
46
46
|
|
@@ -50,7 +50,7 @@ ___
|
|
50
50
|
|
51
51
|
#### Defined in
|
52
52
|
|
53
|
-
|
53
|
+
packages/framework/esm-globals/dist/events.d.ts:21
|
54
54
|
|
55
55
|
___
|
56
56
|
|
@@ -60,4 +60,4 @@ ___
|
|
60
60
|
|
61
61
|
#### Defined in
|
62
62
|
|
63
|
-
|
63
|
+
packages/framework/esm-globals/dist/events.d.ts:19
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
#### Defined in
|
28
28
|
|
29
|
-
|
29
|
+
packages/framework/esm-globals/dist/events.d.ts:44
|
30
30
|
|
31
31
|
___
|
32
32
|
|
@@ -36,7 +36,7 @@ ___
|
|
36
36
|
|
37
37
|
#### Defined in
|
38
38
|
|
39
|
-
|
39
|
+
packages/framework/esm-globals/dist/events.d.ts:47
|
40
40
|
|
41
41
|
___
|
42
42
|
|
@@ -46,7 +46,7 @@ ___
|
|
46
46
|
|
47
47
|
#### Defined in
|
48
48
|
|
49
|
-
|
49
|
+
packages/framework/esm-globals/dist/events.d.ts:42
|
50
50
|
|
51
51
|
___
|
52
52
|
|
@@ -56,7 +56,7 @@ ___
|
|
56
56
|
|
57
57
|
#### Defined in
|
58
58
|
|
59
|
-
|
59
|
+
packages/framework/esm-globals/dist/events.d.ts:46
|
60
60
|
|
61
61
|
___
|
62
62
|
|
@@ -66,7 +66,7 @@ ___
|
|
66
66
|
|
67
67
|
#### Defined in
|
68
68
|
|
69
|
-
|
69
|
+
packages/framework/esm-globals/dist/events.d.ts:41
|
70
70
|
|
71
71
|
___
|
72
72
|
|
@@ -76,7 +76,7 @@ ___
|
|
76
76
|
|
77
77
|
#### Defined in
|
78
78
|
|
79
|
-
|
79
|
+
packages/framework/esm-globals/dist/events.d.ts:48
|
80
80
|
|
81
81
|
___
|
82
82
|
|
@@ -86,7 +86,7 @@ ___
|
|
86
86
|
|
87
87
|
#### Defined in
|
88
88
|
|
89
|
-
|
89
|
+
packages/framework/esm-globals/dist/events.d.ts:43
|
90
90
|
|
91
91
|
## Methods
|
92
92
|
|
@@ -100,4 +100,4 @@ ___
|
|
100
100
|
|
101
101
|
#### Defined in
|
102
102
|
|
103
|
-
|
103
|
+
packages/framework/esm-globals/dist/events.d.ts:45
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
#### Defined in
|
25
25
|
|
26
|
-
|
26
|
+
packages/framework/esm-globals/dist/events.d.ts:36
|
27
27
|
|
28
28
|
___
|
29
29
|
|
@@ -33,7 +33,7 @@ ___
|
|
33
33
|
|
34
34
|
#### Defined in
|
35
35
|
|
36
|
-
|
36
|
+
packages/framework/esm-globals/dist/events.d.ts:33
|
37
37
|
|
38
38
|
___
|
39
39
|
|
@@ -43,7 +43,7 @@ ___
|
|
43
43
|
|
44
44
|
#### Defined in
|
45
45
|
|
46
|
-
|
46
|
+
packages/framework/esm-globals/dist/events.d.ts:34
|
47
47
|
|
48
48
|
___
|
49
49
|
|
@@ -53,7 +53,7 @@ ___
|
|
53
53
|
|
54
54
|
#### Defined in
|
55
55
|
|
56
|
-
|
56
|
+
packages/framework/esm-globals/dist/events.d.ts:35
|
57
57
|
|
58
58
|
## Methods
|
59
59
|
|
@@ -67,4 +67,4 @@ ___
|
|
67
67
|
|
68
68
|
#### Defined in
|
69
69
|
|
70
|
-
|
70
|
+
packages/framework/esm-globals/dist/events.d.ts:37
|
@@ -24,7 +24,7 @@ The base path or URL for the OpenMRS API / endpoints.
|
|
24
24
|
|
25
25
|
#### Defined in
|
26
26
|
|
27
|
-
|
27
|
+
packages/framework/esm-globals/dist/types.d.ts:84
|
28
28
|
|
29
29
|
___
|
30
30
|
|
@@ -36,7 +36,7 @@ URLs of configurations to load in the system.
|
|
36
36
|
|
37
37
|
#### Defined in
|
38
38
|
|
39
|
-
|
39
|
+
packages/framework/esm-globals/dist/types.d.ts:97
|
40
40
|
|
41
41
|
___
|
42
42
|
|
@@ -50,7 +50,7 @@ The environment to use.
|
|
50
50
|
|
51
51
|
#### Defined in
|
52
52
|
|
53
|
-
|
53
|
+
packages/framework/esm-globals/dist/types.d.ts:93
|
54
54
|
|
55
55
|
___
|
56
56
|
|
@@ -64,7 +64,7 @@ Defines if offline should be supported by installing a service worker.
|
|
64
64
|
|
65
65
|
#### Defined in
|
66
66
|
|
67
|
-
|
67
|
+
packages/framework/esm-globals/dist/types.d.ts:102
|
68
68
|
|
69
69
|
___
|
70
70
|
|
@@ -76,4 +76,4 @@ The base path for the SPA root path.
|
|
76
76
|
|
77
77
|
#### Defined in
|
78
78
|
|
79
|
-
|
79
|
+
packages/framework/esm-globals/dist/types.d.ts:88
|
@@ -56,8 +56,8 @@ ___
|
|
56
56
|
|
57
57
|
| Name | Type |
|
58
58
|
| :------ | :------ |
|
59
|
-
| `primaryColor` | ``"
|
60
|
-
| `secondaryColor` | ``"
|
59
|
+
| `primaryColor` | ``"blue"`` \| ``"cyan"`` \| ``"gray"`` \| ``"green"`` \| ``"magenta"`` \| ``"purple"`` \| ``"red"`` \| ``"teal"`` \| ``"warm-gray"`` \| ``"cool-gray"`` \| ``"high-contrast"`` \| ``"outline"`` |
|
60
|
+
| `secondaryColor` | ``"blue"`` \| ``"cyan"`` \| ``"gray"`` \| ``"green"`` \| ``"magenta"`` \| ``"purple"`` \| ``"red"`` \| ``"teal"`` \| ``"warm-gray"`` \| ``"cool-gray"`` \| ``"high-contrast"`` \| ``"outline"`` |
|
61
61
|
|
62
62
|
#### Defined in
|
63
63
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
#### Defined in
|
24
24
|
|
25
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L3)
|
25
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L3)
|
26
26
|
|
27
27
|
___
|
28
28
|
|
@@ -32,7 +32,7 @@ ___
|
|
32
32
|
|
33
33
|
#### Defined in
|
34
34
|
|
35
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L8)
|
35
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L8)
|
36
36
|
|
37
37
|
___
|
38
38
|
|
@@ -42,7 +42,7 @@ ___
|
|
42
42
|
|
43
43
|
#### Defined in
|
44
44
|
|
45
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L2)
|
45
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L2)
|
46
46
|
|
47
47
|
___
|
48
48
|
|
@@ -52,7 +52,7 @@ ___
|
|
52
52
|
|
53
53
|
#### Defined in
|
54
54
|
|
55
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L6)
|
55
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L6)
|
56
56
|
|
57
57
|
___
|
58
58
|
|
@@ -62,7 +62,7 @@ ___
|
|
62
62
|
|
63
63
|
#### Defined in
|
64
64
|
|
65
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L4)
|
65
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L4)
|
66
66
|
|
67
67
|
___
|
68
68
|
|
@@ -72,7 +72,7 @@ ___
|
|
72
72
|
|
73
73
|
#### Defined in
|
74
74
|
|
75
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L5)
|
75
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L5)
|
76
76
|
|
77
77
|
___
|
78
78
|
|
@@ -82,4 +82,4 @@ ___
|
|
82
82
|
|
83
83
|
#### Defined in
|
84
84
|
|
85
|
-
[packages/framework/esm-api/src/types/attachments-types.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L7)
|
85
|
+
[packages/framework/esm-emr-api/src/types/attachments-types.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L7)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / UseConfigOptions
|
2
|
+
|
3
|
+
# Interface: UseConfigOptions
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Config Properties
|
8
|
+
|
9
|
+
- [externalModuleName](UseConfigOptions.md#externalmodulename)
|
10
|
+
|
11
|
+
## Config Properties
|
12
|
+
|
13
|
+
### externalModuleName
|
14
|
+
|
15
|
+
• `Optional` **externalModuleName**: `string`
|
16
|
+
|
17
|
+
An external module to load the configuration from. This option should only be used if
|
18
|
+
absolutely necessary as it can end up making frontend modules coupled to one another.
|
19
|
+
|
20
|
+
#### Defined in
|
21
|
+
|
22
|
+
[packages/framework/esm-react-utils/src/useConfig.ts:131](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useConfig.ts#L131)
|
@@ -42,7 +42,7 @@ This should be the counterpart of using useSWRImmutable` for `useSWRInfinite`
|
|
42
42
|
|
43
43
|
#### Defined in
|
44
44
|
|
45
|
-
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:
|
45
|
+
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts#L25)
|
46
46
|
|
47
47
|
___
|
48
48
|
|
@@ -71,13 +71,13 @@ ___
|
|
71
71
|
|
72
72
|
#### Defined in
|
73
73
|
|
74
|
-
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:
|
74
|
+
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts#L27)
|
75
75
|
|
76
76
|
## UI Methods
|
77
77
|
|
78
78
|
### fetcher
|
79
79
|
|
80
|
-
▸ `Optional` **fetcher**(`key`): `Promise
|
80
|
+
▸ `Optional` **fetcher**(`key`): `Promise`<`FetchResponse`<`R`\>\>
|
81
81
|
|
82
82
|
The fetcher to use. Defaults to openmrsFetch
|
83
83
|
|
@@ -89,7 +89,7 @@ The fetcher to use. Defaults to openmrsFetch
|
|
89
89
|
|
90
90
|
#### Returns
|
91
91
|
|
92
|
-
`Promise
|
92
|
+
`Promise`<`FetchResponse`<`R`\>\>
|
93
93
|
|
94
94
|
#### Inherited from
|
95
95
|
|
@@ -97,4 +97,4 @@ The fetcher to use. Defaults to openmrsFetch
|
|
97
97
|
|
98
98
|
#### Defined in
|
99
99
|
|
100
|
-
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:
|
100
|
+
[packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useOpenmrsInfinite.ts#L18)
|