@openmrs/esm-styleguide 8.0.1-pre.3565 → 8.0.1-pre.3568
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 -3
- package/dist/openmrs-esm-styleguide.css +1 -1
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/package.json +12 -12
- package/src/workspaces2/workspace-windows-and-menu.component.tsx +2 -0
- package/src/workspaces2/workspace-windows-and-menu.module.scss +9 -0
- package/src/workspaces2/workspace2.module.scss +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "8.0.1-pre.
|
|
3
|
+
"version": "8.0.1-pre.3568",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"main": "dist/openmrs-esm-styleguide.js",
|
|
@@ -98,17 +98,17 @@
|
|
|
98
98
|
"swr": "2.x"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@openmrs/esm-api": "8.0.1-pre.
|
|
102
|
-
"@openmrs/esm-config": "8.0.1-pre.
|
|
103
|
-
"@openmrs/esm-emr-api": "8.0.1-pre.
|
|
104
|
-
"@openmrs/esm-error-handling": "8.0.1-pre.
|
|
105
|
-
"@openmrs/esm-extensions": "8.0.1-pre.
|
|
106
|
-
"@openmrs/esm-globals": "8.0.1-pre.
|
|
107
|
-
"@openmrs/esm-navigation": "8.0.1-pre.
|
|
108
|
-
"@openmrs/esm-react-utils": "8.0.1-pre.
|
|
109
|
-
"@openmrs/esm-state": "8.0.1-pre.
|
|
110
|
-
"@openmrs/esm-translations": "8.0.1-pre.
|
|
111
|
-
"@openmrs/esm-utils": "8.0.1-pre.
|
|
101
|
+
"@openmrs/esm-api": "8.0.1-pre.3568",
|
|
102
|
+
"@openmrs/esm-config": "8.0.1-pre.3568",
|
|
103
|
+
"@openmrs/esm-emr-api": "8.0.1-pre.3568",
|
|
104
|
+
"@openmrs/esm-error-handling": "8.0.1-pre.3568",
|
|
105
|
+
"@openmrs/esm-extensions": "8.0.1-pre.3568",
|
|
106
|
+
"@openmrs/esm-globals": "8.0.1-pre.3568",
|
|
107
|
+
"@openmrs/esm-navigation": "8.0.1-pre.3568",
|
|
108
|
+
"@openmrs/esm-react-utils": "8.0.1-pre.3568",
|
|
109
|
+
"@openmrs/esm-state": "8.0.1-pre.3568",
|
|
110
|
+
"@openmrs/esm-translations": "8.0.1-pre.3568",
|
|
111
|
+
"@openmrs/esm-utils": "8.0.1-pre.3568",
|
|
112
112
|
"@rspack/cli": "^1.3.11",
|
|
113
113
|
"@rspack/core": "^1.3.11",
|
|
114
114
|
"@types/geopattern": "^1.2.9",
|
|
@@ -25,11 +25,13 @@ function WorkspaceWindowsAndMenu() {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const group = registeredGroupsByName[openedGroup.groupName];
|
|
28
|
+
const hasMaximizedWindow = openedWindows.some((window) => window.maximized);
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
31
|
<div
|
|
31
32
|
className={classNames(styles.workspaceWindowsAndMenuContainer, {
|
|
32
33
|
[styles.overlay]: group.overlay,
|
|
34
|
+
[styles.hasMaximizedWindow]: hasMaximizedWindow,
|
|
33
35
|
})}
|
|
34
36
|
>
|
|
35
37
|
<div className={styles.workspaceWindowsContainer}>
|
|
@@ -2,14 +2,23 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
height: 100%;
|
|
5
|
+
width: 100%;
|
|
5
6
|
contain: content;
|
|
6
7
|
|
|
8
|
+
// When any workspace is maximized, remove containment to allow fixed positioning
|
|
9
|
+
&.hasMaximizedWindow {
|
|
10
|
+
contain: none !important;
|
|
11
|
+
transform: none !important;
|
|
12
|
+
will-change: auto !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
&.overlay {
|
|
8
16
|
contain: none;
|
|
9
17
|
position: absolute;
|
|
10
18
|
right: 0;
|
|
11
19
|
top: 0;
|
|
12
20
|
bottom: 0;
|
|
21
|
+
width: 100vw;
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
|
|
@@ -41,10 +41,16 @@ $extraWideWorkspaceWidth: 48.25rem;
|
|
|
41
41
|
animation: slideFromRight 0.5s ease-in-out;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
transition: width 0.5s ease-in-out;
|
|
45
|
-
|
|
46
44
|
&.maximized {
|
|
47
|
-
|
|
45
|
+
position: fixed !important;
|
|
46
|
+
top: var(--omrs-navbar-height) !important;
|
|
47
|
+
inset-inline-start: 0 !important;
|
|
48
|
+
inset-inline-end: var(--actionPanelOffset) !important;
|
|
49
|
+
width: calc(100vw - var(--actionPanelOffset)) !important;
|
|
50
|
+
bottom: 0 !important;
|
|
51
|
+
transform: none !important;
|
|
52
|
+
will-change: auto !important;
|
|
53
|
+
transition: none !important;
|
|
48
54
|
}
|
|
49
55
|
&.hidden {
|
|
50
56
|
width: 0;
|
|
@@ -71,11 +77,11 @@ $extraWideWorkspaceWidth: 48.25rem;
|
|
|
71
77
|
border-inline-start: 1px solid $text-03;
|
|
72
78
|
background-color: #fff;
|
|
73
79
|
will-change: width;
|
|
74
|
-
|
|
75
80
|
transition: width 0.5s ease-in-out;
|
|
76
81
|
|
|
77
82
|
&.maximized {
|
|
78
|
-
width:
|
|
83
|
+
width: 100%;
|
|
84
|
+
transition: none !important;
|
|
79
85
|
}
|
|
80
86
|
}
|
|
81
87
|
|