asab_webui_shell 25.2.1 → 25.2.3
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.
|
@@ -8,6 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactI18next = require("react-i18next");
|
|
9
9
|
var _reactRedux = require("react-redux");
|
|
10
10
|
var _reactstrap = require("reactstrap");
|
|
11
|
+
var _asab_webui_components = require("asab_webui_components");
|
|
11
12
|
require("./HelpButton.scss");
|
|
12
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
14
|
function HelpButton() {
|
|
@@ -15,9 +16,21 @@ function HelpButton() {
|
|
|
15
16
|
t
|
|
16
17
|
} = (0, _reactI18next.useTranslation)();
|
|
17
18
|
var [modal, setModal] = (0, _react.useState)(false);
|
|
19
|
+
var [isIframeLoading, setIsIframeLoading] = (0, _react.useState)(true);
|
|
18
20
|
var path = (0, _reactRedux.useSelector)(state => state === null || state === void 0 ? void 0 : state.header.helpPath);
|
|
19
21
|
if (path == undefined) return null;
|
|
20
|
-
var toggle = () =>
|
|
22
|
+
var toggle = () => {
|
|
23
|
+
setModal(prev => {
|
|
24
|
+
var newModal = !prev;
|
|
25
|
+
if (newModal) {
|
|
26
|
+
setIsIframeLoading(true);
|
|
27
|
+
}
|
|
28
|
+
return newModal;
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
var handleIframeLoad = () => {
|
|
32
|
+
setIsIframeLoading(false);
|
|
33
|
+
};
|
|
21
34
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactstrap.NavLink, {
|
|
22
35
|
className: "help-nav-link",
|
|
23
36
|
onClick: toggle,
|
|
@@ -41,8 +54,15 @@ function HelpButton() {
|
|
|
41
54
|
color: "primary"
|
|
42
55
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
43
56
|
className: "bi bi-x-lg"
|
|
44
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactstrap.CardBody, null, /*#__PURE__*/_react.default.createElement("
|
|
57
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactstrap.CardBody, null, isIframeLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: "d-flex justify-content-center align-items-center help-iframe"
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_asab_webui_components.Spinner, null)), /*#__PURE__*/_react.default.createElement("iframe", {
|
|
45
60
|
className: "help-iframe",
|
|
46
|
-
src: path
|
|
61
|
+
src: path,
|
|
62
|
+
onLoad: handleIframeLoad,
|
|
63
|
+
onError: handleIframeLoad,
|
|
64
|
+
style: {
|
|
65
|
+
display: isIframeLoading ? 'none' : ''
|
|
66
|
+
}
|
|
47
67
|
})))));
|
|
48
68
|
}
|
package/dist/index.js
CHANGED
|
@@ -40,10 +40,10 @@ Object.defineProperty(exports, "getBrandImage", {
|
|
|
40
40
|
return _BrandImage.getBrandImage;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
+
require("./styles/index.scss");
|
|
43
44
|
var _Application = _interopRequireDefault(require("./containers/Application"));
|
|
44
45
|
var _BrandImage = require("./components/branding/BrandImage");
|
|
45
46
|
var _i18n = _interopRequireDefault(require("./modules/i18n"));
|
|
46
47
|
var _tenant = _interopRequireDefault(require("./modules/tenant"));
|
|
47
48
|
var _auth = _interopRequireDefault(require("./modules/auth"));
|
|
48
|
-
var _about = _interopRequireDefault(require("./modules/about"));
|
|
49
|
-
require("./styles/index.scss");
|
|
49
|
+
var _about = _interopRequireDefault(require("./modules/about"));
|
|
@@ -75,132 +75,133 @@
|
|
|
75
75
|
&.print-portrait {
|
|
76
76
|
width: 900px;
|
|
77
77
|
}
|
|
78
|
-
}
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
#app {
|
|
80
|
+
height: 100%;
|
|
81
|
+
overflow: visible;
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
button, .btn-sm, .btn .btn-primary, .btn-primary {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
.card {
|
|
90
|
+
box-shadow: none !important;
|
|
91
|
+
border: 0 !important;
|
|
92
|
+
.card-header {
|
|
93
|
+
background-color: var(--white);
|
|
94
|
+
&.print-card-header {
|
|
95
|
+
min-height: auto;
|
|
96
|
+
.flex-fill {
|
|
97
|
+
height: auto;
|
|
98
|
+
}
|
|
99
99
|
}
|
|
100
|
-
}
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
i:not(.text-warning) {
|
|
102
|
+
display: none !important;
|
|
103
|
+
}
|
|
104
|
+
h3 {
|
|
105
|
+
font-size: 32px !important;
|
|
106
|
+
}
|
|
104
107
|
}
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
.card-body {
|
|
109
|
+
color: inherit !important;
|
|
110
|
+
}
|
|
111
|
+
.card-footer, .card-footer-flex, .input-group {
|
|
112
|
+
display: none !important;
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
|
-
.card-body {
|
|
110
|
-
color: inherit !important;
|
|
111
|
-
}
|
|
112
|
-
.card-footer, .card-footer-flex, .input-group {
|
|
113
|
-
display: none !important;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
white-space: normal;
|
|
126
|
-
& > * {
|
|
116
|
+
.datatable2 {
|
|
117
|
+
margin-bottom: 0;
|
|
118
|
+
table-layout: auto;
|
|
119
|
+
td, th {
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
padding: .25rem;
|
|
122
|
+
}
|
|
123
|
+
td {
|
|
127
124
|
white-space: normal;
|
|
125
|
+
& > * {
|
|
126
|
+
white-space: normal;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
tr {
|
|
130
|
+
page-break-inside: avoid;
|
|
131
|
+
}
|
|
132
|
+
tfoot {
|
|
133
|
+
display: none;
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
|
-
tr {
|
|
131
|
-
page-break-inside: avoid;
|
|
132
|
-
}
|
|
133
|
-
tfoot {
|
|
134
|
-
display: none;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.text-muted {
|
|
139
|
-
color: var(--bs-gray-700) !important;
|
|
140
|
-
}
|
|
141
136
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
.progress-bar {
|
|
147
|
-
display: none !important;
|
|
148
|
-
}
|
|
137
|
+
.text-muted {
|
|
138
|
+
color: var(--bs-gray-700) !important;
|
|
139
|
+
}
|
|
149
140
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
141
|
+
.container {
|
|
142
|
+
max-width: 100% !important;
|
|
143
|
+
}
|
|
153
144
|
|
|
154
|
-
|
|
155
|
-
.recharts-tooltip-wrapper {
|
|
145
|
+
.progress-bar {
|
|
156
146
|
display: none !important;
|
|
157
147
|
}
|
|
158
|
-
.table-widget, .value-widget {
|
|
159
|
-
display: contents !important;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
148
|
|
|
149
|
+
table, .table {
|
|
150
|
+
--bs-table-color: var(--bs-dark);
|
|
151
|
+
}
|
|
163
152
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
.react-grid-item {
|
|
171
|
-
display: inline-block;
|
|
172
|
-
position: unset !important;
|
|
173
|
-
transform: unset !important;
|
|
174
|
-
text-align: initial;
|
|
153
|
+
.react-grid-item {
|
|
154
|
+
.recharts-tooltip-wrapper {
|
|
155
|
+
display: none !important;
|
|
156
|
+
}
|
|
157
|
+
.table-widget, .value-widget {
|
|
158
|
+
display: contents !important;
|
|
175
159
|
}
|
|
176
160
|
}
|
|
177
|
-
}
|
|
178
161
|
|
|
179
|
-
|
|
180
|
-
|
|
162
|
+
|
|
163
|
+
.reports-container {
|
|
164
|
+
padding-top: 0 !important;
|
|
181
165
|
.react-grid-layout {
|
|
182
|
-
|
|
183
|
-
|
|
166
|
+
height: unset !important;
|
|
167
|
+
display: table;
|
|
168
|
+
text-align: center;
|
|
184
169
|
.react-grid-item {
|
|
185
|
-
display: block
|
|
186
|
-
|
|
170
|
+
display: inline-block;
|
|
171
|
+
position: unset !important;
|
|
172
|
+
transform: unset !important;
|
|
173
|
+
text-align: initial;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.dashboard-container {
|
|
179
|
+
&.display-print {
|
|
180
|
+
.react-grid-layout {
|
|
187
181
|
position: static !important;
|
|
182
|
+
height: initial !important;
|
|
183
|
+
.react-grid-item {
|
|
184
|
+
display: block !important; /*avoid widgets breaking on transition between pages*/
|
|
185
|
+
margin: 0 auto 20px;
|
|
186
|
+
position: static !important;
|
|
188
187
|
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
height: initial !important; /* Alternatively, set "height: initial !important;" */
|
|
189
|
+
width: initial !important; /* Alternatively, set "width: initial !important;" */
|
|
191
190
|
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
break-inside: avoid;
|
|
192
|
+
page-break-inside: avoid; /*avoid widgets breaking on transition between pages*/
|
|
193
|
+
}
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
.recharts-wrapper {
|
|
198
|
-
width: 100% !important;
|
|
199
|
-
.recharts-surface, .recharts-legend-wrapper {
|
|
195
|
+
.recharts-responsive-container {
|
|
196
|
+
.recharts-wrapper {
|
|
200
197
|
width: 100% !important;
|
|
198
|
+
.recharts-surface, .recharts-legend-wrapper {
|
|
199
|
+
width: 100% !important;
|
|
200
|
+
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
+
|
|
206
207
|
}
|