@agilemotion/oui-react-js 1.8.42 → 1.8.44
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/dist/ApplicationManager.js +10 -8
- package/dist/InteractionPortalApp.js +0 -1
- package/dist/InteractionPortalAppHome.js +69 -3
- package/dist/RestService.js +3 -3
- package/dist/Utils.js +7 -0
- package/dist/assets/jss/components/customInputStyle.js +0 -1
- package/dist/assets/jss/components/customInputStyle.jsx +0 -1
- package/dist/components/DataGrid.js +6 -2
- package/dist/components/DocumentTemplateDesignerComponent.css +2 -0
- package/dist/components/DocumentViewer.js +2 -2
- package/dist/components/SocketManager.js +4 -2
- package/dist/components/TitleBar.js +1 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/WordDocumentViewer.js +208 -16
- package/dist/components/customInput/CustomInput.js +4 -1
- package/dist/components/dashboard/FoldingSideTabDashboard.css +3 -0
- package/dist/components/dashboard/FoldingSideTabDashboard.js +24 -12
- package/dist/components/dashboard/SideMenuModuleDashboard.css +6 -5
- package/dist/components/dashboard/SideMenuModuleDashboard.js +5 -2
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.css +94 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +111 -203
- package/dist/components/form/BaseField.js +1 -1
- package/dist/components/form/Form.css +2 -3
- package/dist/components/form/Form.js +5 -1
- package/dist/components/form/GridField.js +3 -1
- package/dist/components/form/RadioGroup.js +4 -1
- package/dist/components/layout/Layout.css +8 -0
- package/dist/components/layout/Layout.js +10 -1
- package/dist/components/layout/View.css +20 -6
- package/dist/components/layout/View.js +32 -1
- package/dist/components/layout/Window.js +1 -0
- package/dist/components/media/Chat.css +0 -0
- package/dist/components/media/Chat.js +86 -0
- package/dist/components/media/chat/ChatRoom.js +19 -12
- package/dist/components/signatures/AgilitySignaturePanel.js +2 -1
- package/package.json +3 -2
|
@@ -18,11 +18,20 @@ var _DashboardStore = require("../../redux/store/DashboardStore");
|
|
|
18
18
|
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
19
19
|
var _SocketManager = _interopRequireDefault(require("../SocketManager"));
|
|
20
20
|
var _WindowViewPort = _interopRequireDefault(require("../layout/WindowViewPort"));
|
|
21
|
-
|
|
22
|
-
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
21
|
+
require("./FoldingSideTabDashboard.css");
|
|
23
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
23
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
25
24
|
let ps;
|
|
25
|
+
const DATA_URL_PREFIX = 'data:image/png;base64,';
|
|
26
|
+
function normalizeLogo(src) {
|
|
27
|
+
if (!src) return undefined;
|
|
28
|
+
const s = src.trim();
|
|
29
|
+
if (/^data:/i.test(s)) {
|
|
30
|
+
const dup = new RegExp(`^(${DATA_URL_PREFIX})+`, 'i');
|
|
31
|
+
return s.replace(dup, DATA_URL_PREFIX);
|
|
32
|
+
}
|
|
33
|
+
return DATA_URL_PREFIX + s;
|
|
34
|
+
}
|
|
26
35
|
const FoldingSideTabDashboard = props => {
|
|
27
36
|
const [navDrawerOpen, setNavDrawerOpen] = _react.default.useState(true);
|
|
28
37
|
const [loading, setLoading] = _react.default.useState(true);
|
|
@@ -31,7 +40,7 @@ const FoldingSideTabDashboard = props => {
|
|
|
31
40
|
const [primaryThemeColor, setPrimaryThemeColor] = _react.default.useState('');
|
|
32
41
|
const [themeTextColor, setThemeTextColor] = _react.default.useState('');
|
|
33
42
|
const [routes, setRoutes] = _react.default.useState([]);
|
|
34
|
-
const [logo, setLogo] = _react.default.useState(
|
|
43
|
+
const [logo, setLogo] = _react.default.useState(normalizeLogo(props.logo));
|
|
35
44
|
const [sidebarOpened, setSidebarOpened] = _react.default.useState(document.documentElement.className.indexOf('nav-open') !== -1);
|
|
36
45
|
const [sidebarMini, setSidebarMini] = _react.default.useState(true);
|
|
37
46
|
const [opacity, setOpacity] = _react.default.useState(0);
|
|
@@ -119,13 +128,15 @@ const FoldingSideTabDashboard = props => {
|
|
|
119
128
|
}
|
|
120
129
|
let newRoutes = [];
|
|
121
130
|
let newRoute = {};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
if (_Utils.default.isNull(props.showDashboardMenu) || props.showDashboardMenu) {
|
|
132
|
+
newRoute.name = 'Dashboard';
|
|
133
|
+
newRoute.id = 'dashboard';
|
|
134
|
+
newRoute.icon = 'fa fa-pie-chart';
|
|
135
|
+
newRoute.layout = '/admin';
|
|
136
|
+
newRoute.level = 0;
|
|
137
|
+
newRoute.isParent = true;
|
|
138
|
+
newRoutes.push(newRoute);
|
|
139
|
+
}
|
|
129
140
|
if (!_Utils.default.isNull(props.settings.systemProfileDto.modules)) {
|
|
130
141
|
for (let i = 0; i < props.settings.systemProfileDto.modules.length; i++) {
|
|
131
142
|
let module = props.settings.systemProfileDto.modules[i];
|
|
@@ -255,10 +266,10 @@ const FoldingSideTabDashboard = props => {
|
|
|
255
266
|
routes: routes,
|
|
256
267
|
activeColor: 'agility',
|
|
257
268
|
secondaryThemeColor: secondaryThemeColor,
|
|
258
|
-
activeRouteMenu: {
|
|
269
|
+
activeRouteMenu: props.showDashboardMenu ? {
|
|
259
270
|
id: 'dashboard',
|
|
260
271
|
name: 'Dashboard'
|
|
261
|
-
},
|
|
272
|
+
} : null,
|
|
262
273
|
className: 'sidebar',
|
|
263
274
|
dashboardLauncher: () => {
|
|
264
275
|
launchDashboard();
|
|
@@ -269,6 +280,7 @@ const FoldingSideTabDashboard = props => {
|
|
|
269
280
|
text: '',
|
|
270
281
|
imgSrc: logo
|
|
271
282
|
},
|
|
283
|
+
logoStyle: props.logoStyle,
|
|
272
284
|
closeSidebar: closeSidebar
|
|
273
285
|
})), ' ', /*#__PURE__*/_react.default.createElement("div", {
|
|
274
286
|
className: "main-panel",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.side-menu-module-dashboard .viewport {
|
|
12
|
-
width: calc(100% -
|
|
12
|
+
width: calc(100% - 348px) !important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.side-menu-module-dashboard .sidebar {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
margin-left: 0 !important;
|
|
20
20
|
margin-top: 0 !important;
|
|
21
21
|
border-radius: 0 !important;
|
|
22
|
-
width:
|
|
22
|
+
width: 340px !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.side-menu-module-dashboard .main-panel {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.side-menu-module-dashboard .navbar.navbar-absolute {
|
|
35
|
-
left:
|
|
36
|
-
width: calc(100% -
|
|
35
|
+
left: 340px !important;
|
|
36
|
+
width: calc(100% - 340px) !important;
|
|
37
37
|
background-color: transparent !important;
|
|
38
38
|
color: #1d253b !important;
|
|
39
39
|
padding: 10px 12px 10px 0 !important;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.side-menu-module-dashboard .main-panel > .content {
|
|
52
|
-
padding: 78px 12px 30px
|
|
52
|
+
padding: 78px 12px 30px 348px !important;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@media screen and (max-width: 991px){
|
|
@@ -60,5 +60,6 @@
|
|
|
60
60
|
|
|
61
61
|
.side-menu-module-dashboard .sidebar {
|
|
62
62
|
width: 260px !important;
|
|
63
|
+
border: 20px solid red;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
@@ -18,6 +18,7 @@ var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManag
|
|
|
18
18
|
var _WindowViewPort = _interopRequireDefault(require("../layout/WindowViewPort"));
|
|
19
19
|
require("./SideMenuModuleDashboard.css");
|
|
20
20
|
var _ModuleMenuSidebar = _interopRequireDefault(require("./components/blackDashboard/sidebar/ModuleMenuSidebar"));
|
|
21
|
+
var _SocketManager = _interopRequireDefault(require("../SocketManager"));
|
|
21
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
23
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
24
|
let ps;
|
|
@@ -60,7 +61,7 @@ const SideMenuModuleDashboard = props => {
|
|
|
60
61
|
_react.default.useEffect(() => {
|
|
61
62
|
//Sockets.init();
|
|
62
63
|
return () => {
|
|
63
|
-
|
|
64
|
+
_SocketManager.default.disconnect();
|
|
64
65
|
};
|
|
65
66
|
}, []);
|
|
66
67
|
_react.default.useEffect(() => {
|
|
@@ -284,7 +285,9 @@ const SideMenuModuleDashboard = props => {
|
|
|
284
285
|
style: {
|
|
285
286
|
width: windowPinned ? 'calc(100% - 320px)' : '100%'
|
|
286
287
|
}
|
|
287
|
-
}, /*#__PURE__*/_react.default.createElement(_ViewPort.default,
|
|
288
|
+
}, /*#__PURE__*/_react.default.createElement(_ViewPort.default, {
|
|
289
|
+
windowPinned: windowPinned
|
|
290
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
288
291
|
className: 'col no-margin no-padding',
|
|
289
292
|
style: {
|
|
290
293
|
width: windowPinned ? '320px' : '0'
|
|
@@ -5,3 +5,97 @@
|
|
|
5
5
|
.sidebar .nav a:before {
|
|
6
6
|
content: none !important;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
/* Root sidebar container (lives under a global header using --header-h) */
|
|
10
|
+
.sidebar {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
inline-size: 100%;
|
|
14
|
+
block-size: calc(100dvh - var(--header-h, 0px));
|
|
15
|
+
overflow: hidden; /* only the middle section scrolls */
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* If you don't have a global header for some screens, you can toggle this class instead */
|
|
19
|
+
/* .sidebar--no-header { block-size: 100dvh; } */
|
|
20
|
+
|
|
21
|
+
/* ---------- TOP: brand + heading ---------- */
|
|
22
|
+
.sidebar__top {
|
|
23
|
+
padding: 32px 0 12px 0;
|
|
24
|
+
margin-left: 8px;
|
|
25
|
+
margin-right: 8px;
|
|
26
|
+
display: grid;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
justify-items: center;
|
|
29
|
+
align-content: center;
|
|
30
|
+
border-bottom: 1px solid #e1e1e1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Control the height of the logo area via CSS var */
|
|
34
|
+
:root { --sidebar-logo-h: 96px; }
|
|
35
|
+
|
|
36
|
+
.sidebar__logo {
|
|
37
|
+
inline-size: 100%;
|
|
38
|
+
block-size: var(--sidebar-logo-h);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sidebar__brand {
|
|
42
|
+
display: block;
|
|
43
|
+
inline-size: 100%;
|
|
44
|
+
block-size: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sidebar__brand-img {
|
|
48
|
+
display: block;
|
|
49
|
+
inline-size: 100%;
|
|
50
|
+
block-size: 100%;
|
|
51
|
+
object-fit: contain; /* switch to 'cover' if you want edge-to-edge crop */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Heading text under the brand (optional) */
|
|
55
|
+
.sidebar__heading {
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
text-align: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ---------- MIDDLE: menu (the ONLY scroller) ---------- */
|
|
62
|
+
.sidebar__scroll {
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
min-block-size: 0; /* crucial for flex scrolling */
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
overflow-x: hidden;
|
|
67
|
+
padding: 8px 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ---------- BOTTOM: app logo + copyright ---------- */
|
|
71
|
+
.sidebar__bottom {
|
|
72
|
+
margin-top: auto; /* pins to bottom */
|
|
73
|
+
flex: 0 0 auto; /* never shrink off-screen */
|
|
74
|
+
padding: 12px 10px;
|
|
75
|
+
display: grid;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
justify-items: center;
|
|
78
|
+
border-top: 1px solid #e1e1e1;
|
|
79
|
+
margin-left: 4px;
|
|
80
|
+
margin-right: 4px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.sidebar__app-logo img {
|
|
84
|
+
display: block;
|
|
85
|
+
max-block-size: 72px;
|
|
86
|
+
inline-size: auto;
|
|
87
|
+
object-fit: contain;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sidebar__copyright {
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
opacity: 0.8;
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Optional: basic nav spacing (keep your existing nav/link styles as needed) */
|
|
97
|
+
.nav-wrapper {
|
|
98
|
+
padding: 16px;
|
|
99
|
+
margin: 8px;
|
|
100
|
+
}
|
|
101
|
+
|