@openmrs/esm-framework 4.0.3-pre.371 → 4.0.3-pre.389

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/docs/API.md CHANGED
@@ -158,9 +158,11 @@
158
158
 
159
159
  - [isDesktop](API.md#isdesktop)
160
160
  - [setLeftNav](API.md#setleftnav)
161
+ - [showActionableNotification](API.md#showactionablenotification)
161
162
  - [showModal](API.md#showmodal)
162
163
  - [showNotification](API.md#shownotification)
163
164
  - [showToast](API.md#showtoast)
165
+ - [subscribeActionableNotificationShown](API.md#subscribeactionablenotificationshown)
164
166
  - [subscribeNotificationShown](API.md#subscribenotificationshown)
165
167
  - [subscribeToastShown](API.md#subscribetoastshown)
166
168
  - [unsetLeftNav](API.md#unsetleftnav)
@@ -524,6 +526,16 @@ ___
524
526
 
525
527
  ## UI Type Aliases
526
528
 
529
+ ### ActionableNotificationType
530
+
531
+ Ƭ **ActionableNotificationType**: ``"error"`` \| ``"info"`` \| ``"info-square"`` \| ``"success"`` \| ``"warning"`` \| ``"warning-alt"``
532
+
533
+ #### Defined in
534
+
535
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L25)
536
+
537
+ ___
538
+
527
539
  ### InlineNotificationType
528
540
 
529
541
  Ƭ **InlineNotificationType**: ``"error"`` \| ``"info"`` \| ``"info-square"`` \| ``"success"`` \| ``"warning"`` \| ``"warning-alt"``
@@ -1169,7 +1181,7 @@ ___
1169
1181
 
1170
1182
  #### Defined in
1171
1183
 
1172
- [packages/framework/esm-api/src/shared-api-objects/current-user.ts:239](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L239)
1184
+ [packages/framework/esm-api/src/shared-api-objects/current-user.ts:241](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L241)
1173
1185
 
1174
1186
  ___
1175
1187
 
@@ -3847,6 +3859,28 @@ ___
3847
3859
 
3848
3860
  ___
3849
3861
 
3862
+ ### showActionableNotification
3863
+
3864
+ ▸ **showActionableNotification**(`notification`): `void`
3865
+
3866
+ Displays an actionable notification in the UI.
3867
+
3868
+ #### Parameters
3869
+
3870
+ | Name | Type | Description |
3871
+ | :------ | :------ | :------ |
3872
+ | `notification` | [`ActionableNotificationDescriptor`](interfaces/ActionableNotificationDescriptor.md) | The description of the notification to display. |
3873
+
3874
+ #### Returns
3875
+
3876
+ `void`
3877
+
3878
+ #### Defined in
3879
+
3880
+ [packages/framework/esm-styleguide/src/notifications/index.tsx:88](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/index.tsx#L88)
3881
+
3882
+ ___
3883
+
3850
3884
  ### showModal
3851
3885
 
3852
3886
  ▸ **showModal**(`extensionId`, `props?`, `onClose?`): () => `void`
@@ -3897,7 +3931,7 @@ Displays an inline notification in the UI.
3897
3931
 
3898
3932
  #### Defined in
3899
3933
 
3900
- [packages/framework/esm-styleguide/src/notifications/index.tsx:40](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/index.tsx#L40)
3934
+ [packages/framework/esm-styleguide/src/notifications/index.tsx:48](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/index.tsx#L48)
3901
3935
 
3902
3936
  ___
3903
3937
 
@@ -3923,6 +3957,32 @@ Displays a toast notification in the UI.
3923
3957
 
3924
3958
  ___
3925
3959
 
3960
+ ### subscribeActionableNotificationShown
3961
+
3962
+ ▸ **subscribeActionableNotificationShown**(`cb`): () => `void`
3963
+
3964
+ #### Parameters
3965
+
3966
+ | Name | Type |
3967
+ | :------ | :------ |
3968
+ | `cb` | (`data`: [`ShowActionableNotificationEvent`](interfaces/ShowActionableNotificationEvent.md)) => `void` |
3969
+
3970
+ #### Returns
3971
+
3972
+ `fn`
3973
+
3974
+ ▸ (): `void`
3975
+
3976
+ ##### Returns
3977
+
3978
+ `void`
3979
+
3980
+ #### Defined in
3981
+
3982
+ [packages/framework/esm-globals/src/events.ts:126](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/events.ts#L126)
3983
+
3984
+ ___
3985
+
3926
3986
  ### subscribeNotificationShown
3927
3987
 
3928
3988
  ▸ **subscribeNotificationShown**(`cb`): () => `void`
@@ -3945,7 +4005,7 @@ ___
3945
4005
 
3946
4006
  #### Defined in
3947
4007
 
3948
- [packages/framework/esm-globals/src/events.ts:93](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/events.ts#L93)
4008
+ [packages/framework/esm-globals/src/events.ts:117](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/events.ts#L117)
3949
4009
 
3950
4010
  ___
3951
4011
 
@@ -3971,7 +4031,7 @@ ___
3971
4031
 
3972
4032
  #### Defined in
3973
4033
 
3974
- [packages/framework/esm-globals/src/events.ts:102](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/events.ts#L102)
4034
+ [packages/framework/esm-globals/src/events.ts:136](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/events.ts#L136)
3975
4035
 
3976
4036
  ___
3977
4037
 
@@ -164,7 +164,7 @@ Error.prepareStackTrace
164
164
 
165
165
  #### Defined in
166
166
 
167
- packages/framework/esm-framework/node_modules/@types/node/globals.d.ts:11
167
+ packages/framework/esm-framework/node_modules/@types/node/ts4.8/globals.d.ts:11
168
168
 
169
169
  ___
170
170
 
@@ -178,7 +178,7 @@ Error.stackTraceLimit
178
178
 
179
179
  #### Defined in
180
180
 
181
- packages/framework/esm-framework/node_modules/@types/node/globals.d.ts:13
181
+ packages/framework/esm-framework/node_modules/@types/node/ts4.8/globals.d.ts:13
182
182
 
183
183
  ## Methods
184
184
 
@@ -205,4 +205,4 @@ Error.captureStackTrace
205
205
 
206
206
  #### Defined in
207
207
 
208
- packages/framework/esm-framework/node_modules/@types/node/globals.d.ts:4
208
+ packages/framework/esm-framework/node_modules/@types/node/ts4.8/globals.d.ts:4
@@ -0,0 +1,107 @@
1
+ [@openmrs/esm-framework](../API.md) / ActionableNotificationDescriptor
2
+
3
+ # Interface: ActionableNotificationDescriptor
4
+
5
+ ## Table of contents
6
+
7
+ ### UI Properties
8
+
9
+ - [actionButtonLabel](ActionableNotificationDescriptor.md#actionbuttonlabel)
10
+ - [critical](ActionableNotificationDescriptor.md#critical)
11
+ - [kind](ActionableNotificationDescriptor.md#kind)
12
+ - [progressActionLabel](ActionableNotificationDescriptor.md#progressactionlabel)
13
+ - [subtitle](ActionableNotificationDescriptor.md#subtitle)
14
+ - [title](ActionableNotificationDescriptor.md#title)
15
+
16
+ ### UI Methods
17
+
18
+ - [onActionButtonClick](ActionableNotificationDescriptor.md#onactionbuttonclick)
19
+ - [onClose](ActionableNotificationDescriptor.md#onclose)
20
+
21
+ ## UI Properties
22
+
23
+ ### actionButtonLabel
24
+
25
+ • **actionButtonLabel**: `string`
26
+
27
+ #### Defined in
28
+
29
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L10)
30
+
31
+ ___
32
+
33
+ ### critical
34
+
35
+ • `Optional` **critical**: `boolean`
36
+
37
+ #### Defined in
38
+
39
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L16)
40
+
41
+ ___
42
+
43
+ ### kind
44
+
45
+ • `Optional` **kind**: `string`
46
+
47
+ #### Defined in
48
+
49
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L15)
50
+
51
+ ___
52
+
53
+ ### progressActionLabel
54
+
55
+ • `Optional` **progressActionLabel**: `string`
56
+
57
+ #### Defined in
58
+
59
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L17)
60
+
61
+ ___
62
+
63
+ ### subtitle
64
+
65
+ • **subtitle**: `string`
66
+
67
+ #### Defined in
68
+
69
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L13)
70
+
71
+ ___
72
+
73
+ ### title
74
+
75
+ • `Optional` **title**: `string`
76
+
77
+ #### Defined in
78
+
79
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L14)
80
+
81
+ ## UI Methods
82
+
83
+ ### onActionButtonClick
84
+
85
+ ▸ **onActionButtonClick**(): `void`
86
+
87
+ #### Returns
88
+
89
+ `void`
90
+
91
+ #### Defined in
92
+
93
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L11)
94
+
95
+ ___
96
+
97
+ ### onClose
98
+
99
+ ▸ `Optional` **onClose**(): `void`
100
+
101
+ #### Returns
102
+
103
+ `void`
104
+
105
+ #### Defined in
106
+
107
+ [packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/notifications/actionable-notification.component.tsx#L12)