@openmrs/esm-framework 3.1.10-pre.92 → 3.1.11-pre.597
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/README.md +2 -8
- package/dist/openmrs-esm-framework.js +2 -21
- package/dist/openmrs-esm-framework.js.LICENSE.txt +16 -0
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +4381 -0
- package/docs/classes/OpenmrsFetchError.md +186 -0
- package/docs/enums/Type.md +85 -0
- package/docs/enums/VisitMode.md +41 -0
- package/docs/enums/VisitStatus.md +30 -0
- package/docs/interfaces/AppState.md +3 -0
- package/docs/interfaces/BreadcrumbRegistration.md +30 -0
- package/docs/interfaces/BreadcrumbSettings.md +70 -0
- package/docs/interfaces/CancelLoading.md +17 -0
- package/docs/interfaces/ClearDynamicRoutesMessage.md +29 -0
- package/docs/interfaces/ComponentConfig.md +30 -0
- package/docs/interfaces/ComponentDecoratorOptions.md +52 -0
- package/docs/interfaces/ComponentDefinition.md +101 -0
- package/docs/interfaces/Config.md +182 -0
- package/docs/interfaces/ConfigObject.md +182 -0
- package/docs/interfaces/ConfigSchema.md +45 -0
- package/docs/interfaces/ConfigStore.md +34 -0
- package/docs/interfaces/ConfigurableLinkProps.md +25 -0
- package/docs/interfaces/ConnectivityChangedEvent.md +19 -0
- package/docs/interfaces/CurrentPatientOptions.md +27 -0
- package/docs/interfaces/CurrentUserOptions.md +27 -0
- package/docs/interfaces/CurrentUserWithResponseOption.md +29 -0
- package/docs/interfaces/CurrentUserWithoutResponseOption.md +29 -0
- package/docs/interfaces/ExtensionComponentDefinition.md +153 -0
- package/docs/interfaces/ExtensionData.md +41 -0
- package/docs/interfaces/ExtensionDetails.md +81 -0
- package/docs/interfaces/ExtensionInfo.md +140 -0
- package/docs/interfaces/ExtensionInstance.md +19 -0
- package/docs/interfaces/ExtensionMeta.md +7 -0
- package/docs/interfaces/ExtensionProps.md +44 -0
- package/docs/interfaces/ExtensionRegistration.md +98 -0
- package/docs/interfaces/ExtensionSlotBaseProps.md +54 -0
- package/docs/interfaces/ExtensionSlotConfig.md +52 -0
- package/docs/interfaces/ExtensionSlotConfigObject.md +41 -0
- package/docs/interfaces/ExtensionSlotConfigsStore.md +32 -0
- package/docs/interfaces/ExtensionSlotConfigureValueObject.md +7 -0
- package/docs/interfaces/ExtensionSlotInfo.md +50 -0
- package/docs/interfaces/ExtensionSlotInstance.md +51 -0
- package/docs/interfaces/ExtensionStore.md +34 -0
- package/docs/interfaces/FHIRCode.md +30 -0
- package/docs/interfaces/FHIRRequestObj.md +41 -0
- package/docs/interfaces/FHIRResource.md +46 -0
- package/docs/interfaces/FetchHeaders.md +7 -0
- package/docs/interfaces/FetchResponse.md +285 -0
- package/docs/interfaces/ImplementerToolsConfigStore.md +19 -0
- package/docs/interfaces/ImportMap.md +19 -0
- package/docs/interfaces/LegacyAppExtensionDefinition.md +170 -0
- package/docs/interfaces/Lifecycle.md +68 -0
- package/docs/interfaces/Location.md +41 -0
- package/docs/interfaces/LoggedInUser.md +133 -0
- package/docs/interfaces/LoggedInUserFetchResponse.md +281 -0
- package/docs/interfaces/MessageServiceWorkerResult.md +47 -0
- package/docs/interfaces/ModernAppExtensionDefinition.md +196 -0
- package/docs/interfaces/NavigateOptions.md +19 -0
- package/docs/interfaces/NavigationContext.md +50 -0
- package/docs/interfaces/NetworkRequestFailedEvent.md +49 -0
- package/docs/interfaces/NewVisitPayload.md +74 -0
- package/docs/interfaces/OfflinePatientArgs.md +34 -0
- package/docs/interfaces/OfflinePatientDataSyncHandler.md +52 -0
- package/docs/interfaces/OfflinePatientDataSyncState.md +99 -0
- package/docs/interfaces/OfflinePatientDataSyncStore.md +37 -0
- package/docs/interfaces/OfflineSynchronizationStore.md +27 -0
- package/docs/interfaces/OmrsServiceWorkerEvent.md +31 -0
- package/docs/interfaces/OmrsServiceWorkerMessage.md +35 -0
- package/docs/interfaces/OnImportMapChangedMessage.md +40 -0
- package/docs/interfaces/OnlyThePatient.md +29 -0
- package/docs/interfaces/OpenmrsReactComponentProps.md +19 -0
- package/docs/interfaces/OpenmrsReactComponentState.md +41 -0
- package/docs/interfaces/OpenmrsResource.md +34 -0
- package/docs/interfaces/PageDefinition.md +149 -0
- package/docs/interfaces/PatientWithFullResponse.md +29 -0
- package/docs/interfaces/Person.md +41 -0
- package/docs/interfaces/PrecacheStaticDependenciesEvent.md +3 -0
- package/docs/interfaces/Privilege.md +41 -0
- package/docs/interfaces/QueueItemDescriptor.md +52 -0
- package/docs/interfaces/RegisterDynamicRouteMessage.md +51 -0
- package/docs/interfaces/ResourceLoader.md +23 -0
- package/docs/interfaces/RetryOptions.md +83 -0
- package/docs/interfaces/Role.md +41 -0
- package/docs/interfaces/SessionLocation.md +41 -0
- package/docs/interfaces/SessionUser.md +92 -0
- package/docs/interfaces/ShowNotificationEvent.md +63 -0
- package/docs/interfaces/ShowToastEvent.md +52 -0
- package/docs/interfaces/SpaConfig.md +77 -0
- package/docs/interfaces/SyncItem.md +92 -0
- package/docs/interfaces/SyncProcessOptions.md +69 -0
- package/docs/interfaces/UnauthenticatedUser.md +52 -0
- package/docs/interfaces/User.md +107 -0
- package/docs/interfaces/UserHasAccessProps.md +19 -0
- package/docs/interfaces/Visit.md +111 -0
- package/docs/interfaces/VisitItem.md +52 -0
- package/docs/interfaces/VisitType.md +41 -0
- package/docs/interfaces/WorkspaceItem.md +74 -0
- package/mock.tsx +253 -0
- package/package.json +15 -12
- package/src/index.ts +3 -1
- package/tsconfig.json +1 -0
- package/typedoc.json +7 -0
- package/webpack.config.js +4 -10
- package/src/set-public-path.ts +0 -3
- package/src/types.ts +0 -19
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / OpenmrsFetchError
|
|
2
|
+
|
|
3
|
+
# Class: OpenmrsFetchError
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
- `Error`
|
|
8
|
+
|
|
9
|
+
↳ **`OpenmrsFetchError`**
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Constructors
|
|
14
|
+
|
|
15
|
+
- [constructor](OpenmrsFetchError.md#constructor)
|
|
16
|
+
|
|
17
|
+
### Properties
|
|
18
|
+
|
|
19
|
+
- [message](OpenmrsFetchError.md#message)
|
|
20
|
+
- [name](OpenmrsFetchError.md#name)
|
|
21
|
+
- [response](OpenmrsFetchError.md#response)
|
|
22
|
+
- [responseBody](OpenmrsFetchError.md#responsebody)
|
|
23
|
+
- [stack](OpenmrsFetchError.md#stack)
|
|
24
|
+
- [prepareStackTrace](OpenmrsFetchError.md#preparestacktrace)
|
|
25
|
+
- [stackTraceLimit](OpenmrsFetchError.md#stacktracelimit)
|
|
26
|
+
|
|
27
|
+
### Methods
|
|
28
|
+
|
|
29
|
+
- [captureStackTrace](OpenmrsFetchError.md#capturestacktrace)
|
|
30
|
+
|
|
31
|
+
## Constructors
|
|
32
|
+
|
|
33
|
+
### constructor
|
|
34
|
+
|
|
35
|
+
• **new OpenmrsFetchError**(`url`, `response`, `responseBody`, `requestStacktrace`)
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
| Name | Type |
|
|
40
|
+
| :------ | :------ |
|
|
41
|
+
| `url` | `string` |
|
|
42
|
+
| `response` | `Response` |
|
|
43
|
+
| `responseBody` | ``null`` \| `ResponseBody` |
|
|
44
|
+
| `requestStacktrace` | `Error` |
|
|
45
|
+
|
|
46
|
+
#### Overrides
|
|
47
|
+
|
|
48
|
+
Error.constructor
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:270](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L270)
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
### message
|
|
57
|
+
|
|
58
|
+
• **message**: `string`
|
|
59
|
+
|
|
60
|
+
#### Inherited from
|
|
61
|
+
|
|
62
|
+
Error.message
|
|
63
|
+
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
node_modules/typescript/lib/lib.es5.d.ts:974
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### name
|
|
71
|
+
|
|
72
|
+
• **name**: `string`
|
|
73
|
+
|
|
74
|
+
#### Inherited from
|
|
75
|
+
|
|
76
|
+
Error.name
|
|
77
|
+
|
|
78
|
+
#### Defined in
|
|
79
|
+
|
|
80
|
+
node_modules/typescript/lib/lib.es5.d.ts:973
|
|
81
|
+
|
|
82
|
+
___
|
|
83
|
+
|
|
84
|
+
### response
|
|
85
|
+
|
|
86
|
+
• **response**: `Response`
|
|
87
|
+
|
|
88
|
+
#### Defined in
|
|
89
|
+
|
|
90
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:283](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L283)
|
|
91
|
+
|
|
92
|
+
___
|
|
93
|
+
|
|
94
|
+
### responseBody
|
|
95
|
+
|
|
96
|
+
• **responseBody**: ``null`` \| `string` \| `FetchResponseJson`
|
|
97
|
+
|
|
98
|
+
#### Defined in
|
|
99
|
+
|
|
100
|
+
[packages/framework/esm-api/src/openmrs-fetch.ts:284](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-fetch.ts#L284)
|
|
101
|
+
|
|
102
|
+
___
|
|
103
|
+
|
|
104
|
+
### stack
|
|
105
|
+
|
|
106
|
+
• `Optional` **stack**: `string`
|
|
107
|
+
|
|
108
|
+
#### Inherited from
|
|
109
|
+
|
|
110
|
+
Error.stack
|
|
111
|
+
|
|
112
|
+
#### Defined in
|
|
113
|
+
|
|
114
|
+
node_modules/typescript/lib/lib.es5.d.ts:975
|
|
115
|
+
|
|
116
|
+
___
|
|
117
|
+
|
|
118
|
+
### prepareStackTrace
|
|
119
|
+
|
|
120
|
+
▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
|
|
121
|
+
|
|
122
|
+
#### Type declaration
|
|
123
|
+
|
|
124
|
+
▸ (`err`, `stackTraces`): `any`
|
|
125
|
+
|
|
126
|
+
Optional override for formatting stack traces
|
|
127
|
+
|
|
128
|
+
##### Parameters
|
|
129
|
+
|
|
130
|
+
| Name | Type |
|
|
131
|
+
| :------ | :------ |
|
|
132
|
+
| `err` | `Error` |
|
|
133
|
+
| `stackTraces` | `CallSite`[] |
|
|
134
|
+
|
|
135
|
+
##### Returns
|
|
136
|
+
|
|
137
|
+
`any`
|
|
138
|
+
|
|
139
|
+
#### Inherited from
|
|
140
|
+
|
|
141
|
+
Error.prepareStackTrace
|
|
142
|
+
|
|
143
|
+
#### Defined in
|
|
144
|
+
|
|
145
|
+
node_modules/@types/node/globals.d.ts:11
|
|
146
|
+
|
|
147
|
+
___
|
|
148
|
+
|
|
149
|
+
### stackTraceLimit
|
|
150
|
+
|
|
151
|
+
▪ `Static` **stackTraceLimit**: `number`
|
|
152
|
+
|
|
153
|
+
#### Inherited from
|
|
154
|
+
|
|
155
|
+
Error.stackTraceLimit
|
|
156
|
+
|
|
157
|
+
#### Defined in
|
|
158
|
+
|
|
159
|
+
node_modules/@types/node/globals.d.ts:13
|
|
160
|
+
|
|
161
|
+
## Methods
|
|
162
|
+
|
|
163
|
+
### captureStackTrace
|
|
164
|
+
|
|
165
|
+
▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
166
|
+
|
|
167
|
+
Create .stack property on a target object
|
|
168
|
+
|
|
169
|
+
#### Parameters
|
|
170
|
+
|
|
171
|
+
| Name | Type |
|
|
172
|
+
| :------ | :------ |
|
|
173
|
+
| `targetObject` | `object` |
|
|
174
|
+
| `constructorOpt?` | `Function` |
|
|
175
|
+
|
|
176
|
+
#### Returns
|
|
177
|
+
|
|
178
|
+
`void`
|
|
179
|
+
|
|
180
|
+
#### Inherited from
|
|
181
|
+
|
|
182
|
+
Error.captureStackTrace
|
|
183
|
+
|
|
184
|
+
#### Defined in
|
|
185
|
+
|
|
186
|
+
node_modules/@types/node/globals.d.ts:4
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / Type
|
|
2
|
+
|
|
3
|
+
# Enumeration: Type
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Enumeration members
|
|
8
|
+
|
|
9
|
+
- [Array](Type.md#array)
|
|
10
|
+
- [Boolean](Type.md#boolean)
|
|
11
|
+
- [ConceptUuid](Type.md#conceptuuid)
|
|
12
|
+
- [Number](Type.md#number)
|
|
13
|
+
- [Object](Type.md#object)
|
|
14
|
+
- [String](Type.md#string)
|
|
15
|
+
- [UUID](Type.md#uuid)
|
|
16
|
+
|
|
17
|
+
## Enumeration members
|
|
18
|
+
|
|
19
|
+
### Array
|
|
20
|
+
|
|
21
|
+
• **Array** = `"Array"`
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[packages/framework/esm-config/src/types.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L2)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### Boolean
|
|
30
|
+
|
|
31
|
+
• **Boolean** = `"Boolean"`
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[packages/framework/esm-config/src/types.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L3)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### ConceptUuid
|
|
40
|
+
|
|
41
|
+
• **ConceptUuid** = `"ConceptUuid"`
|
|
42
|
+
|
|
43
|
+
#### Defined in
|
|
44
|
+
|
|
45
|
+
[packages/framework/esm-config/src/types.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L4)
|
|
46
|
+
|
|
47
|
+
___
|
|
48
|
+
|
|
49
|
+
### Number
|
|
50
|
+
|
|
51
|
+
• **Number** = `"Number"`
|
|
52
|
+
|
|
53
|
+
#### Defined in
|
|
54
|
+
|
|
55
|
+
[packages/framework/esm-config/src/types.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L5)
|
|
56
|
+
|
|
57
|
+
___
|
|
58
|
+
|
|
59
|
+
### Object
|
|
60
|
+
|
|
61
|
+
• **Object** = `"Object"`
|
|
62
|
+
|
|
63
|
+
#### Defined in
|
|
64
|
+
|
|
65
|
+
[packages/framework/esm-config/src/types.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L6)
|
|
66
|
+
|
|
67
|
+
___
|
|
68
|
+
|
|
69
|
+
### String
|
|
70
|
+
|
|
71
|
+
• **String** = `"String"`
|
|
72
|
+
|
|
73
|
+
#### Defined in
|
|
74
|
+
|
|
75
|
+
[packages/framework/esm-config/src/types.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L7)
|
|
76
|
+
|
|
77
|
+
___
|
|
78
|
+
|
|
79
|
+
### UUID
|
|
80
|
+
|
|
81
|
+
• **UUID** = `"UUID"`
|
|
82
|
+
|
|
83
|
+
#### Defined in
|
|
84
|
+
|
|
85
|
+
[packages/framework/esm-config/src/types.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/types.ts#L8)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / VisitMode
|
|
2
|
+
|
|
3
|
+
# Enumeration: VisitMode
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Enumeration members
|
|
8
|
+
|
|
9
|
+
- [EDITVISIT](VisitMode.md#editvisit)
|
|
10
|
+
- [LOADING](VisitMode.md#loading)
|
|
11
|
+
- [NEWVISIT](VisitMode.md#newvisit)
|
|
12
|
+
|
|
13
|
+
## Enumeration members
|
|
14
|
+
|
|
15
|
+
### EDITVISIT
|
|
16
|
+
|
|
17
|
+
• **EDITVISIT** = `"editVisit"`
|
|
18
|
+
|
|
19
|
+
#### Defined in
|
|
20
|
+
|
|
21
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:95](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L95)
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### LOADING
|
|
26
|
+
|
|
27
|
+
• **LOADING** = `"loadingVisit"`
|
|
28
|
+
|
|
29
|
+
#### Defined in
|
|
30
|
+
|
|
31
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:96](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L96)
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### NEWVISIT
|
|
36
|
+
|
|
37
|
+
• **NEWVISIT** = `"startVisit"`
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:94](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L94)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / VisitStatus
|
|
2
|
+
|
|
3
|
+
# Enumeration: VisitStatus
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Enumeration members
|
|
8
|
+
|
|
9
|
+
- [NOTSTARTED](VisitStatus.md#notstarted)
|
|
10
|
+
- [ONGOING](VisitStatus.md#ongoing)
|
|
11
|
+
|
|
12
|
+
## Enumeration members
|
|
13
|
+
|
|
14
|
+
### NOTSTARTED
|
|
15
|
+
|
|
16
|
+
• **NOTSTARTED** = `"notStarted"`
|
|
17
|
+
|
|
18
|
+
#### Defined in
|
|
19
|
+
|
|
20
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:100](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L100)
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### ONGOING
|
|
25
|
+
|
|
26
|
+
• **ONGOING** = `"ongoing"`
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L101)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / BreadcrumbRegistration
|
|
2
|
+
|
|
3
|
+
# Interface: BreadcrumbRegistration
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [matcher](BreadcrumbRegistration.md#matcher)
|
|
10
|
+
- [settings](BreadcrumbRegistration.md#settings)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### matcher
|
|
15
|
+
|
|
16
|
+
• **matcher**: `RegExp`
|
|
17
|
+
|
|
18
|
+
#### Defined in
|
|
19
|
+
|
|
20
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:31](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L31)
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### settings
|
|
25
|
+
|
|
26
|
+
• **settings**: [`BreadcrumbSettings`](BreadcrumbSettings.md)
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L32)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / BreadcrumbSettings
|
|
2
|
+
|
|
3
|
+
# Interface: BreadcrumbSettings
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [matcher](BreadcrumbSettings.md#matcher)
|
|
10
|
+
- [parent](BreadcrumbSettings.md#parent)
|
|
11
|
+
- [path](BreadcrumbSettings.md#path)
|
|
12
|
+
- [title](BreadcrumbSettings.md#title)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### matcher
|
|
17
|
+
|
|
18
|
+
• `Optional` **matcher**: `string` \| `RegExp`
|
|
19
|
+
|
|
20
|
+
A string or RegEx that determines whether the breadcrumb should be displayed.
|
|
21
|
+
It is tested against the current location's path.
|
|
22
|
+
|
|
23
|
+
If `matcher` is a string, it can contain route parameters. e.g. `/foo/:bar`.
|
|
24
|
+
|
|
25
|
+
Can be omitted; the value of `path` is used as the default value.
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L14)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### parent
|
|
34
|
+
|
|
35
|
+
• `Optional` **parent**: `string`
|
|
36
|
+
|
|
37
|
+
The breadcrumb's parent breadcrumb. Supply the path of the breadcrumb here, e.g.,
|
|
38
|
+
if we are currently in "/foo/bar", you could provide "/foo" to get the breadcrumb
|
|
39
|
+
associated with the path "/foo".
|
|
40
|
+
|
|
41
|
+
If a path is missing for some reason, the closest matching one will be taken as
|
|
42
|
+
parent.
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L23)
|
|
47
|
+
|
|
48
|
+
___
|
|
49
|
+
|
|
50
|
+
### path
|
|
51
|
+
|
|
52
|
+
• **path**: `string`
|
|
53
|
+
|
|
54
|
+
Gets the path of breadcrumb for navigation purposes.
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L5)
|
|
59
|
+
|
|
60
|
+
___
|
|
61
|
+
|
|
62
|
+
### title
|
|
63
|
+
|
|
64
|
+
• **title**: `string` \| (`params`: `any`) => `string`
|
|
65
|
+
|
|
66
|
+
The title of the breadcrumb.
|
|
67
|
+
|
|
68
|
+
#### Defined in
|
|
69
|
+
|
|
70
|
+
[packages/framework/esm-breadcrumbs/src/types.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-breadcrumbs/src/types.ts#L27)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / CancelLoading
|
|
2
|
+
|
|
3
|
+
# Interface: CancelLoading
|
|
4
|
+
|
|
5
|
+
## Callable
|
|
6
|
+
|
|
7
|
+
### CancelLoading
|
|
8
|
+
|
|
9
|
+
▸ **CancelLoading**(): `void`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`void`
|
|
14
|
+
|
|
15
|
+
#### Defined in
|
|
16
|
+
|
|
17
|
+
[packages/framework/esm-extensions/src/render.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-extensions/src/render.ts#L15)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ClearDynamicRoutesMessage
|
|
2
|
+
|
|
3
|
+
# Interface: ClearDynamicRoutesMessage
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
- [`OmrsServiceWorkerMessage`](OmrsServiceWorkerMessage.md)<``"clearDynamicRoutes"``\>
|
|
8
|
+
|
|
9
|
+
↳ **`ClearDynamicRoutesMessage`**
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [type](ClearDynamicRoutesMessage.md#type)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### type
|
|
20
|
+
|
|
21
|
+
• **type**: ``"clearDynamicRoutes"``
|
|
22
|
+
|
|
23
|
+
#### Inherited from
|
|
24
|
+
|
|
25
|
+
[OmrsServiceWorkerMessage](OmrsServiceWorkerMessage.md).[type](OmrsServiceWorkerMessage.md#type)
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/service-worker-messaging.ts#L26)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ComponentConfig
|
|
2
|
+
|
|
3
|
+
# Interface: ComponentConfig
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [extension](ComponentConfig.md#extension)
|
|
10
|
+
- [moduleName](ComponentConfig.md#modulename)
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### extension
|
|
15
|
+
|
|
16
|
+
• `Optional` **extension**: [`ExtensionData`](ExtensionData.md)
|
|
17
|
+
|
|
18
|
+
#### Defined in
|
|
19
|
+
|
|
20
|
+
[packages/framework/esm-react-utils/src/ComponentContext.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ComponentContext.ts#L11)
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### moduleName
|
|
25
|
+
|
|
26
|
+
• **moduleName**: `string`
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[packages/framework/esm-react-utils/src/ComponentContext.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/ComponentContext.ts#L10)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ComponentDecoratorOptions
|
|
2
|
+
|
|
3
|
+
# Interface: ComponentDecoratorOptions
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [disableTranslations](ComponentDecoratorOptions.md#disabletranslations)
|
|
10
|
+
- [featureName](ComponentDecoratorOptions.md#featurename)
|
|
11
|
+
- [moduleName](ComponentDecoratorOptions.md#modulename)
|
|
12
|
+
- [strictMode](ComponentDecoratorOptions.md#strictmode)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### disableTranslations
|
|
17
|
+
|
|
18
|
+
• `Optional` **disableTranslations**: `boolean`
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx:57](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx#L57)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### featureName
|
|
27
|
+
|
|
28
|
+
• **featureName**: `string`
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx:56](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx#L56)
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### moduleName
|
|
37
|
+
|
|
38
|
+
• **moduleName**: `string`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx:55](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx#L55)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### strictMode
|
|
47
|
+
|
|
48
|
+
• `Optional` **strictMode**: `boolean`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/openmrsComponentDecorator.tsx#L58)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ComponentDefinition
|
|
2
|
+
|
|
3
|
+
# Interface: ComponentDefinition
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
- **`ComponentDefinition`**
|
|
8
|
+
|
|
9
|
+
↳ [`ExtensionComponentDefinition`](ExtensionComponentDefinition.md)
|
|
10
|
+
|
|
11
|
+
↳ [`PageDefinition`](PageDefinition.md)
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Properties
|
|
16
|
+
|
|
17
|
+
- [appName](ComponentDefinition.md#appname)
|
|
18
|
+
- [offline](ComponentDefinition.md#offline)
|
|
19
|
+
- [online](ComponentDefinition.md#online)
|
|
20
|
+
- [privilege](ComponentDefinition.md#privilege)
|
|
21
|
+
- [resources](ComponentDefinition.md#resources)
|
|
22
|
+
|
|
23
|
+
### Methods
|
|
24
|
+
|
|
25
|
+
- [load](ComponentDefinition.md#load)
|
|
26
|
+
|
|
27
|
+
## Properties
|
|
28
|
+
|
|
29
|
+
### appName
|
|
30
|
+
|
|
31
|
+
• **appName**: `string`
|
|
32
|
+
|
|
33
|
+
The module/app that defines the component
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[packages/framework/esm-globals/src/types.ts:86](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L86)
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### offline
|
|
42
|
+
|
|
43
|
+
• `Optional` **offline**: `boolean` \| `object`
|
|
44
|
+
|
|
45
|
+
Defines the offline support / properties of the component.
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[packages/framework/esm-globals/src/types.ts:98](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L98)
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### online
|
|
54
|
+
|
|
55
|
+
• `Optional` **online**: `boolean` \| `object`
|
|
56
|
+
|
|
57
|
+
Defines the online support / properties of the component.
|
|
58
|
+
|
|
59
|
+
#### Defined in
|
|
60
|
+
|
|
61
|
+
[packages/framework/esm-globals/src/types.ts:94](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L94)
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### privilege
|
|
66
|
+
|
|
67
|
+
• `Optional` **privilege**: `string`
|
|
68
|
+
|
|
69
|
+
Defines the access privilege required for this component, if any.
|
|
70
|
+
|
|
71
|
+
#### Defined in
|
|
72
|
+
|
|
73
|
+
[packages/framework/esm-globals/src/types.ts:102](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L102)
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### resources
|
|
78
|
+
|
|
79
|
+
• `Optional` **resources**: `Record`<`string`, [`ResourceLoader`](ResourceLoader.md)<`any`\>\>
|
|
80
|
+
|
|
81
|
+
Defines resources that are loaded when the component should mount.
|
|
82
|
+
|
|
83
|
+
#### Defined in
|
|
84
|
+
|
|
85
|
+
[packages/framework/esm-globals/src/types.ts:106](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L106)
|
|
86
|
+
|
|
87
|
+
## Methods
|
|
88
|
+
|
|
89
|
+
### load
|
|
90
|
+
|
|
91
|
+
▸ **load**(): `Promise`<`any`\>
|
|
92
|
+
|
|
93
|
+
Defines a function to use for actually loading the component's lifecycle.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`<`any`\>
|
|
98
|
+
|
|
99
|
+
#### Defined in
|
|
100
|
+
|
|
101
|
+
[packages/framework/esm-globals/src/types.ts:90](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L90)
|