asab_webui_shell 27.5.1 → 27.5.2

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.
@@ -109,6 +109,10 @@ body {
109
109
  overflow-y: visible; // We want the full content to be displayed
110
110
  }
111
111
 
112
+ .progress {
113
+ display: none;
114
+ }
115
+
112
116
  }
113
117
 
114
118
  }
@@ -99,7 +99,9 @@ function Sidebar(props) {
99
99
  setSidebarBottomBranding((0, _BrandImage.getBrandImage)(props, theme, 'sidebarLogo'));
100
100
  }, [theme]);
101
101
  var toggleSidebarModal = () => setIsSmallResolution(!isSmallResolution);
102
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, windowWidth <= 768 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
102
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, windowWidth <= 768 ? /*#__PURE__*/_react.default.createElement("div", {
103
+ id: "app-sidebar"
104
+ }, /*#__PURE__*/_react.default.createElement("div", {
103
105
  onClick: toggleSidebarModal
104
106
  }, /*#__PURE__*/_react.default.createElement("i", {
105
107
  className: "bi ms-2 bi-list text-primary fs-1"
@@ -1,10 +1,11 @@
1
1
  @page print-portrait {
2
- size: A4 portrait;
2
+ size: a4 portrait;
3
+ margin: 10mm;
3
4
  }
4
5
 
5
6
  @page print-landscape {
6
- size: A4 landscape;
7
- margin: 2cm 1cm 1.5cm;
7
+ size: a4 landscape;
8
+ margin: 10mm;
8
9
  }
9
10
 
10
11
  @media print {
@@ -79,7 +80,7 @@
79
80
  --table-row-hover-bg-color-rgb: var(--soft-gray-rgb);
80
81
 
81
82
  &.print-portrait {
82
- width: 900px;
83
+ width: 1200px;
83
84
  }
84
85
 
85
86
  #app {
@@ -95,25 +96,7 @@
95
96
  .card {
96
97
  box-shadow: none !important;
97
98
  border: 0 !important;
98
- .card-header {
99
- background-color: var(--white);
100
- &.print-card-header {
101
- min-height: auto;
102
- .flex-fill {
103
- height: auto;
104
- }
105
- }
106
99
 
107
- i:not(.text-warning) {
108
- display: none !important;
109
- }
110
- h3 {
111
- font-size: 32px !important;
112
- }
113
- }
114
- .card-body {
115
- color: inherit !important;
116
- }
117
100
  .card-footer, .card-footer-flex, .input-group {
118
101
  display: none !important;
119
102
  }
@@ -165,48 +148,25 @@
165
148
  }
166
149
  }
167
150
 
151
+ // Taken from here: https://github.com/react-grid-layout/react-grid-layout/issues/589
168
152
 
169
- .reports-container {
170
- margin-top: 0 !important; /* Remove margin-top to prevent blank first page */
171
- padding-top: 0 !important; /* Remove padding to prevent blank first page */
172
- padding-bottom: 0 !important; /* Remove bottom padding to prevent blank spaces at the endof the sheet */
173
- margin-bottom: 0 !important; /* Remove bottom margin to prevent blank spaces at the endof the sheet */
174
- .react-grid-layout {
175
- height: unset !important;
176
- display: table;
177
- text-align: center;
178
- .react-grid-item {
179
- display: inline-block;
180
- position: unset !important;
181
- transform: unset !important;
182
- text-align: initial;
183
- break-inside: avoid;
184
- }
185
- .react-grid-item:not(:has(.recharts-responsive-container)) {
186
- height: initial !important; /* Allow table widgets to expand and show all content */
187
- }
153
+ .react-grid-item {
154
+ position: unset !important;
155
+ transform: unset !important;
156
+ margin: 10px;
157
+ display: inline-block;
158
+
159
+ > div {
160
+ page-break-inside: avoid;
161
+ break-inside: avoid;
188
162
  }
189
163
  }
190
-
191
- .dashboard-container {
192
- &.display-print {
193
- .react-grid-layout {
194
- position: static !important;
195
- height: initial !important;
196
- .react-grid-item {
197
- display: block !important; /*avoid widgets breaking on transition between pages*/
198
- margin: 0 auto 20px;
199
- position: static !important;
200
- width: initial !important; /* Alternatively, set "width: initial !important;" */
201
- break-inside: avoid;
202
- page-break-inside: avoid; /*avoid widgets breaking on transition between pages*/
203
- }
204
- .react-grid-item:not(:has(.recharts-responsive-container)) {
205
- height: initial !important;
206
- }
207
- }
208
- }
164
+
165
+ .react-grid-layout {
166
+ height: unset !important;
167
+ display: table;
209
168
  }
169
+
210
170
  }
211
171
 
212
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asab_webui_shell",
3
- "version": "27.5.1",
3
+ "version": "27.5.2",
4
4
  "license": "BSD-3-Clause",
5
5
  "description": "TeskaLabs ASAB WebUI Shell Application",
6
6
  "contributors": [