@openmrs/esm-framework 3.2.1-pre.1155 → 3.2.1-pre.1163
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
|
@@ -139,11 +139,13 @@
|
|
|
139
139
|
|
|
140
140
|
### UI Functions
|
|
141
141
|
|
|
142
|
+
- [setLeftNav](API.md#setleftnav)
|
|
142
143
|
- [showModal](API.md#showmodal)
|
|
143
144
|
- [showNotification](API.md#shownotification)
|
|
144
145
|
- [showToast](API.md#showtoast)
|
|
145
146
|
- [subscribeNotificationShown](API.md#subscribenotificationshown)
|
|
146
147
|
- [subscribeToastShown](API.md#subscribetoastshown)
|
|
148
|
+
- [unsetLeftNav](API.md#unsetleftnav)
|
|
147
149
|
- [useBodyScrollLock](API.md#usebodyscrolllock)
|
|
148
150
|
- [useLayoutType](API.md#uselayouttype)
|
|
149
151
|
- [useOnClickOutside](API.md#useonclickoutside)
|
|
@@ -656,6 +658,18 @@ ___
|
|
|
656
658
|
|
|
657
659
|
[packages/framework/esm-api/src/openmrs-backend-dependencies.ts:1](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/openmrs-backend-dependencies.ts#L1)
|
|
658
660
|
|
|
661
|
+
___
|
|
662
|
+
|
|
663
|
+
## UI Variables
|
|
664
|
+
|
|
665
|
+
### LeftNavMenu
|
|
666
|
+
|
|
667
|
+
• **LeftNavMenu**: `ForwardRefExoticComponent`<`SideNavProps` & `RefAttributes`<`HTMLElement`\>\>
|
|
668
|
+
|
|
669
|
+
#### Defined in
|
|
670
|
+
|
|
671
|
+
[packages/framework/esm-styleguide/src/left-nav/index.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-styleguide/src/left-nav/index.tsx#L30)
|
|
672
|
+
|
|
659
673
|
## API Functions
|
|
660
674
|
|
|
661
675
|
### fetchCurrentPatient
|
|
@@ -3316,6 +3330,26 @@ ___
|
|
|
3316
3330
|
|
|
3317
3331
|
## UI Functions
|
|
3318
3332
|
|
|
3333
|
+
### setLeftNav
|
|
3334
|
+
|
|
3335
|
+
▸ **setLeftNav**(`__namedParameters`): `void`
|
|
3336
|
+
|
|
3337
|
+
#### Parameters
|
|
3338
|
+
|
|
3339
|
+
| Name | Type |
|
|
3340
|
+
| :------ | :------ |
|
|
3341
|
+
| `__namedParameters` | `Object` |
|
|
3342
|
+
|
|
3343
|
+
#### Returns
|
|
3344
|
+
|
|
3345
|
+
`void`
|
|
3346
|
+
|
|
3347
|
+
#### Defined in
|
|
3348
|
+
|
|
3349
|
+
[packages/framework/esm-styleguide/src/left-nav/index.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-styleguide/src/left-nav/index.tsx#L18)
|
|
3350
|
+
|
|
3351
|
+
___
|
|
3352
|
+
|
|
3319
3353
|
### showModal
|
|
3320
3354
|
|
|
3321
3355
|
▸ **showModal**(`extensionId`, `props?`, `onClose?`): () => `void`
|
|
@@ -3444,6 +3478,26 @@ ___
|
|
|
3444
3478
|
|
|
3445
3479
|
___
|
|
3446
3480
|
|
|
3481
|
+
### unsetLeftNav
|
|
3482
|
+
|
|
3483
|
+
▸ **unsetLeftNav**(`name`): `void`
|
|
3484
|
+
|
|
3485
|
+
#### Parameters
|
|
3486
|
+
|
|
3487
|
+
| Name | Type |
|
|
3488
|
+
| :------ | :------ |
|
|
3489
|
+
| `name` | `any` |
|
|
3490
|
+
|
|
3491
|
+
#### Returns
|
|
3492
|
+
|
|
3493
|
+
`void`
|
|
3494
|
+
|
|
3495
|
+
#### Defined in
|
|
3496
|
+
|
|
3497
|
+
[packages/framework/esm-styleguide/src/left-nav/index.tsx:22](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-styleguide/src/left-nav/index.tsx#L22)
|
|
3498
|
+
|
|
3499
|
+
___
|
|
3500
|
+
|
|
3447
3501
|
### useBodyScrollLock
|
|
3448
3502
|
|
|
3449
3503
|
▸ **useBodyScrollLock**(`active`): `void`
|
package/mock.tsx
CHANGED
|
@@ -297,3 +297,7 @@ export const useVisitTypes = jest.fn(() => []);
|
|
|
297
297
|
export const showNotification = jest.fn();
|
|
298
298
|
export const showToast = jest.fn();
|
|
299
299
|
export const showModal = jest.fn();
|
|
300
|
+
|
|
301
|
+
export const LeftNavMenu = jest.fn();
|
|
302
|
+
export const setLeftNav = jest.fn();
|
|
303
|
+
export const unsetLeftNav = jest.fn();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "3.2.1-pre.
|
|
3
|
+
"version": "3.2.1-pre.1163",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"browser": "dist/openmrs-esm-framework.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@openmrs/esm-api": "^3.2.1-pre.
|
|
39
|
-
"@openmrs/esm-breadcrumbs": "^3.2.1-pre.
|
|
40
|
-
"@openmrs/esm-config": "^3.2.1-pre.
|
|
41
|
-
"@openmrs/esm-error-handling": "^3.2.1-pre.
|
|
42
|
-
"@openmrs/esm-extensions": "^3.2.1-pre.
|
|
43
|
-
"@openmrs/esm-globals": "^3.2.1-pre.
|
|
44
|
-
"@openmrs/esm-offline": "^3.2.1-pre.
|
|
45
|
-
"@openmrs/esm-react-utils": "^3.2.1-pre.
|
|
46
|
-
"@openmrs/esm-state": "^3.2.1-pre.
|
|
47
|
-
"@openmrs/esm-styleguide": "^3.2.1-pre.
|
|
48
|
-
"@openmrs/esm-utils": "^3.2.1-pre.
|
|
38
|
+
"@openmrs/esm-api": "^3.2.1-pre.1163",
|
|
39
|
+
"@openmrs/esm-breadcrumbs": "^3.2.1-pre.1163",
|
|
40
|
+
"@openmrs/esm-config": "^3.2.1-pre.1163",
|
|
41
|
+
"@openmrs/esm-error-handling": "^3.2.1-pre.1163",
|
|
42
|
+
"@openmrs/esm-extensions": "^3.2.1-pre.1163",
|
|
43
|
+
"@openmrs/esm-globals": "^3.2.1-pre.1163",
|
|
44
|
+
"@openmrs/esm-offline": "^3.2.1-pre.1163",
|
|
45
|
+
"@openmrs/esm-react-utils": "^3.2.1-pre.1163",
|
|
46
|
+
"@openmrs/esm-state": "^3.2.1-pre.1163",
|
|
47
|
+
"@openmrs/esm-styleguide": "^3.2.1-pre.1163",
|
|
48
|
+
"@openmrs/esm-utils": "^3.2.1-pre.1163",
|
|
49
49
|
"dayjs": "^1.10.7"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "69f77c566881174c4c14586fc9403b2e0d461737"
|
|
52
52
|
}
|
package/webpack.config.js
CHANGED
|
@@ -19,10 +19,18 @@ module.exports = (env) => ({
|
|
|
19
19
|
exclude: /(node_modules|bower_components)/,
|
|
20
20
|
use: "swc-loader",
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
test: /\.s?css$/,
|
|
24
|
+
use: [
|
|
25
|
+
{ loader: require.resolve("style-loader") },
|
|
26
|
+
{ loader: require.resolve("css-loader") },
|
|
27
|
+
{ loader: require.resolve("sass-loader") },
|
|
28
|
+
],
|
|
29
|
+
},
|
|
22
30
|
],
|
|
23
31
|
},
|
|
24
32
|
resolve: {
|
|
25
|
-
extensions: [".ts", ".js", ".tsx", ".jsx"],
|
|
33
|
+
extensions: [".ts", ".js", ".tsx", ".jsx", ".scss"],
|
|
26
34
|
},
|
|
27
35
|
plugins: [
|
|
28
36
|
new SystemJSPublicPathWebpackPlugin(),
|