@dexteel/mesf-core 4.13.5 → 4.15.0
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/CHANGELOG.md +23 -0
- package/dist/MESFMain.d.ts +5 -4
- package/dist/controls/filters/dialogFilter.d.ts +27 -10
- package/dist/controls/filters/filters.d.ts +4 -1
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +6 -0
- package/dist/controls/shift-navigator/context/ShiftNavigatorProvider.d.ts +4 -0
- package/dist/controls/shift-navigator/hook/useShiftNavigator.d.ts +14 -0
- package/dist/controls/shift-navigator/index.d.ts +5 -0
- package/dist/controls/shift-navigator/models/shift-navigator.model.d.ts +30 -0
- package/dist/controls/shift-navigator/repositories/ShiftsRepository.d.ts +13 -0
- package/dist/globalContext.d.ts +2 -2
- package/dist/index.esm.js +648 -246
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +7 -7
- package/package.json +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
export { LicenseManager } from 'ag-grid-enterprise';
|
|
2
|
-
import { Typography, TextField, makeStyles as makeStyles$1, Button as Button$1, Grid as Grid$1, Dialog as Dialog$1, DialogTitle as DialogTitle$2, DialogContent as DialogContent$2, DialogContentText, DialogActions as DialogActions$2, FormHelperText, CircularProgress as CircularProgress$1, Badge, FormControlLabel,
|
|
2
|
+
import { Typography, Checkbox, TextField, makeStyles as makeStyles$1, Button as Button$1, Grid as Grid$1, Dialog as Dialog$1, DialogTitle as DialogTitle$2, DialogContent as DialogContent$2, DialogContentText, DialogActions as DialogActions$2, FormHelperText, CircularProgress as CircularProgress$1, Badge, FormControlLabel, Snackbar as Snackbar$1, Paper as Paper$1, MenuItem as MenuItem$1, useTheme as useTheme$1, IconButton as IconButton$1, Tooltip as Tooltip$1, Divider, Box, FormControl as FormControl$1, Select as Select$1, debounce, createStyles as createStyles$1, List, ListItem, ListItemText } from '@material-ui/core';
|
|
3
3
|
import { values, get, isNil as isNil$1, isEmpty, round, isNaN, isNumber } from 'lodash-es';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useRef, useEffect, useMemo, Component, createContext, useContext, useCallback, lazy, Suspense } from 'react';
|
|
6
|
+
import Paper from '@material-ui/core/Paper';
|
|
7
|
+
import Grid from '@material-ui/core/Grid';
|
|
8
|
+
import { ArrowRight, ArrowBackRounded, ArrowForwardRounded, SkipNext, ChevronLeft, ChevronRight } from '@material-ui/icons';
|
|
9
|
+
import { DatePicker } from '@mui/x-date-pickers/DatePicker/DatePicker';
|
|
10
|
+
import Tooltip from '@material-ui/core/Tooltip';
|
|
11
|
+
import { Outlet, useParams, useNavigate, useSearchParams, Link, Navigate, Routes, Route, BrowserRouter } from 'react-router-dom';
|
|
6
12
|
import { Alert as Alert$1, Modal as Modal$1, Navbar, Container, Nav, NavDropdown } from 'react-bootstrap';
|
|
7
13
|
import DialogTitle$1 from '@material-ui/core/DialogTitle';
|
|
8
14
|
import DialogContent$1 from '@material-ui/core/DialogContent';
|
|
9
15
|
import DialogActions$1 from '@material-ui/core/DialogActions';
|
|
10
16
|
import Dialog from '@material-ui/core/Dialog';
|
|
11
17
|
import Button from '@material-ui/core/Button';
|
|
12
|
-
import { Outlet, useNavigate, useSearchParams, Link, useParams, Navigate, Routes, Route, BrowserRouter } from 'react-router-dom';
|
|
13
18
|
import { useMsal, MsalProvider } from '@azure/msal-react';
|
|
14
19
|
import { LogLevel, PublicClientApplication } from '@azure/msal-browser';
|
|
15
20
|
import { useComplexState } from 'use-complex-state';
|
|
@@ -17,14 +22,12 @@ import { createSlice } from '@reduxjs/toolkit';
|
|
|
17
22
|
import ShowChartIcon from '@material-ui/icons/ShowChart';
|
|
18
23
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
19
24
|
import MenuList from '@material-ui/core/MenuList';
|
|
20
|
-
import Paper from '@material-ui/core/Paper';
|
|
21
|
-
import Grid from '@material-ui/core/Grid';
|
|
22
25
|
import { isNil, get as get$1 } from 'lodash';
|
|
23
26
|
import { DndProvider } from 'react-dnd';
|
|
24
27
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
25
|
-
import moment from 'moment';
|
|
28
|
+
import moment$2 from 'moment';
|
|
26
29
|
import axios from 'axios';
|
|
27
|
-
import { _adapters, Chart, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip as Tooltip$
|
|
30
|
+
import { _adapters, Chart, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip as Tooltip$2, Legend, TimeScale } from 'chart.js';
|
|
28
31
|
import zoomPlugin from 'chartjs-plugin-zoom';
|
|
29
32
|
import SaveIcon from '@material-ui/icons/Save';
|
|
30
33
|
import LockIcon from '@material-ui/icons/Lock';
|
|
@@ -35,10 +38,12 @@ import DeleteIcon from '@material-ui/icons/Delete';
|
|
|
35
38
|
import { isAncestor, Tree, DndProvider as DndProvider$1 } from '@minoru/react-dnd-treeview';
|
|
36
39
|
import FolderIcon from '@material-ui/icons/Folder';
|
|
37
40
|
import InsertChartIcon from '@material-ui/icons/InsertChart';
|
|
38
|
-
import { ArrowRight, ChevronLeft, ChevronRight } from '@material-ui/icons';
|
|
39
41
|
import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
|
|
40
42
|
import SkipNextIcon from '@material-ui/icons/SkipNext';
|
|
41
43
|
import { Line } from 'react-chartjs-2';
|
|
44
|
+
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
45
|
+
import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment';
|
|
46
|
+
import moment$3 from 'moment-timezone';
|
|
42
47
|
import PersonPinCircleIcon from '@material-ui/icons/PersonPinCircle';
|
|
43
48
|
import PropTypes from 'prop-types';
|
|
44
49
|
import { ResponsiveBar } from '@nivo/bar';
|
|
@@ -79,7 +84,8 @@ import ListAltIcon from '@material-ui/icons/ListAlt';
|
|
|
79
84
|
import DescriptionIcon from '@material-ui/icons/Description';
|
|
80
85
|
import { format, fromZonedTime, formatInTimeZone } from 'date-fns-tz';
|
|
81
86
|
import { findIana } from 'windows-iana';
|
|
82
|
-
import
|
|
87
|
+
import FindInPageIcon from '@material-ui/icons/FindInPage';
|
|
88
|
+
import AddBoxIcon from '@material-ui/icons/AddBox';
|
|
83
89
|
import FormControlLabel$1 from '@material-ui/core/FormControlLabel';
|
|
84
90
|
import Checkbox$1 from '@material-ui/core/Checkbox';
|
|
85
91
|
import Input from '@material-ui/core/Input';
|
|
@@ -276,8 +282,20 @@ BarChartControl.propTypes = {
|
|
|
276
282
|
keys: PropTypes.array
|
|
277
283
|
};
|
|
278
284
|
|
|
279
|
-
|
|
280
|
-
|
|
285
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
286
|
+
|
|
287
|
+
var css$2 = ".lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 5px solid rgb(63,81,181);\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: rgb(63,81,181) transparent transparent transparent;\n}\n.lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n}\n.lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n}\n.lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n}\n@keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n";
|
|
288
|
+
n(css$2,{});
|
|
289
|
+
|
|
290
|
+
var LazyLoading = function () {
|
|
291
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
292
|
+
React__default.createElement("div", { className: "lds-ring" },
|
|
293
|
+
React__default.createElement("div", null),
|
|
294
|
+
React__default.createElement("div", null),
|
|
295
|
+
React__default.createElement("div", null),
|
|
296
|
+
React__default.createElement("div", null))));
|
|
297
|
+
};
|
|
298
|
+
|
|
281
299
|
function MinusSquare(props) {
|
|
282
300
|
return (React__default.createElement(SvgIcon, __assign({ fontSize: "inherit", style: { width: 14, height: 14 } }, props),
|
|
283
301
|
React__default.createElement("path", { d: "M22.047 22.074v0 0-20.147 0h-20.12v0 20.147 0h20.12zM22.047 24h-20.12q-.803 0-1.365-.562t-.562-1.365v-20.147q0-.776.562-1.351t1.365-.575h20.147q.776 0 1.351.575t.575 1.351v20.147q0 .803-.575 1.365t-1.378.562v0zM17.873 11.023h-11.826q-.375 0-.669.281t-.294.682v0q0 .401.294 .682t.669.281h11.826q.375 0 .669-.281t.294-.682v0q0-.401-.294-.682t-.669-.281z" })));
|
|
@@ -298,9 +316,6 @@ function TransitionComponent(props) {
|
|
|
298
316
|
React__default.createElement(Collapse, __assign({}, props))));
|
|
299
317
|
}
|
|
300
318
|
TransitionComponent.propTypes = {
|
|
301
|
-
/**
|
|
302
|
-
* Show the component; triggers the enter or exit states
|
|
303
|
-
*/
|
|
304
319
|
"in": PropTypes.bool
|
|
305
320
|
};
|
|
306
321
|
var StyledTreeItem = withStyles(function (theme) { return ({
|
|
@@ -313,13 +328,17 @@ var StyledTreeItem = withStyles(function (theme) { return ({
|
|
|
313
328
|
marginLeft: 7,
|
|
314
329
|
paddingLeft: 18,
|
|
315
330
|
borderLeft: "1px dashed ".concat(alpha(theme.palette.text.primary, 0.4))
|
|
331
|
+
},
|
|
332
|
+
label: {
|
|
333
|
+
backgroundColor: function (props) {
|
|
334
|
+
return props.isChecked ? "lightblue !important" : "inherit";
|
|
335
|
+
}
|
|
316
336
|
}
|
|
317
337
|
}); })(function (props) { return (React__default.createElement(TreeItem, __assign({}, props, { TransitionComponent: TransitionComponent }))); });
|
|
318
338
|
var useTreviewStyle = makeStyles(function (theme) { return ({
|
|
319
339
|
root: {
|
|
320
|
-
|
|
321
|
-
flexGrow: 1
|
|
322
|
-
maxWidth: 400
|
|
340
|
+
minHeight: 264,
|
|
341
|
+
flexGrow: 1
|
|
323
342
|
},
|
|
324
343
|
treLabelIcon: {
|
|
325
344
|
marginRight: theme.spacing(1)
|
|
@@ -336,13 +355,18 @@ var useTreviewStyle = makeStyles(function (theme) { return ({
|
|
|
336
355
|
treeLabelInactive: {
|
|
337
356
|
textDecoration: "line-through",
|
|
338
357
|
textDecorationColor: "red"
|
|
358
|
+
},
|
|
359
|
+
smallCheckbox: {
|
|
360
|
+
transform: 'scale(0.8)'
|
|
339
361
|
}
|
|
340
362
|
}); });
|
|
341
363
|
var ModalTreeFilterControl = function (props) {
|
|
342
|
-
var onClose = props.onClose, valueProp = props.value, open = props.open, title = props.title, data = props.data, selectBranch = props.selectBranch, selectActive = props.selectActive, selectInternal = props.selectInternal, other = __rest(props, ["onClose", "value", "open", "title", "data", "selectBranch", "selectActive", "selectInternal"]);
|
|
364
|
+
var onClose = props.onClose, valueProp = props.value, open = props.open, title = props.title, data = props.data, selectBranch = props.selectBranch, selectActive = props.selectActive, selectInternal = props.selectInternal, multipleSelectNodes = props.multipleSelectNodes, onHide = props.onHide, listAssetDrawings = props.listAssetDrawings, setListAssetDrawings = props.setListAssetDrawings, onSuccess = props.onSuccess, isLoading = props.isLoading, other = __rest(props, ["onClose", "value", "open", "title", "data", "selectBranch", "selectActive", "selectInternal", "multipleSelectNodes", "onHide", "listAssetDrawings", "setListAssetDrawings", "onSuccess", "isLoading"]);
|
|
343
365
|
var _a = useState(valueProp), value = _a[0], setValue = _a[1];
|
|
344
366
|
var _b = useState([]), expanded = _b[0], setExpanded = _b[1];
|
|
345
367
|
var treeRef = useRef(null);
|
|
368
|
+
var _c = useState([]), selectedNodes = _c[0], setSelectedNodes = _c[1];
|
|
369
|
+
var classes = useTreviewStyle();
|
|
346
370
|
useEffect(function () {
|
|
347
371
|
if (!open) {
|
|
348
372
|
setValue(valueProp);
|
|
@@ -352,6 +376,34 @@ var ModalTreeFilterControl = function (props) {
|
|
|
352
376
|
expandNode(valueProp);
|
|
353
377
|
}
|
|
354
378
|
}, [valueProp, open]);
|
|
379
|
+
useEffect(function () {
|
|
380
|
+
if (Array.isArray(listAssetDrawings) && listAssetDrawings.length >= 1) {
|
|
381
|
+
setSelectedNodes(listAssetDrawings);
|
|
382
|
+
var expandedBranches = findBranchesWithSelectedNodes(data, listAssetDrawings);
|
|
383
|
+
setExpanded(expandedBranches);
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
setSelectedNodes([]);
|
|
387
|
+
setExpanded([]);
|
|
388
|
+
}
|
|
389
|
+
}, [listAssetDrawings, data]);
|
|
390
|
+
var findBranchesWithSelectedNodes = function (node, selectedNodes) {
|
|
391
|
+
var branches = [];
|
|
392
|
+
if (selectedNodes.includes(node.id)) {
|
|
393
|
+
branches.push(node.id.toString());
|
|
394
|
+
}
|
|
395
|
+
if (Array.isArray(node.children)) {
|
|
396
|
+
for (var _i = 0, _a = node.children; _i < _a.length; _i++) {
|
|
397
|
+
var child = _a[_i];
|
|
398
|
+
var childBranches = findBranchesWithSelectedNodes(child, selectedNodes);
|
|
399
|
+
if (childBranches.length > 0) {
|
|
400
|
+
branches.push(node.id.toString());
|
|
401
|
+
branches = branches.concat(childBranches);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return branches;
|
|
406
|
+
};
|
|
355
407
|
var handleEntering = function () {
|
|
356
408
|
if (treeRef.current != null) {
|
|
357
409
|
treeRef.current.focus();
|
|
@@ -359,21 +411,29 @@ var ModalTreeFilterControl = function (props) {
|
|
|
359
411
|
};
|
|
360
412
|
var handleCancel = function () {
|
|
361
413
|
onClose();
|
|
414
|
+
if (onHide)
|
|
415
|
+
onHide(false);
|
|
362
416
|
};
|
|
363
417
|
var handleOk = function () {
|
|
364
|
-
var findNode = getNodeData(data,
|
|
418
|
+
var findNode = getNodeData(data, value !== undefined ? value : -1);
|
|
365
419
|
if (findNode === null)
|
|
366
420
|
findNode = {};
|
|
367
421
|
var activeFilter = (selectActive && findNode.isActive) || selectActive !== true;
|
|
368
422
|
var internalFilter = (selectInternal && findNode.isInternal) || selectInternal !== true;
|
|
369
423
|
var branchFilter = selectBranch && !findNode.isLeaf;
|
|
370
424
|
if (findNode.isLeaf) {
|
|
371
|
-
if (activeFilter && internalFilter)
|
|
425
|
+
if (activeFilter && internalFilter) {
|
|
372
426
|
onClose(value, findNode.name, findNode);
|
|
427
|
+
if (onSuccess)
|
|
428
|
+
onSuccess(true);
|
|
429
|
+
}
|
|
373
430
|
}
|
|
374
431
|
else {
|
|
375
|
-
if (branchFilter)
|
|
432
|
+
if (branchFilter) {
|
|
376
433
|
onClose(value, findNode.name, findNode);
|
|
434
|
+
if (onSuccess)
|
|
435
|
+
onSuccess(true);
|
|
436
|
+
}
|
|
377
437
|
}
|
|
378
438
|
};
|
|
379
439
|
var handleKeyDown = function (event) {
|
|
@@ -381,6 +441,9 @@ var ModalTreeFilterControl = function (props) {
|
|
|
381
441
|
onClose();
|
|
382
442
|
}
|
|
383
443
|
};
|
|
444
|
+
var handleCheckboxClick = function (event) {
|
|
445
|
+
event.stopPropagation();
|
|
446
|
+
};
|
|
384
447
|
var getNodeParent = function (node, id, chain) {
|
|
385
448
|
if (chain === void 0) { chain = []; }
|
|
386
449
|
if (!node || node.id === undefined) {
|
|
@@ -401,13 +464,13 @@ var ModalTreeFilterControl = function (props) {
|
|
|
401
464
|
}
|
|
402
465
|
return [];
|
|
403
466
|
};
|
|
404
|
-
var expandNode = function (
|
|
405
|
-
var expandedNode = getNodeParent(data,
|
|
406
|
-
expandedNode.push(
|
|
467
|
+
var expandNode = function (nodeId) {
|
|
468
|
+
var expandedNode = getNodeParent(data, nodeId, []);
|
|
469
|
+
expandedNode.push(nodeId.toString());
|
|
407
470
|
setExpanded(expandedNode);
|
|
408
471
|
};
|
|
409
472
|
var handleChange = function (event, nodeIds) {
|
|
410
|
-
setValue(nodeIds);
|
|
473
|
+
setValue(parseInt(nodeIds));
|
|
411
474
|
};
|
|
412
475
|
var handleToogle = function (event, nodeIds) {
|
|
413
476
|
setExpanded(nodeIds);
|
|
@@ -427,34 +490,48 @@ var ModalTreeFilterControl = function (props) {
|
|
|
427
490
|
}
|
|
428
491
|
return null;
|
|
429
492
|
};
|
|
430
|
-
var
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
493
|
+
var handleCheckboxChange = function (node) {
|
|
494
|
+
if (node) {
|
|
495
|
+
var isSelected = selectedNodes.includes(node.id);
|
|
496
|
+
var updatedSelectedNodes = void 0;
|
|
497
|
+
if (isSelected) {
|
|
498
|
+
updatedSelectedNodes = selectedNodes.filter(function (id) { return id !== node.id; });
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
updatedSelectedNodes = __spreadArray(__spreadArray([], selectedNodes, true), [node.id], false);
|
|
502
|
+
}
|
|
503
|
+
setSelectedNodes(updatedSelectedNodes);
|
|
504
|
+
if (setListAssetDrawings) {
|
|
505
|
+
setListAssetDrawings(updatedSelectedNodes);
|
|
506
|
+
}
|
|
507
|
+
var expandedBranches = findBranchesWithSelectedNodes(data, updatedSelectedNodes);
|
|
508
|
+
setExpanded(expandedBranches);
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
var renderTree = function (nodes) { return (React__default.createElement(StyledTreeItem, { isChecked: selectedNodes.includes(nodes.id), key: nodes.id, nodeId: nodes.id.toString(), label: React__default.createElement("div", { className: classes.treeLabelRoot },
|
|
512
|
+
nodes.isCode === true && (React__default.createElement(Code, { className: classes.treLabelIcon, htmlColor: "#1ABC9C" })),
|
|
513
|
+
nodes.isCode === false && (React__default.createElement(FolderIcon, { className: classes.treLabelIcon, htmlColor: "#F1C40F" })),
|
|
514
|
+
React__default.createElement(Typography, { variant: "body2", className: "".concat(classes.treeLabelText, " ").concat(!nodes.isActive ? classes.treeLabelInactive : '') },
|
|
440
515
|
React__default.createElement("span", null,
|
|
441
516
|
nodes.isCode && (React__default.createElement("i", { className: "fas fa-square mr-2", style: { color: nodes.delayCategoryColor || "#FFFFFF" } })),
|
|
442
|
-
nodes.name))
|
|
517
|
+
nodes.name)),
|
|
518
|
+
multipleSelectNodes &&
|
|
519
|
+
React__default.createElement(Checkbox, { className: classes.smallCheckbox, size: "small", color: "primary", checked: selectedNodes.includes(nodes.id), onChange: function () {
|
|
520
|
+
handleCheckboxChange(nodes);
|
|
521
|
+
}, onClick: handleCheckboxClick })), className: "delay-item-node", id: nodes.id.toString(), "data-isbranch": !nodes.isCode }, Array.isArray(nodes.children)
|
|
443
522
|
? nodes.children.map(function (node) { return renderTree(node); })
|
|
444
523
|
: null)); };
|
|
445
|
-
return (React__default.createElement(Dialog, __assign({ onClose: function (
|
|
524
|
+
return (React__default.createElement(Dialog, __assign({ onClose: onHide ? function () { return onHide(false); } : function () { return null; }, "aria-label": title, maxWidth: "sm", TransitionProps: { onEntering: handleEntering }, "aria-labelledby": "confirmation-dialog-title", open: open }, other, { onKeyDown: handleKeyDown }),
|
|
446
525
|
React__default.createElement(DialogTitle$1, { id: "confirmation-dialog-title" }, title),
|
|
447
|
-
|
|
448
|
-
|
|
526
|
+
isLoading
|
|
527
|
+
?
|
|
528
|
+
React__default.createElement("div", { style: { width: 600, minHeight: 416, display: "flex", justifyContent: "center", alignItems: "center" } },
|
|
529
|
+
React__default.createElement(LazyLoading, null))
|
|
530
|
+
: (React__default.createElement(DialogContent$1, { dividers: true },
|
|
531
|
+
React__default.createElement(TreeView, { className: classes.root, defaultCollapseIcon: React__default.createElement(MinusSquare, null), defaultExpandIcon: React__default.createElement(PlusSquare, null), ref: treeRef, selected: value === undefined ? "" : value.toString(), expanded: expanded, onNodeSelect: handleChange, onNodeToggle: handleToogle }, data && data.id !== undefined && renderTree(data)))),
|
|
449
532
|
React__default.createElement(DialogActions$1, null,
|
|
450
533
|
React__default.createElement(Button, { autoFocus: true, onClick: handleCancel, color: "primary" }, "Cancel"),
|
|
451
|
-
React__default.createElement(Button, { onClick: handleOk, color: "primary" }, "
|
|
452
|
-
};
|
|
453
|
-
ModalTreeFilterControl.propTypes = {
|
|
454
|
-
onClose: PropTypes.func.isRequired,
|
|
455
|
-
open: PropTypes.bool.isRequired,
|
|
456
|
-
title: PropTypes.string.isRequired,
|
|
457
|
-
data: PropTypes.object.isRequired
|
|
534
|
+
React__default.createElement(Button, { onClick: handleOk, color: "primary" }, "SAVE"))));
|
|
458
535
|
};
|
|
459
536
|
|
|
460
537
|
var useStyles$t = makeStyles(function (theme) { return ({
|
|
@@ -469,14 +546,13 @@ var useStyles$t = makeStyles(function (theme) { return ({
|
|
|
469
546
|
},
|
|
470
547
|
paper: {
|
|
471
548
|
width: "100%",
|
|
472
|
-
maxWidth: 600,
|
|
473
549
|
maxHeight: 600
|
|
474
550
|
}
|
|
475
551
|
}); });
|
|
476
552
|
var TreePickerControl = function (props) {
|
|
477
553
|
var classes = useStyles$t();
|
|
478
|
-
var onSelect = props.onSelect, value = props.value; props.styleLabel; var dataSource = props.dataSource, _a = props.inputTitle, inputTitle = _a === void 0 ? "Asset" : _a; props.showPath; var other = __rest(props, ["onSelect", "value", "styleLabel", "dataSource", "inputTitle", "showPath"]);
|
|
479
|
-
var
|
|
554
|
+
var onSelect = props.onSelect, value = props.value; props.styleLabel; var dataSource = props.dataSource, _a = props.inputTitle, inputTitle = _a === void 0 ? "Asset" : _a; props.showPath; var _c = props.multipleSelectNodes, multipleSelectNodes = _c === void 0 ? false : _c, showAssetTree = props.showAssetTree, onHide = props.onHide, _d = props.listAssetDrawings, listAssetDrawings = _d === void 0 ? [] : _d, onSuccess = props.onSuccess, isLoading = props.isLoading, other = __rest(props, ["onSelect", "value", "styleLabel", "dataSource", "inputTitle", "showPath", "multipleSelectNodes", "showAssetTree", "onHide", "listAssetDrawings", "onSuccess", "isLoading"]);
|
|
555
|
+
var _e = useState(false), open = _e[0], setOpen = _e[1];
|
|
480
556
|
var handleClickListItem = function (e) {
|
|
481
557
|
e.stopPropagation();
|
|
482
558
|
setOpen(true);
|
|
@@ -484,8 +560,9 @@ var TreePickerControl = function (props) {
|
|
|
484
560
|
var handleClose = function (newValue, newDescription, findNode) {
|
|
485
561
|
setOpen(false);
|
|
486
562
|
if (newValue) {
|
|
487
|
-
if (onSelect !== undefined)
|
|
563
|
+
if (onSelect !== undefined) {
|
|
488
564
|
onSelect(newValue, newDescription, findNode);
|
|
565
|
+
}
|
|
489
566
|
}
|
|
490
567
|
};
|
|
491
568
|
var formatDescription = function (description) {
|
|
@@ -518,27 +595,35 @@ var TreePickerControl = function (props) {
|
|
|
518
595
|
}
|
|
519
596
|
};
|
|
520
597
|
var description = useMemo(function () { return formatDescription(props.description); }, [props.description]);
|
|
598
|
+
useEffect(function () {
|
|
599
|
+
if (showAssetTree) {
|
|
600
|
+
setOpen(showAssetTree);
|
|
601
|
+
}
|
|
602
|
+
}, []);
|
|
521
603
|
return (React__default.createElement(Grid, { container: true, className: classes.root },
|
|
522
|
-
|
|
523
|
-
React__default.createElement(Grid, { item: true, style: { position: "relative",
|
|
524
|
-
React__default.createElement(
|
|
525
|
-
|
|
604
|
+
!showAssetTree ?
|
|
605
|
+
React__default.createElement(Grid, { container: true, item: true, md: 12, xs: 12, style: { position: "relative" }, title: props.description },
|
|
606
|
+
React__default.createElement(Grid, { item: true, style: { position: "relative", width: "100%" } },
|
|
607
|
+
React__default.createElement(TextField, { id: "treePickerTextField", label: inputTitle, variant: "outlined", value: description, margin: "dense", autoComplete: "off", fullWidth: true, disabled: true }),
|
|
608
|
+
React__default.createElement(AccountTreeIcon, { style: {
|
|
609
|
+
position: "absolute",
|
|
610
|
+
right: 15,
|
|
611
|
+
top: 16,
|
|
612
|
+
cursor: "pointer"
|
|
613
|
+
} })),
|
|
614
|
+
React__default.createElement("div", { style: {
|
|
526
615
|
position: "absolute",
|
|
527
|
-
|
|
528
|
-
|
|
616
|
+
top: 0,
|
|
617
|
+
bottom: 0,
|
|
618
|
+
left: 0,
|
|
619
|
+
right: 0,
|
|
529
620
|
cursor: "pointer"
|
|
530
|
-
} }))
|
|
531
|
-
React__default.createElement("div",
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
right: 0,
|
|
537
|
-
cursor: "pointer"
|
|
538
|
-
}, onClick: handleClickListItem })),
|
|
539
|
-
React__default.createElement(ModalTreeFilterControl, __assign({ classes: {
|
|
540
|
-
paper: classes.paper
|
|
541
|
-
}, id: "modal-treeview-filter", title: props.title, keepMounted: true, open: open, onClose: handleClose, value: value, data: dataSource, onBackdropClick: function () { return setOpen(false); } }, other))));
|
|
621
|
+
}, onClick: handleClickListItem }))
|
|
622
|
+
: React__default.createElement("div", null),
|
|
623
|
+
React__default.createElement(Grid, { item: true, xs: 12, md: 12 },
|
|
624
|
+
React__default.createElement(ModalTreeFilterControl, __assign({ classes: {
|
|
625
|
+
paper: classes.paper
|
|
626
|
+
}, onHide: onHide, id: "modal-treeview-filter", title: props.title, keepMounted: true, open: open, onClose: handleClose, isLoading: isLoading, value: value, data: dataSource, onBackdropClick: function () { return setOpen(false); }, multipleSelectNodes: multipleSelectNodes, listAssetDrawings: listAssetDrawings, setListAssetDrawings: listAssetDrawings, onSuccess: onSuccess }, other)))));
|
|
542
627
|
};
|
|
543
628
|
var SimpleTextControl = /** @class */ (function (_super) {
|
|
544
629
|
__extends(SimpleTextControl, _super);
|
|
@@ -1052,20 +1137,6 @@ var Alert = function (props) {
|
|
|
1052
1137
|
return React__default.createElement(Alert$2, __assign({ elevation: 6, variant: "filled" }, props));
|
|
1053
1138
|
};
|
|
1054
1139
|
|
|
1055
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1056
|
-
|
|
1057
|
-
var css$2 = ".lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 5px solid rgb(63,81,181);\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: rgb(63,81,181) transparent transparent transparent;\n}\n.lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n}\n.lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n}\n.lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n}\n@keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n";
|
|
1058
|
-
n(css$2,{});
|
|
1059
|
-
|
|
1060
|
-
var LazyLoading = function () {
|
|
1061
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
1062
|
-
React__default.createElement("div", { className: "lds-ring" },
|
|
1063
|
-
React__default.createElement("div", null),
|
|
1064
|
-
React__default.createElement("div", null),
|
|
1065
|
-
React__default.createElement("div", null),
|
|
1066
|
-
React__default.createElement("div", null))));
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
1140
|
var useStyles$s = makeStyles$1(function (theme) { return ({
|
|
1070
1141
|
buttons: {
|
|
1071
1142
|
opacity: 0,
|
|
@@ -1199,7 +1270,7 @@ var useJobsTableData = function (_a) {
|
|
|
1199
1270
|
headerName: "Start Time",
|
|
1200
1271
|
valueFormatter: function (_a) {
|
|
1201
1272
|
var value = _a.value;
|
|
1202
|
-
return value === null ? "NULL" : moment(value).format("DD/MM/YYYY HH:mm");
|
|
1273
|
+
return value === null ? "NULL" : moment$2(value).format("DD/MM/YYYY HH:mm");
|
|
1203
1274
|
},
|
|
1204
1275
|
flex: 1
|
|
1205
1276
|
},
|
|
@@ -1210,7 +1281,7 @@ var useJobsTableData = function (_a) {
|
|
|
1210
1281
|
headerName: "Next Execution",
|
|
1211
1282
|
valueFormatter: function (_a) {
|
|
1212
1283
|
var value = _a.value;
|
|
1213
|
-
return value === null ? "NULL" : moment(value).format("DD/MM/YYYY HH:mm");
|
|
1284
|
+
return value === null ? "NULL" : moment$2(value).format("DD/MM/YYYY HH:mm");
|
|
1214
1285
|
},
|
|
1215
1286
|
flex: 1
|
|
1216
1287
|
},
|
|
@@ -1221,7 +1292,7 @@ var useJobsTableData = function (_a) {
|
|
|
1221
1292
|
headerName: "Started",
|
|
1222
1293
|
valueFormatter: function (_a) {
|
|
1223
1294
|
var value = _a.value;
|
|
1224
|
-
return value === null ? "NULL" : moment(value).format("DD/MM/YYYY HH:mm");
|
|
1295
|
+
return value === null ? "NULL" : moment$2(value).format("DD/MM/YYYY HH:mm");
|
|
1225
1296
|
},
|
|
1226
1297
|
flex: 1
|
|
1227
1298
|
},
|
|
@@ -1232,7 +1303,7 @@ var useJobsTableData = function (_a) {
|
|
|
1232
1303
|
headerName: "Last Seen",
|
|
1233
1304
|
valueFormatter: function (_a) {
|
|
1234
1305
|
var value = _a.value;
|
|
1235
|
-
return value === null ? "NULL" : moment(value).format("DD/MM/YYYY HH:mm");
|
|
1306
|
+
return value === null ? "NULL" : moment$2(value).format("DD/MM/YYYY HH:mm");
|
|
1236
1307
|
},
|
|
1237
1308
|
flex: 2
|
|
1238
1309
|
},
|
|
@@ -1574,7 +1645,8 @@ var TableJobs = function () {
|
|
|
1574
1645
|
name: "Enable",
|
|
1575
1646
|
action: function () {
|
|
1576
1647
|
setRowSelected(rowSelectedInGrid);
|
|
1577
|
-
}
|
|
1648
|
+
},
|
|
1649
|
+
icon: '<i class="fas fa-arrow-up"></i>'
|
|
1578
1650
|
});
|
|
1579
1651
|
}
|
|
1580
1652
|
if (rowSelectedInGrid) {
|
|
@@ -1582,7 +1654,8 @@ var TableJobs = function () {
|
|
|
1582
1654
|
name: "Disable",
|
|
1583
1655
|
action: function () {
|
|
1584
1656
|
setRowSelected(rowSelectedInGrid);
|
|
1585
|
-
}
|
|
1657
|
+
},
|
|
1658
|
+
icon: '<i class="fas fa-arrow-down"></i>'
|
|
1586
1659
|
});
|
|
1587
1660
|
}
|
|
1588
1661
|
if (rowSelectedInGrid) {
|
|
@@ -1590,12 +1663,14 @@ var TableJobs = function () {
|
|
|
1590
1663
|
name: "Reset",
|
|
1591
1664
|
action: function () {
|
|
1592
1665
|
setRowSelected(rowSelectedInGrid);
|
|
1593
|
-
}
|
|
1666
|
+
},
|
|
1667
|
+
icon: ' <i class="fas fa-undo"></i>'
|
|
1594
1668
|
});
|
|
1595
1669
|
}
|
|
1596
1670
|
result.push({
|
|
1597
1671
|
name: "Refresh",
|
|
1598
|
-
action: function () { return getJobsFromAPI(); }
|
|
1672
|
+
action: function () { return getJobsFromAPI(); },
|
|
1673
|
+
icon: '<i class="fas fa-sync-alt"></i>'
|
|
1599
1674
|
});
|
|
1600
1675
|
return result;
|
|
1601
1676
|
}, [rows, gridApi]);
|
|
@@ -1677,8 +1752,8 @@ var JobsPage = function (props) {
|
|
|
1677
1752
|
var LogsInitialState = {
|
|
1678
1753
|
logs: [],
|
|
1679
1754
|
searchData: {
|
|
1680
|
-
Start: moment().add(-5, "days").hour(0).minute(0).second(0).toDate(),
|
|
1681
|
-
End: moment().hour(23).minute(59).second(59).toDate(),
|
|
1755
|
+
Start: moment$2().add(-5, "days").hour(0).minute(0).second(0).toDate(),
|
|
1756
|
+
End: moment$2().hour(23).minute(59).second(59).toDate(),
|
|
1682
1757
|
Search: "",
|
|
1683
1758
|
LogTypeCode: "A"
|
|
1684
1759
|
}
|
|
@@ -1714,8 +1789,8 @@ var LogsReducer = createSlice({
|
|
|
1714
1789
|
resetFilters: function (state, _a) {
|
|
1715
1790
|
_a.payload;
|
|
1716
1791
|
state.searchData = {
|
|
1717
|
-
Start: moment().add(-5, "days").hour(0).minute(0).second(0).toDate(),
|
|
1718
|
-
End: moment().hour(23).minute(59).second(59).toDate(),
|
|
1792
|
+
Start: moment$2().add(-5, "days").hour(0).minute(0).second(0).toDate(),
|
|
1793
|
+
End: moment$2().hour(23).minute(59).second(59).toDate(),
|
|
1719
1794
|
Search: "",
|
|
1720
1795
|
LogTypeCode: "A"
|
|
1721
1796
|
};
|
|
@@ -2144,7 +2219,8 @@ var TableLogs = function () {
|
|
|
2144
2219
|
action: function () {
|
|
2145
2220
|
setSelectedLog(data);
|
|
2146
2221
|
setShowLogModal(true);
|
|
2147
|
-
}
|
|
2222
|
+
},
|
|
2223
|
+
icon: '<i class="fas fa-clipboard-list"></i>'
|
|
2148
2224
|
});
|
|
2149
2225
|
}
|
|
2150
2226
|
if (data) {
|
|
@@ -2152,7 +2228,8 @@ var TableLogs = function () {
|
|
|
2152
2228
|
name: "Reset Filters",
|
|
2153
2229
|
action: function () {
|
|
2154
2230
|
handleResetButtonClick();
|
|
2155
|
-
}
|
|
2231
|
+
},
|
|
2232
|
+
icon: '<i class="fas fa-sync-alt"></i>'
|
|
2156
2233
|
});
|
|
2157
2234
|
}
|
|
2158
2235
|
return result;
|
|
@@ -2580,7 +2657,7 @@ var useTableData$2 = function (_a) {
|
|
|
2580
2657
|
React__default.createElement(Button, { onClick: function () {
|
|
2581
2658
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2582
2659
|
return __generator(this, function (_a) {
|
|
2583
|
-
setProfileForEdit(params.data);
|
|
2660
|
+
setProfileForEdit(params === null || params === void 0 ? void 0 : params.data);
|
|
2584
2661
|
setModalProceduresProfile(true);
|
|
2585
2662
|
return [2 /*return*/];
|
|
2586
2663
|
});
|
|
@@ -2597,7 +2674,7 @@ var useTableData$2 = function (_a) {
|
|
|
2597
2674
|
}); })();
|
|
2598
2675
|
} },
|
|
2599
2676
|
React__default.createElement(DeleteIcon, { color: "secondary" })),
|
|
2600
|
-
React__default.createElement(Button, { style: {}, onClick: function (e) {
|
|
2677
|
+
React__default.createElement(Button, { style: {}, onClick: function (e) { onActionsClick(e, params); } },
|
|
2601
2678
|
React__default.createElement(FormatListBulletedSharpIcon, { style: { height: "auto" }, color: "action" })))));
|
|
2602
2679
|
},
|
|
2603
2680
|
headerName: " ",
|
|
@@ -2953,16 +3030,18 @@ var TableProfiles = function (_a) {
|
|
|
2953
3030
|
name: "New",
|
|
2954
3031
|
action: function () {
|
|
2955
3032
|
setModalCreateActive(!modalCreateActive);
|
|
2956
|
-
}
|
|
3033
|
+
},
|
|
3034
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
2957
3035
|
});
|
|
2958
3036
|
}
|
|
2959
3037
|
if (data) {
|
|
2960
3038
|
result.push({
|
|
2961
3039
|
name: "Edit Profile",
|
|
2962
3040
|
action: function () {
|
|
2963
|
-
|
|
3041
|
+
setProfileForEdit(data);
|
|
2964
3042
|
setModalProceduresProfile(true);
|
|
2965
|
-
}
|
|
3043
|
+
},
|
|
3044
|
+
icon: '<i class="fas fa-edit"></i>'
|
|
2966
3045
|
});
|
|
2967
3046
|
}
|
|
2968
3047
|
if (data) {
|
|
@@ -2971,7 +3050,8 @@ var TableProfiles = function (_a) {
|
|
|
2971
3050
|
action: function () {
|
|
2972
3051
|
setProfileForDelete(data);
|
|
2973
3052
|
setModalDeleteProfile(true);
|
|
2974
|
-
}
|
|
3053
|
+
},
|
|
3054
|
+
icon: '<i class="fas fa-trash"></i>'
|
|
2975
3055
|
});
|
|
2976
3056
|
}
|
|
2977
3057
|
var addNewProfile = [];
|
|
@@ -2980,7 +3060,8 @@ var TableProfiles = function (_a) {
|
|
|
2980
3060
|
name: "New Profile",
|
|
2981
3061
|
action: function () {
|
|
2982
3062
|
setModalCreateActive(!modalCreateActive);
|
|
2983
|
-
}
|
|
3063
|
+
},
|
|
3064
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
2984
3065
|
});
|
|
2985
3066
|
}
|
|
2986
3067
|
return data ? result : addNewProfile;
|
|
@@ -3023,9 +3104,11 @@ var TableProfiles = function (_a) {
|
|
|
3023
3104
|
margin: "20px 0 10px"
|
|
3024
3105
|
} },
|
|
3025
3106
|
React.createElement("div", { style: gridStyle, className: "ag-theme-alpine" },
|
|
3026
|
-
React.createElement(AgGridReact, { rowData: rows, columnDefs: columnDefs, defaultColDef: defaultColDef, rowHeight: 38, headerHeight: 32, loadingOverlayComponent: loadingOverlayComponent, animateRows: true, getContextMenuItems: function (e) { return getContextMenuItems(e); }, pagination: true, rowSelection: "single",
|
|
3107
|
+
React.createElement(AgGridReact, { rowData: rows, columnDefs: columnDefs, defaultColDef: defaultColDef, rowHeight: 38, headerHeight: 32, loadingOverlayComponent: loadingOverlayComponent, animateRows: true, getContextMenuItems: function (e) { return getContextMenuItems(e); }, pagination: true, rowSelection: "single", onRowDoubleClicked: function (event) {
|
|
3027
3108
|
setProfileForEdit(event.data);
|
|
3028
3109
|
setModalProceduresProfile(true);
|
|
3110
|
+
}, onRowClicked: function (event) {
|
|
3111
|
+
setProfileForEdit(event.data);
|
|
3029
3112
|
}, onGridReady: function (params) { return setGridApi(params.api); } }))),
|
|
3030
3113
|
React.createElement(Grid, { container: true, justifyContent: "flex-end" },
|
|
3031
3114
|
React.createElement(Grid, { item: true, md: 2, xs: 12, className: classes.btnModal },
|
|
@@ -3862,7 +3945,7 @@ var useTableData$1 = function (_a) {
|
|
|
3862
3945
|
headerName: "Pattern Start",
|
|
3863
3946
|
valueFormatter: function (_a) {
|
|
3864
3947
|
var value = _a.value;
|
|
3865
|
-
return "".concat(moment(value).format("L"), ", ").concat(moment(value).format("LTS"));
|
|
3948
|
+
return "".concat(moment$2(value).format("L"), ", ").concat(moment$2(value).format("LTS"));
|
|
3866
3949
|
},
|
|
3867
3950
|
minWidth: 180,
|
|
3868
3951
|
flex: 4
|
|
@@ -4021,7 +4104,8 @@ var TableShiftsCrews = function (_a) {
|
|
|
4021
4104
|
name: "New",
|
|
4022
4105
|
action: function () {
|
|
4023
4106
|
setOpenModalNew(!openModalNew);
|
|
4024
|
-
}
|
|
4107
|
+
},
|
|
4108
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
4025
4109
|
});
|
|
4026
4110
|
}
|
|
4027
4111
|
if (data) {
|
|
@@ -4030,7 +4114,8 @@ var TableShiftsCrews = function (_a) {
|
|
|
4030
4114
|
action: function () {
|
|
4031
4115
|
setShiftTableData(data);
|
|
4032
4116
|
setOpenModalEditShift(true);
|
|
4033
|
-
}
|
|
4117
|
+
},
|
|
4118
|
+
icon: '<i class="fas fa-edit"></i>'
|
|
4034
4119
|
});
|
|
4035
4120
|
}
|
|
4036
4121
|
if (data) {
|
|
@@ -4039,19 +4124,21 @@ var TableShiftsCrews = function (_a) {
|
|
|
4039
4124
|
action: function () {
|
|
4040
4125
|
setShiftTableData(data);
|
|
4041
4126
|
setOpenModalDeleteShift(true);
|
|
4042
|
-
}
|
|
4127
|
+
},
|
|
4128
|
+
icon: '<i class="fas fa-trash"></i>'
|
|
4043
4129
|
});
|
|
4044
4130
|
}
|
|
4045
|
-
var
|
|
4131
|
+
var addNewShift = [];
|
|
4046
4132
|
if (!data) {
|
|
4047
|
-
|
|
4048
|
-
name: "New
|
|
4133
|
+
addNewShift.push({
|
|
4134
|
+
name: "New Shift",
|
|
4049
4135
|
action: function () {
|
|
4050
4136
|
setOpenModalNew(!openModalNew);
|
|
4051
|
-
}
|
|
4137
|
+
},
|
|
4138
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
4052
4139
|
});
|
|
4053
4140
|
}
|
|
4054
|
-
return data ? result :
|
|
4141
|
+
return data ? result : addNewShift;
|
|
4055
4142
|
}, [rows]);
|
|
4056
4143
|
return (React.createElement(Grid, { container: true, justifyContent: "center", alignItems: "center", className: classes.root },
|
|
4057
4144
|
React.createElement(Grid, { item: true, md: 12, xs: 12, style: { padding: "0 15px" } },
|
|
@@ -4658,6 +4745,65 @@ var TransformAssetModelData = function (node) {
|
|
|
4658
4745
|
return model;
|
|
4659
4746
|
};
|
|
4660
4747
|
|
|
4748
|
+
var getUser = function (UserId, UserName) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4749
|
+
var apiService, parameters, resp;
|
|
4750
|
+
return __generator(this, function (_a) {
|
|
4751
|
+
switch (_a.label) {
|
|
4752
|
+
case 0:
|
|
4753
|
+
apiService = new MESApiService();
|
|
4754
|
+
parameters = [];
|
|
4755
|
+
parameters.push({ name: "UserId", value: UserId });
|
|
4756
|
+
parameters.push({ name: "UserName", value: UserName });
|
|
4757
|
+
return [4 /*yield*/, apiService.callV2("[SEC].[GetUser]", parameters)];
|
|
4758
|
+
case 1:
|
|
4759
|
+
resp = _a.sent();
|
|
4760
|
+
return [2 /*return*/, resp];
|
|
4761
|
+
}
|
|
4762
|
+
});
|
|
4763
|
+
}); };
|
|
4764
|
+
var getAssets = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
4765
|
+
var apiService, resp;
|
|
4766
|
+
return __generator(this, function (_a) {
|
|
4767
|
+
switch (_a.label) {
|
|
4768
|
+
case 0:
|
|
4769
|
+
apiService = new MESApiService();
|
|
4770
|
+
return [4 /*yield*/, apiService.callV2("[MES].[GetAssets]", [])];
|
|
4771
|
+
case 1:
|
|
4772
|
+
resp = _a.sent();
|
|
4773
|
+
return [2 /*return*/, resp];
|
|
4774
|
+
}
|
|
4775
|
+
});
|
|
4776
|
+
}); };
|
|
4777
|
+
var getUTLSettings = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
4778
|
+
var apiService, resp;
|
|
4779
|
+
return __generator(this, function (_a) {
|
|
4780
|
+
switch (_a.label) {
|
|
4781
|
+
case 0:
|
|
4782
|
+
apiService = new MESApiService();
|
|
4783
|
+
return [4 /*yield*/, apiService.callV2("[UTL].[GetSettings]", [])];
|
|
4784
|
+
case 1:
|
|
4785
|
+
resp = _a.sent();
|
|
4786
|
+
return [2 /*return*/, resp];
|
|
4787
|
+
}
|
|
4788
|
+
});
|
|
4789
|
+
}); };
|
|
4790
|
+
var upsertDefaultAreaId = function (UserId, DefaultAreaId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4791
|
+
var apiService, parameters, resp;
|
|
4792
|
+
return __generator(this, function (_a) {
|
|
4793
|
+
switch (_a.label) {
|
|
4794
|
+
case 0:
|
|
4795
|
+
apiService = new MESApiService();
|
|
4796
|
+
parameters = [];
|
|
4797
|
+
parameters.push({ name: "UserId", value: UserId });
|
|
4798
|
+
parameters.push({ name: "DefaultAssetId", value: DefaultAreaId });
|
|
4799
|
+
return [4 /*yield*/, apiService.callV2("[SEC].[UpsertDefaultAssetId]", parameters)];
|
|
4800
|
+
case 1:
|
|
4801
|
+
resp = _a.sent();
|
|
4802
|
+
return [2 /*return*/, resp];
|
|
4803
|
+
}
|
|
4804
|
+
});
|
|
4805
|
+
}); };
|
|
4806
|
+
|
|
4661
4807
|
var useSearchAssets$1 = function (_a) {
|
|
4662
4808
|
var setSearchError = _a.setSearchError, setAllAssetLoading = _a.setAllAssetLoading;
|
|
4663
4809
|
var _b = useAssetContext().actions, setAllAssets = _b.setAllAssets, setAreasList = _b.setAreasList;
|
|
@@ -5282,16 +5428,31 @@ var EditAssetDialog = function (_a) {
|
|
|
5282
5428
|
var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
5283
5429
|
root: {},
|
|
5284
5430
|
contextMenu: {
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
padding: "5px 0 5px 0",
|
|
5289
|
-
width: "150px",
|
|
5431
|
+
backgroundColor: "#F8F8F8",
|
|
5432
|
+
borderRadius: "4px",
|
|
5433
|
+
padding: "0",
|
|
5290
5434
|
height: "auto",
|
|
5435
|
+
width: "170px",
|
|
5291
5436
|
margin: "0",
|
|
5292
5437
|
position: "fixed",
|
|
5293
5438
|
listStyle: "none",
|
|
5294
|
-
boxShadow: "0 0
|
|
5439
|
+
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.15)",
|
|
5440
|
+
zIndex: 1000
|
|
5441
|
+
},
|
|
5442
|
+
menuItem: {
|
|
5443
|
+
padding: "6px 12px 6px 10px",
|
|
5444
|
+
cursor: "pointer",
|
|
5445
|
+
display: "flex",
|
|
5446
|
+
alignItems: "center",
|
|
5447
|
+
backgroundColor: "#F8F8F8",
|
|
5448
|
+
fontSize: "12px",
|
|
5449
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
5450
|
+
"&:last-child": {
|
|
5451
|
+
borderBottom: "none"
|
|
5452
|
+
},
|
|
5453
|
+
"&:hover": {
|
|
5454
|
+
backgroundColor: "#d4edff"
|
|
5455
|
+
}
|
|
5295
5456
|
},
|
|
5296
5457
|
storyRoot: {
|
|
5297
5458
|
display: "grid",
|
|
@@ -5482,13 +5643,38 @@ var AssetViewComponent = function () {
|
|
|
5482
5643
|
} }))),
|
|
5483
5644
|
React__default.createElement(Snackbar$1, { open: updatedSuccessfullyMessage, autoHideDuration: 2500, onClose: handleClose },
|
|
5484
5645
|
React__default.createElement(Alert$3, { severity: "success", onClose: handleClose }, "Asset updated successfully"))),
|
|
5485
|
-
showContextMenu && !isDoubleClick ? (React__default.createElement("ul", { className: classes.contextMenu, style: { top: y, left: x } },
|
|
5486
|
-
React__default.createElement(MenuItem$1, { onClick: function () { return setShowViewerAssetDialog(true); } },
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5646
|
+
showContextMenu && !isDoubleClick ? (React__default.createElement("ul", { className: classes.contextMenu, style: { top: y, left: x, padding: "6px 0" } },
|
|
5647
|
+
React__default.createElement(MenuItem$1, { className: classes.menuItem, onClick: function () { return setShowViewerAssetDialog(true); } },
|
|
5648
|
+
React__default.createElement(Grid$1, { container: true, style: { alignItems: "center" } },
|
|
5649
|
+
React__default.createElement(Grid$1, { item: true, md: 2, xs: 3 },
|
|
5650
|
+
React__default.createElement(FindInPageIcon, { style: { width: 18 } })),
|
|
5651
|
+
React__default.createElement(Grid$1, { item: true, md: 9, xs: 9 },
|
|
5652
|
+
React__default.createElement("div", { style: { marginLeft: 5 } }, "View Asset")))),
|
|
5653
|
+
React__default.createElement(MenuItem$1, { className: classes.menuItem, onClick: function () { return setShowEditAssetDialog(true); } },
|
|
5654
|
+
React__default.createElement(Grid$1, { container: true, style: { alignItems: "center" } },
|
|
5655
|
+
React__default.createElement(Grid$1, { item: true, md: 2, xs: 3 },
|
|
5656
|
+
React__default.createElement(EditIcon, { style: { width: 18 } })),
|
|
5657
|
+
React__default.createElement(Grid$1, { item: true, md: 9, xs: 9 },
|
|
5658
|
+
React__default.createElement("div", { style: { marginLeft: 5 } }, "Edit Asset")))),
|
|
5659
|
+
React__default.createElement(MenuItem$1, { className: classes.menuItem, onClick: function () { return setShowCreateNewAssetDialog(true); } },
|
|
5660
|
+
React__default.createElement(Grid$1, { container: true, style: { alignItems: "center" } },
|
|
5661
|
+
React__default.createElement(Grid$1, { item: true, md: 2, xs: 3 },
|
|
5662
|
+
React__default.createElement(AddBoxIcon, { style: { width: 18 } })),
|
|
5663
|
+
React__default.createElement(Grid$1, { item: true, md: 9, xs: 9 },
|
|
5664
|
+
React__default.createElement("div", { style: { marginLeft: 5 } }, "Create Asset")))),
|
|
5665
|
+
(assetNodeSelectedInTree === null || assetNodeSelectedInTree === void 0 ? void 0 : assetNodeSelectedInTree.IsBranch) === false && (React__default.createElement(MenuItem$1, { className: classes.menuItem, onClick: function () { return setShowRemoveAssetDialog(true); } },
|
|
5666
|
+
React__default.createElement(Grid$1, { container: true, style: { alignItems: "center" } },
|
|
5667
|
+
React__default.createElement(Grid$1, { item: true, md: 2, xs: 3 },
|
|
5668
|
+
React__default.createElement(DeleteIcon, { style: { width: 18 } })),
|
|
5669
|
+
React__default.createElement(Grid$1, { item: true, md: 9, xs: 9 },
|
|
5670
|
+
React__default.createElement("div", { style: { marginLeft: 5 } }, "Remove Asset"))))))) : (""),
|
|
5490
5671
|
showCreateNewContextMenu ? (React__default.createElement("ul", { className: classes.contextMenu, style: { top: y, left: x } },
|
|
5491
|
-
React__default.createElement(MenuItem$1, { onClick: function () { return setShowCreateNewAssetDialog(true); } },
|
|
5672
|
+
React__default.createElement(MenuItem$1, { className: classes.menuItem, onClick: function () { return setShowCreateNewAssetDialog(true); } },
|
|
5673
|
+
React__default.createElement(Grid$1, { container: true, style: { alignItems: "center" } },
|
|
5674
|
+
React__default.createElement(Grid$1, { item: true, md: 2, xs: 3 },
|
|
5675
|
+
React__default.createElement(AddBoxIcon, { style: { width: 18 } })),
|
|
5676
|
+
React__default.createElement(Grid$1, { item: true, md: 9, xs: 9 },
|
|
5677
|
+
React__default.createElement("div", { style: { marginLeft: 5 } }, "Create Asset")))))) : (""))),
|
|
5492
5678
|
React__default.createElement(ErrorModal, { error: errorUpdate, onHide: function () { return setErrorUpdate(""); } }),
|
|
5493
5679
|
React__default.createElement(ErrorModal, { error: searchError, onHide: function () { return setSearchError(""); } })));
|
|
5494
5680
|
};
|
|
@@ -6496,10 +6682,11 @@ var TableUsers = function (_a) {
|
|
|
6496
6682
|
var result = [];
|
|
6497
6683
|
if (data) {
|
|
6498
6684
|
result.push({
|
|
6499
|
-
name: "New",
|
|
6685
|
+
name: "New User",
|
|
6500
6686
|
action: function () {
|
|
6501
6687
|
setOpenModalCreate(!openModalCreate);
|
|
6502
|
-
}
|
|
6688
|
+
},
|
|
6689
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
6503
6690
|
});
|
|
6504
6691
|
}
|
|
6505
6692
|
if (data) {
|
|
@@ -6508,7 +6695,8 @@ var TableUsers = function (_a) {
|
|
|
6508
6695
|
action: function () {
|
|
6509
6696
|
setUserIdForEdit(data === null || data === void 0 ? void 0 : data.UserId);
|
|
6510
6697
|
setOpenModalEditDataUser(true);
|
|
6511
|
-
}
|
|
6698
|
+
},
|
|
6699
|
+
icon: '<i class="fas fa-edit"></i>'
|
|
6512
6700
|
});
|
|
6513
6701
|
}
|
|
6514
6702
|
if (data) {
|
|
@@ -6517,7 +6705,8 @@ var TableUsers = function (_a) {
|
|
|
6517
6705
|
action: function () {
|
|
6518
6706
|
setUserIdForDelete(data === null || data === void 0 ? void 0 : data.UserId);
|
|
6519
6707
|
setOpenModalDeleteUser(true);
|
|
6520
|
-
}
|
|
6708
|
+
},
|
|
6709
|
+
icon: '<i class="fas fa-trash"></i>'
|
|
6521
6710
|
});
|
|
6522
6711
|
}
|
|
6523
6712
|
if (data) {
|
|
@@ -6526,7 +6715,8 @@ var TableUsers = function (_a) {
|
|
|
6526
6715
|
action: function () {
|
|
6527
6716
|
setUserForPasswordChange(data === null || data === void 0 ? void 0 : data.UserId);
|
|
6528
6717
|
setOpenModalChangePasswordd(true);
|
|
6529
|
-
}
|
|
6718
|
+
},
|
|
6719
|
+
icon: '<i class="fas fa-lock"></i>'
|
|
6530
6720
|
});
|
|
6531
6721
|
}
|
|
6532
6722
|
var addNewUser = [];
|
|
@@ -6535,7 +6725,8 @@ var TableUsers = function (_a) {
|
|
|
6535
6725
|
name: "New User",
|
|
6536
6726
|
action: function () {
|
|
6537
6727
|
setOpenModalCreate(!openModalCreate);
|
|
6538
|
-
}
|
|
6728
|
+
},
|
|
6729
|
+
icon: '<i class="fas fa-plus"></i>'
|
|
6539
6730
|
});
|
|
6540
6731
|
}
|
|
6541
6732
|
return data ? result : addNewUser;
|
|
@@ -6915,7 +7106,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
6915
7106
|
data.dataBaseName = database;
|
|
6916
7107
|
data.parameters = formattedParameters;
|
|
6917
7108
|
Date.prototype.toJSON = function () {
|
|
6918
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7109
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
6919
7110
|
}; // eslint-disable-line
|
|
6920
7111
|
isError = { ok: true };
|
|
6921
7112
|
return [2 /*return*/, fetch(this.config.API_PROCEDURE_URL + "/Execute", {
|
|
@@ -6974,7 +7165,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
6974
7165
|
data.dataBaseName = database;
|
|
6975
7166
|
data.parameters = formattedParameters;
|
|
6976
7167
|
Date.prototype.toJSON = function () {
|
|
6977
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7168
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
6978
7169
|
}; // eslint-disable-line
|
|
6979
7170
|
_a.label = 1;
|
|
6980
7171
|
case 1:
|
|
@@ -7035,7 +7226,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
7035
7226
|
data.dataBaseName = database;
|
|
7036
7227
|
data.parameters = formattedParameters;
|
|
7037
7228
|
Date.prototype.toJSON = function () {
|
|
7038
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7229
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7039
7230
|
}; // eslint-disable-line
|
|
7040
7231
|
isError = { ok: true };
|
|
7041
7232
|
return [2 /*return*/, fetch(this.config.API_PROCEDURE_URL + "/ExecuteJSON", {
|
|
@@ -7090,7 +7281,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
7090
7281
|
formattedParameters.push(formattedParameter);
|
|
7091
7282
|
});
|
|
7092
7283
|
Date.prototype.toJSON = function () {
|
|
7093
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7284
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7094
7285
|
}; // eslint-disable-line
|
|
7095
7286
|
isError = { ok: true };
|
|
7096
7287
|
files.forEach(function (element) {
|
|
@@ -7155,7 +7346,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
7155
7346
|
data.parameters = formattedParameters;
|
|
7156
7347
|
data.fileName = fileName || "Default.xlsx";
|
|
7157
7348
|
Date.prototype.toJSON = function () {
|
|
7158
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7349
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7159
7350
|
}; // eslint-disable-line
|
|
7160
7351
|
isError = { ok: true };
|
|
7161
7352
|
return [2 /*return*/, fetch(this.config.API_PROCEDURE_URL + "/Export", {
|
|
@@ -7231,7 +7422,7 @@ var MESApiService = /** @class */ (function () {
|
|
|
7231
7422
|
data.parameters = formattedParameters;
|
|
7232
7423
|
data.fileName = fileName || "Default.xlsx";
|
|
7233
7424
|
Date.prototype.toJSON = function () {
|
|
7234
|
-
return moment(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7425
|
+
return moment$2(this).format("YYYY-MM-DDTHH:mm:ss");
|
|
7235
7426
|
}; // eslint-disable-line
|
|
7236
7427
|
isError = { ok: true };
|
|
7237
7428
|
return [2 /*return*/, fetch(this.config.API_PROCEDURE_URL + "/ExportExcel", {
|
|
@@ -7318,7 +7509,7 @@ var TimeService = /** @class */ (function () {
|
|
|
7318
7509
|
else {
|
|
7319
7510
|
this.timeZone = timeZone;
|
|
7320
7511
|
}
|
|
7321
|
-
moment$
|
|
7512
|
+
moment$3.tz.setDefault(this.timeZone);
|
|
7322
7513
|
};
|
|
7323
7514
|
TimeService.prototype.toUTC = function (datetime, format$1) {
|
|
7324
7515
|
try {
|
|
@@ -7357,70 +7548,277 @@ var TimeService = /** @class */ (function () {
|
|
|
7357
7548
|
};
|
|
7358
7549
|
return TimeService;
|
|
7359
7550
|
}());
|
|
7360
|
-
var getMomentTz = function () { return moment$
|
|
7551
|
+
var getMomentTz = function () { return moment$3; };
|
|
7361
7552
|
var dxtServerTimeZone = function () { return TimeService.getInstance().getServerTimeZone; };
|
|
7362
7553
|
var dxtToUTC = TimeService.getInstance().toUTC;
|
|
7363
7554
|
var dxtToLocalServerTime = TimeService.getInstance().toLocalServerTime;
|
|
7364
7555
|
|
|
7365
|
-
var
|
|
7366
|
-
var apiService,
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
apiService = new MESApiService();
|
|
7371
|
-
parameters = [];
|
|
7372
|
-
parameters.push({ name: "UserId", value: UserId });
|
|
7373
|
-
parameters.push({ name: "UserName", value: UserName });
|
|
7374
|
-
return [4 /*yield*/, apiService.callV2("[SEC].[GetUser]", parameters)];
|
|
7375
|
-
case 1:
|
|
7376
|
-
resp = _a.sent();
|
|
7377
|
-
return [2 /*return*/, resp];
|
|
7378
|
-
}
|
|
7379
|
-
});
|
|
7380
|
-
}); };
|
|
7381
|
-
var getAssets = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7382
|
-
var apiService, resp;
|
|
7383
|
-
return __generator(this, function (_a) {
|
|
7384
|
-
switch (_a.label) {
|
|
7385
|
-
case 0:
|
|
7386
|
-
apiService = new MESApiService();
|
|
7387
|
-
return [4 /*yield*/, apiService.callV2("[MES].[GetAssets]", [])];
|
|
7388
|
-
case 1:
|
|
7389
|
-
resp = _a.sent();
|
|
7390
|
-
return [2 /*return*/, resp];
|
|
7391
|
-
}
|
|
7392
|
-
});
|
|
7393
|
-
}); };
|
|
7394
|
-
var getUTLSettings = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7395
|
-
var apiService, resp;
|
|
7396
|
-
return __generator(this, function (_a) {
|
|
7397
|
-
switch (_a.label) {
|
|
7556
|
+
var getShiftByParameters = function (parameters) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7557
|
+
var utcString, sqlParameters, apiService, resp, e_1;
|
|
7558
|
+
var _a;
|
|
7559
|
+
return __generator(this, function (_b) {
|
|
7560
|
+
switch (_b.label) {
|
|
7398
7561
|
case 0:
|
|
7399
|
-
|
|
7400
|
-
|
|
7562
|
+
utcString = (_a = parameters.productionDate) === null || _a === void 0 ? void 0 : _a.toISOString();
|
|
7563
|
+
_b.label = 1;
|
|
7401
7564
|
case 1:
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7565
|
+
_b.trys.push([1, 3, , 4]);
|
|
7566
|
+
sqlParameters = [];
|
|
7567
|
+
sqlParameters.push({
|
|
7568
|
+
name: "@ShiftId",
|
|
7569
|
+
value: parameters.shiftId === 0 ? null : parameters.shiftId
|
|
7570
|
+
});
|
|
7571
|
+
sqlParameters.push({
|
|
7572
|
+
name: "@ProductionDate",
|
|
7573
|
+
value: utcString
|
|
7574
|
+
});
|
|
7412
7575
|
apiService = new MESApiService();
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7576
|
+
return [4 /*yield*/, apiService.callV2("[MES].[GetShiftByParameters]", sqlParameters)];
|
|
7577
|
+
case 2:
|
|
7578
|
+
resp = _b.sent();
|
|
7579
|
+
if (resp.ok) {
|
|
7580
|
+
return [2 /*return*/, {
|
|
7581
|
+
ok: true,
|
|
7582
|
+
data: get(resp.data, 'tables[0].rows[0]', {})
|
|
7583
|
+
}];
|
|
7584
|
+
}
|
|
7585
|
+
else {
|
|
7586
|
+
return [2 /*return*/, {
|
|
7587
|
+
ok: false,
|
|
7588
|
+
message: resp.message
|
|
7589
|
+
}];
|
|
7590
|
+
}
|
|
7591
|
+
case 3:
|
|
7592
|
+
e_1 = _b.sent();
|
|
7593
|
+
return [2 /*return*/, { ok: false, message: e_1.toString() }];
|
|
7594
|
+
case 4: return [2 /*return*/];
|
|
7420
7595
|
}
|
|
7421
7596
|
});
|
|
7422
7597
|
}); };
|
|
7423
7598
|
|
|
7599
|
+
var moment$1 = getMomentTz();
|
|
7600
|
+
var useShiftNavigatorManager = function () {
|
|
7601
|
+
var _a = useState(null), shiftInfo = _a[0], setShiftInfo = _a[1];
|
|
7602
|
+
var _b = useState(false); _b[0]; var setIsShiftInfoLoading = _b[1];
|
|
7603
|
+
var _c = useState(''); _c[0]; var setError = _c[1];
|
|
7604
|
+
var moveShift = function (direction) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7605
|
+
var shiftId, resp;
|
|
7606
|
+
return __generator(this, function (_a) {
|
|
7607
|
+
switch (_a.label) {
|
|
7608
|
+
case 0:
|
|
7609
|
+
if (isNil$1(shiftInfo)) {
|
|
7610
|
+
return [2 /*return*/];
|
|
7611
|
+
}
|
|
7612
|
+
setIsShiftInfoLoading(true);
|
|
7613
|
+
shiftId = null;
|
|
7614
|
+
if (direction === "Next" && shiftInfo.NextShiftId !== null) {
|
|
7615
|
+
shiftId = shiftInfo.NextShiftId;
|
|
7616
|
+
}
|
|
7617
|
+
else if (direction === "Previous" && shiftInfo.PreviousShiftId !== null) {
|
|
7618
|
+
shiftId = shiftInfo.PreviousShiftId;
|
|
7619
|
+
}
|
|
7620
|
+
else if (direction === "Last" && shiftInfo.LastShiftId !== null) {
|
|
7621
|
+
shiftId = shiftInfo.LastShiftId;
|
|
7622
|
+
}
|
|
7623
|
+
if (!shiftId) return [3 /*break*/, 2];
|
|
7624
|
+
return [4 /*yield*/, getShiftByParameters({
|
|
7625
|
+
productionDate: null,
|
|
7626
|
+
shiftId: shiftId
|
|
7627
|
+
})];
|
|
7628
|
+
case 1:
|
|
7629
|
+
resp = _a.sent();
|
|
7630
|
+
if (resp.ok) {
|
|
7631
|
+
setShiftInfo(__assign(__assign({}, resp.data), { CurrentProductionDate: moment$1.utc(resp.data.CurrentProductionDate).toDate(), CurrentStart: moment$1.utc(resp.data.CurrentStart).toDate(), CurrentEnd: moment$1.utc(resp.data.CurrentEnd).toDate(), PreviousProductionDate: moment$1.utc(resp.data.PreviousProductionDate).toDate(), PreviousStart: moment$1.utc(resp.data.PreviousStart).toDate(), PreviousEnd: moment$1.utc(resp.data.PreviousEnd).toDate(), LastProductionDate: moment$1.utc(resp.data.LastProductionDate).toDate(), LastStart: moment$1.utc(resp.data.LastStart).toDate(), LastEnd: moment$1.utc(resp.data.LastEnd).toDate() }));
|
|
7632
|
+
}
|
|
7633
|
+
_a.label = 2;
|
|
7634
|
+
case 2: return [2 /*return*/];
|
|
7635
|
+
}
|
|
7636
|
+
});
|
|
7637
|
+
}); };
|
|
7638
|
+
var getShiftDataFromAPI = function (productionDate, shiftId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7639
|
+
var resp, e_1;
|
|
7640
|
+
return __generator(this, function (_a) {
|
|
7641
|
+
switch (_a.label) {
|
|
7642
|
+
case 0:
|
|
7643
|
+
setIsShiftInfoLoading(true);
|
|
7644
|
+
_a.label = 1;
|
|
7645
|
+
case 1:
|
|
7646
|
+
_a.trys.push([1, 3, , 4]);
|
|
7647
|
+
return [4 /*yield*/, getShiftByParameters({
|
|
7648
|
+
productionDate: productionDate,
|
|
7649
|
+
shiftId: shiftId
|
|
7650
|
+
})];
|
|
7651
|
+
case 2:
|
|
7652
|
+
resp = _a.sent();
|
|
7653
|
+
if (resp.ok) {
|
|
7654
|
+
setShiftInfo(__assign(__assign({}, resp.data), { CurrentProductionDate: moment$1.utc(resp.data.CurrentProductionDate).toDate(), CurrentStart: moment$1.utc(resp.data.CurrentStart).toDate(), CurrentEnd: moment$1.utc(resp.data.CurrentEnd).toDate(), PreviousProductionDate: moment$1.utc(resp.data.PreviousProductionDate).toDate(), PreviousStart: moment$1.utc(resp.data.PreviousStart).toDate(), PreviousEnd: moment$1.utc(resp.data.PreviousEnd).toDate(), LastProductionDate: moment$1.utc(resp.data.LastProductionDate).toDate(), LastStart: moment$1.utc(resp.data.LastStart).toDate(), LastEnd: moment$1.utc(resp.data.LastEnd).toDate() }));
|
|
7655
|
+
}
|
|
7656
|
+
return [3 /*break*/, 4];
|
|
7657
|
+
case 3:
|
|
7658
|
+
e_1 = _a.sent();
|
|
7659
|
+
setError(e_1.toString());
|
|
7660
|
+
return [3 /*break*/, 4];
|
|
7661
|
+
case 4:
|
|
7662
|
+
setIsShiftInfoLoading(false);
|
|
7663
|
+
return [2 /*return*/];
|
|
7664
|
+
}
|
|
7665
|
+
});
|
|
7666
|
+
}); };
|
|
7667
|
+
var initShiftNavigator = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7668
|
+
var resp;
|
|
7669
|
+
return __generator(this, function (_a) {
|
|
7670
|
+
switch (_a.label) {
|
|
7671
|
+
case 0: return [4 /*yield*/, getShiftByParameters({
|
|
7672
|
+
productionDate: new Date(),
|
|
7673
|
+
shiftId: 0
|
|
7674
|
+
})];
|
|
7675
|
+
case 1:
|
|
7676
|
+
resp = _a.sent();
|
|
7677
|
+
if (resp.ok) {
|
|
7678
|
+
setShiftInfo(__assign(__assign({}, resp.data), { CurrentProductionDate: moment$1.utc(resp.data.CurrentProductionDate).toDate(), CurrentStart: moment$1.utc(resp.data.CurrentStart).toDate(), CurrentEnd: moment$1.utc(resp.data.CurrentEnd).toDate(), PreviousProductionDate: moment$1.utc(resp.data.PreviousProductionDate).toDate(), PreviousStart: moment$1.utc(resp.data.PreviousStart).toDate(), PreviousEnd: moment$1.utc(resp.data.PreviousEnd).toDate(), LastProductionDate: moment$1.utc(resp.data.LastProductionDate).toDate(), LastStart: moment$1.utc(resp.data.LastStart).toDate(), LastEnd: moment$1.utc(resp.data.LastEnd).toDate() }));
|
|
7679
|
+
}
|
|
7680
|
+
return [2 /*return*/];
|
|
7681
|
+
}
|
|
7682
|
+
});
|
|
7683
|
+
}); };
|
|
7684
|
+
return {
|
|
7685
|
+
shiftInfo: shiftInfo,
|
|
7686
|
+
moveShift: moveShift,
|
|
7687
|
+
getShiftDataFromAPI: getShiftDataFromAPI,
|
|
7688
|
+
initShiftNavigator: initShiftNavigator
|
|
7689
|
+
};
|
|
7690
|
+
};
|
|
7691
|
+
|
|
7692
|
+
var ShiftNavigatorContext = createContext({
|
|
7693
|
+
getShiftDataFromAPI: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7694
|
+
return __generator(this, function (_a) {
|
|
7695
|
+
return [2 /*return*/];
|
|
7696
|
+
});
|
|
7697
|
+
}); },
|
|
7698
|
+
initShiftNavigator: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7699
|
+
return __generator(this, function (_a) {
|
|
7700
|
+
return [2 /*return*/];
|
|
7701
|
+
});
|
|
7702
|
+
}); },
|
|
7703
|
+
moveShift: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
7704
|
+
return __generator(this, function (_a) {
|
|
7705
|
+
return [2 /*return*/];
|
|
7706
|
+
});
|
|
7707
|
+
}); },
|
|
7708
|
+
shiftInfo: {
|
|
7709
|
+
CurrentShiftId: 0,
|
|
7710
|
+
CurrentProductionDate: new Date(),
|
|
7711
|
+
CurrentProductionShift: 0,
|
|
7712
|
+
CurrentShift: '',
|
|
7713
|
+
CurrentCrew: '',
|
|
7714
|
+
CurrentStart: new Date(),
|
|
7715
|
+
CurrentEnd: new Date(),
|
|
7716
|
+
PreviousShiftId: 0,
|
|
7717
|
+
PreviousProductionDate: new Date(),
|
|
7718
|
+
PreviousProductionShift: 0,
|
|
7719
|
+
PreviousShift: '',
|
|
7720
|
+
PreviousCrew: '',
|
|
7721
|
+
PreviousStart: new Date(),
|
|
7722
|
+
PreviousEnd: new Date(),
|
|
7723
|
+
NextShiftId: null,
|
|
7724
|
+
NextProductionDate: null,
|
|
7725
|
+
NextProductionShift: null,
|
|
7726
|
+
NextShift: null,
|
|
7727
|
+
NextCrew: null,
|
|
7728
|
+
NextStart: null,
|
|
7729
|
+
NextEnd: null,
|
|
7730
|
+
LastShiftId: 0,
|
|
7731
|
+
LastProductionDate: new Date(),
|
|
7732
|
+
LastProductionShift: 0,
|
|
7733
|
+
LastShift: '',
|
|
7734
|
+
LastCrew: '',
|
|
7735
|
+
LastStart: new Date(),
|
|
7736
|
+
LastEnd: new Date()
|
|
7737
|
+
}
|
|
7738
|
+
});
|
|
7739
|
+
var useShiftNavigator = function () { return useContext(ShiftNavigatorContext); };
|
|
7740
|
+
var ShiftNavigatorProvider = function (_a) {
|
|
7741
|
+
var children = _a.children;
|
|
7742
|
+
var shiftNavigatorManager = useShiftNavigatorManager();
|
|
7743
|
+
return (React__default.createElement(ShiftNavigatorContext.Provider, { value: shiftNavigatorManager }, children));
|
|
7744
|
+
};
|
|
7745
|
+
|
|
7746
|
+
var moment = getMomentTz();
|
|
7747
|
+
var ShiftDayNavigatorControl = function (props) {
|
|
7748
|
+
var _a = useShiftNavigator(), shiftInfo = _a.shiftInfo, initShiftNavigator = _a.initShiftNavigator, moveShift = _a.moveShift, getShiftDataFromAPI = _a.getShiftDataFromAPI;
|
|
7749
|
+
var shiftId = useParams().shiftId;
|
|
7750
|
+
var firstRender = useRef(true);
|
|
7751
|
+
var updateHistory = function (shiftId) {
|
|
7752
|
+
var paths = location.pathname.split("/");
|
|
7753
|
+
window.history.replaceState(null, "", "/".concat(paths[1]) + "/".concat(shiftId));
|
|
7754
|
+
};
|
|
7755
|
+
if (shiftInfo !== null && shiftInfo.CurrentShiftId !== null) {
|
|
7756
|
+
updateHistory(shiftInfo.CurrentShiftId.toString());
|
|
7757
|
+
}
|
|
7758
|
+
useEffect(function () {
|
|
7759
|
+
if (firstRender.current) {
|
|
7760
|
+
firstRender.current = false;
|
|
7761
|
+
if (props.useRouter && shiftId) {
|
|
7762
|
+
getShiftDataFromAPI(null, Number(shiftId))
|
|
7763
|
+
.then(function () {
|
|
7764
|
+
props.onShiftChange && props.onShiftChange(Number(shiftId));
|
|
7765
|
+
});
|
|
7766
|
+
}
|
|
7767
|
+
else {
|
|
7768
|
+
initShiftNavigator()
|
|
7769
|
+
.then(function () {
|
|
7770
|
+
props.onShiftChange && props.onShiftChange(Number(shiftId));
|
|
7771
|
+
});
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
}, []);
|
|
7775
|
+
return (React__default.createElement(Paper, null,
|
|
7776
|
+
React__default.createElement(Grid, { item: true, container: true, style: { minWidth: '0%', margin: '1rem' }, direction: 'row', justifyContent: 'flex-start', alignItems: 'center', spacing: 1 },
|
|
7777
|
+
React__default.createElement(Grid, { item: true },
|
|
7778
|
+
React__default.createElement(Tooltip, { title: 'Previous Shift' },
|
|
7779
|
+
React__default.createElement(IconButton$1, { "aria-label": "Previous Shift", color: 'primary', disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.PreviousShiftId), onClick: function () {
|
|
7780
|
+
moveShift("Previous").then(function () {
|
|
7781
|
+
});
|
|
7782
|
+
}, size: "small" },
|
|
7783
|
+
React__default.createElement(ArrowBackRounded, null)))),
|
|
7784
|
+
React__default.createElement(Grid, { item: true },
|
|
7785
|
+
React__default.createElement(DatePicker, { label: "Current Date", timezone: TimeService.getInstance().getServerTimeZone(), format: "MM/DD/YYYY", closeOnSelect: true, formatDensity: 'dense', value: moment(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentProductionDate), onChange: function (date) {
|
|
7786
|
+
if (date) {
|
|
7787
|
+
getShiftDataFromAPI(date.toDate(), 0)
|
|
7788
|
+
.then(function () {
|
|
7789
|
+
});
|
|
7790
|
+
}
|
|
7791
|
+
}, slotProps: {
|
|
7792
|
+
textField: {
|
|
7793
|
+
variant: "outlined",
|
|
7794
|
+
size: "small",
|
|
7795
|
+
inputProps: {
|
|
7796
|
+
style: {
|
|
7797
|
+
fontSize: "small",
|
|
7798
|
+
minWidth: '110px',
|
|
7799
|
+
maxWidth: '110px'
|
|
7800
|
+
}
|
|
7801
|
+
}
|
|
7802
|
+
}
|
|
7803
|
+
} })),
|
|
7804
|
+
React__default.createElement(Grid, { item: true, style: { maxWidth: '100px' } },
|
|
7805
|
+
React__default.createElement(TextField, { label: 'Shift - Crew', value: "".concat((shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentShift) || "", " - ").concat((shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentCrew) || ""), placeholder: 'Shift', "aria-readonly": true, variant: "outlined", size: "small" })),
|
|
7806
|
+
React__default.createElement(Grid, { item: true },
|
|
7807
|
+
React__default.createElement(Tooltip, { title: 'Next Shift' },
|
|
7808
|
+
React__default.createElement(IconButton$1, { "aria-label": "next", color: 'primary', disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.NextShiftId), onClick: function () {
|
|
7809
|
+
moveShift("Next").then(function () {
|
|
7810
|
+
});
|
|
7811
|
+
}, size: "small" },
|
|
7812
|
+
React__default.createElement(ArrowForwardRounded, null)))),
|
|
7813
|
+
React__default.createElement(Grid, { item: true },
|
|
7814
|
+
React__default.createElement(Tooltip, { title: 'Last Shift' },
|
|
7815
|
+
React__default.createElement(IconButton$1, { "aria-label": "delete", color: 'primary', disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.LastShiftId), onClick: function () {
|
|
7816
|
+
moveShift("Last").then(function () {
|
|
7817
|
+
});
|
|
7818
|
+
}, size: "small" },
|
|
7819
|
+
React__default.createElement(SkipNext, null)))))));
|
|
7820
|
+
};
|
|
7821
|
+
|
|
7424
7822
|
function ChangePassword(props) {
|
|
7425
7823
|
var onClose = props.onClose, userId = props.userId, open = props.open;
|
|
7426
7824
|
//states
|
|
@@ -8168,12 +8566,12 @@ function Logout() {
|
|
|
8168
8566
|
React__default.createElement("div", null, "logging out!!!")));
|
|
8169
8567
|
}
|
|
8170
8568
|
|
|
8171
|
-
var RouterContext =
|
|
8172
|
-
var ConfigurationContext =
|
|
8569
|
+
var RouterContext = createContext(function () { return React__default.createElement(React__default.Fragment, null); });
|
|
8570
|
+
var ConfigurationContext = createContext([
|
|
8173
8571
|
[],
|
|
8174
8572
|
function () { return React__default.createElement(React__default.Fragment, null); },
|
|
8175
8573
|
]);
|
|
8176
|
-
var NavbarContext =
|
|
8574
|
+
var NavbarContext = createContext(function () { return React__default.createElement(React__default.Fragment, null); });
|
|
8177
8575
|
|
|
8178
8576
|
var useSearchAssets = function (setError) {
|
|
8179
8577
|
var _a = useAssetContext().actions, setAllAssets = _a.setAllAssets, setAreasList = _a.setAreasList;
|
|
@@ -8320,7 +8718,7 @@ function Header$1(_a) {
|
|
|
8320
8718
|
React__default.createElement(Nav, { className: "ml-auto", style: { alignItems: "baseline" } },
|
|
8321
8719
|
showTrendingsIcon ? (React__default.createElement(Nav, { className: "mx-2" },
|
|
8322
8720
|
React__default.createElement(Nav.Link, { as: Link, to: "/trendings" },
|
|
8323
|
-
React__default.createElement(Tooltip, { title: 'Trendings', placement: "top", arrow: true, interactive: true, enterDelay: 1500 },
|
|
8721
|
+
React__default.createElement(Tooltip$1, { title: 'Trendings', placement: "top", arrow: true, interactive: true, enterDelay: 1500 },
|
|
8324
8722
|
React__default.createElement(ShowChartIcon, null))))) : null,
|
|
8325
8723
|
React__default.createElement(Nav, null,
|
|
8326
8724
|
React__default.createElement("span", { className: "navbar-text" }, dxtToLocalServerTime(date, 'HH:mm:ss z'))),
|
|
@@ -8415,7 +8813,7 @@ var Home = function () { return (React__default.createElement("div", { style: {
|
|
|
8415
8813
|
} })); };
|
|
8416
8814
|
|
|
8417
8815
|
var TrendingsInitialState = {
|
|
8418
|
-
timeScopeStart: moment(new Date()).subtract(1, "days").toDate(),
|
|
8816
|
+
timeScopeStart: moment$2(new Date()).subtract(1, "days").toDate(),
|
|
8419
8817
|
timeScopeEnd: new Date(),
|
|
8420
8818
|
scope: "1 day",
|
|
8421
8819
|
graphPan: false,
|
|
@@ -8453,32 +8851,32 @@ var TrendingsReducer = createSlice({
|
|
|
8453
8851
|
if (payload.scope !== "custom") {
|
|
8454
8852
|
switch (payload.scope) {
|
|
8455
8853
|
case "10 min":
|
|
8456
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8854
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8457
8855
|
.subtract(10, "minutes")
|
|
8458
8856
|
.toDate();
|
|
8459
8857
|
break;
|
|
8460
8858
|
case "1 hour":
|
|
8461
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8859
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8462
8860
|
.subtract(1, "hours")
|
|
8463
8861
|
.toDate();
|
|
8464
8862
|
break;
|
|
8465
8863
|
case "4 hours":
|
|
8466
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8864
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8467
8865
|
.subtract(4, "hours")
|
|
8468
8866
|
.toDate();
|
|
8469
8867
|
break;
|
|
8470
8868
|
case "12 hours":
|
|
8471
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8869
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8472
8870
|
.subtract(12, "hours")
|
|
8473
8871
|
.toDate();
|
|
8474
8872
|
break;
|
|
8475
8873
|
case "1 day":
|
|
8476
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8874
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8477
8875
|
.subtract(1, "days")
|
|
8478
8876
|
.toDate();
|
|
8479
8877
|
break;
|
|
8480
8878
|
case "10 days":
|
|
8481
|
-
state.timeScopeStart = moment(state.timeScopeEnd)
|
|
8879
|
+
state.timeScopeStart = moment$2(state.timeScopeEnd)
|
|
8482
8880
|
.subtract(10, "days")
|
|
8483
8881
|
.toDate();
|
|
8484
8882
|
break;
|
|
@@ -8505,32 +8903,32 @@ var TrendingsReducer = createSlice({
|
|
|
8505
8903
|
if (state.scope !== "custom") {
|
|
8506
8904
|
switch (state.scope) {
|
|
8507
8905
|
case "10 min":
|
|
8508
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8906
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8509
8907
|
.add(10, "minutes")
|
|
8510
8908
|
.toDate();
|
|
8511
8909
|
break;
|
|
8512
8910
|
case "1 hour":
|
|
8513
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8911
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8514
8912
|
.add(1, "hours")
|
|
8515
8913
|
.toDate();
|
|
8516
8914
|
break;
|
|
8517
8915
|
case "4 hours":
|
|
8518
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8916
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8519
8917
|
.add(4, "hours")
|
|
8520
8918
|
.toDate();
|
|
8521
8919
|
break;
|
|
8522
8920
|
case "12 hours":
|
|
8523
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8921
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8524
8922
|
.add(12, "hours")
|
|
8525
8923
|
.toDate();
|
|
8526
8924
|
break;
|
|
8527
8925
|
case "1 day":
|
|
8528
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8926
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8529
8927
|
.add(1, "days")
|
|
8530
8928
|
.toDate();
|
|
8531
8929
|
break;
|
|
8532
8930
|
case "10 days":
|
|
8533
|
-
state.timeScopeEnd = moment(payload.start)
|
|
8931
|
+
state.timeScopeEnd = moment$2(payload.start)
|
|
8534
8932
|
.add(10, "days")
|
|
8535
8933
|
.toDate();
|
|
8536
8934
|
break;
|
|
@@ -8543,32 +8941,32 @@ var TrendingsReducer = createSlice({
|
|
|
8543
8941
|
if (state.scope !== "custom") {
|
|
8544
8942
|
switch (state.scope) {
|
|
8545
8943
|
case "10 min":
|
|
8546
|
-
state.timeScopeStart = moment(payload.end)
|
|
8944
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8547
8945
|
.subtract(10, "minutes")
|
|
8548
8946
|
.toDate();
|
|
8549
8947
|
break;
|
|
8550
8948
|
case "1 hour":
|
|
8551
|
-
state.timeScopeStart = moment(payload.end)
|
|
8949
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8552
8950
|
.subtract(1, "hours")
|
|
8553
8951
|
.toDate();
|
|
8554
8952
|
break;
|
|
8555
8953
|
case "4 hours":
|
|
8556
|
-
state.timeScopeStart = moment(payload.end)
|
|
8954
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8557
8955
|
.subtract(4, "hours")
|
|
8558
8956
|
.toDate();
|
|
8559
8957
|
break;
|
|
8560
8958
|
case "12 hours":
|
|
8561
|
-
state.timeScopeStart = moment(payload.end)
|
|
8959
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8562
8960
|
.subtract(12, "hours")
|
|
8563
8961
|
.toDate();
|
|
8564
8962
|
break;
|
|
8565
8963
|
case "1 day":
|
|
8566
|
-
state.timeScopeStart = moment(payload.end)
|
|
8964
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8567
8965
|
.subtract(1, "days")
|
|
8568
8966
|
.toDate();
|
|
8569
8967
|
break;
|
|
8570
8968
|
case "10 days":
|
|
8571
|
-
state.timeScopeStart = moment(payload.end)
|
|
8969
|
+
state.timeScopeStart = moment$2(payload.end)
|
|
8572
8970
|
.subtract(10, "days")
|
|
8573
8971
|
.toDate();
|
|
8574
8972
|
break;
|
|
@@ -8640,7 +9038,7 @@ const FORMATS = {
|
|
|
8640
9038
|
year: 'YYYY'
|
|
8641
9039
|
};
|
|
8642
9040
|
|
|
8643
|
-
_adapters._date.override(typeof moment === 'function' ? {
|
|
9041
|
+
_adapters._date.override(typeof moment$2 === 'function' ? {
|
|
8644
9042
|
_id: 'moment', // DEBUG ONLY
|
|
8645
9043
|
|
|
8646
9044
|
formats: function() {
|
|
@@ -8649,27 +9047,27 @@ _adapters._date.override(typeof moment === 'function' ? {
|
|
|
8649
9047
|
|
|
8650
9048
|
parse: function(value, format) {
|
|
8651
9049
|
if (typeof value === 'string' && typeof format === 'string') {
|
|
8652
|
-
value = moment(value, format);
|
|
8653
|
-
} else if (!(value instanceof moment)) {
|
|
8654
|
-
value = moment(value);
|
|
9050
|
+
value = moment$2(value, format);
|
|
9051
|
+
} else if (!(value instanceof moment$2)) {
|
|
9052
|
+
value = moment$2(value);
|
|
8655
9053
|
}
|
|
8656
9054
|
return value.isValid() ? value.valueOf() : null;
|
|
8657
9055
|
},
|
|
8658
9056
|
|
|
8659
9057
|
format: function(time, format) {
|
|
8660
|
-
return moment(time).format(format);
|
|
9058
|
+
return moment$2(time).format(format);
|
|
8661
9059
|
},
|
|
8662
9060
|
|
|
8663
9061
|
add: function(time, amount, unit) {
|
|
8664
|
-
return moment(time).add(amount, unit).valueOf();
|
|
9062
|
+
return moment$2(time).add(amount, unit).valueOf();
|
|
8665
9063
|
},
|
|
8666
9064
|
|
|
8667
9065
|
diff: function(max, min, unit) {
|
|
8668
|
-
return moment(max).diff(moment(min), unit);
|
|
9066
|
+
return moment$2(max).diff(moment$2(min), unit);
|
|
8669
9067
|
},
|
|
8670
9068
|
|
|
8671
9069
|
startOf: function(time, unit, weekday) {
|
|
8672
|
-
time = moment(time);
|
|
9070
|
+
time = moment$2(time);
|
|
8673
9071
|
if (unit === 'isoWeek') {
|
|
8674
9072
|
weekday = Math.trunc(Math.min(Math.max(0, weekday), 6));
|
|
8675
9073
|
return time.isoWeekday(weekday).startOf('day').valueOf();
|
|
@@ -8678,7 +9076,7 @@ _adapters._date.override(typeof moment === 'function' ? {
|
|
|
8678
9076
|
},
|
|
8679
9077
|
|
|
8680
9078
|
endOf: function(time, unit) {
|
|
8681
|
-
return moment(time).endOf(unit).valueOf();
|
|
9079
|
+
return moment$2(time).endOf(unit).valueOf();
|
|
8682
9080
|
}
|
|
8683
9081
|
} : {});
|
|
8684
9082
|
|
|
@@ -9285,7 +9683,7 @@ var LoadViewModal = function (_a) {
|
|
|
9285
9683
|
React__default.createElement("div", { className: classes.iconContainer },
|
|
9286
9684
|
option.IsPublic ? '' :
|
|
9287
9685
|
React__default.createElement(React__default.Fragment, null,
|
|
9288
|
-
React__default.createElement(Tooltip, { title: "Private", arrow: true },
|
|
9686
|
+
React__default.createElement(Tooltip$1, { title: "Private", arrow: true },
|
|
9289
9687
|
React__default.createElement(LockIcon, { fontSize: 'small', style: { color: 'black', height: "18px", width: '18px', cursor: 'auto' } }))),
|
|
9290
9688
|
React__default.createElement(IconButton$1, { onClick: function (e) { return handleEditView(option); } },
|
|
9291
9689
|
React__default.createElement(CreateIcon, { fontSize: 'small', color: 'primary', style: { height: "18px", width: '18px', cursor: 'pointer' } })),
|
|
@@ -9567,7 +9965,7 @@ var TagFolderCustomNode = function (_a) {
|
|
|
9567
9965
|
backgroundColor: ((_f = node.data) === null || _f === void 0 ? void 0 : _f.TagTypeCode) === 'A' ? "#AD48C4" : "#C46F48",
|
|
9568
9966
|
margin: "0 5px"
|
|
9569
9967
|
} }, (_g = node.data) === null || _g === void 0 ? void 0 : _g.TagTypeCode)),
|
|
9570
|
-
React__default.createElement(Tooltip, { title: node.data.TagName, placement: "top", arrow: true },
|
|
9968
|
+
React__default.createElement(Tooltip$1, { title: node.data.TagName, placement: "top", arrow: true },
|
|
9571
9969
|
React__default.createElement(Typography, { variant: "body2" }, ((_h = node.data) === null || _h === void 0 ? void 0 : _h.Alias) || ((_j = node.data) === null || _j === void 0 ? void 0 : _j.TagName))))));
|
|
9572
9970
|
};
|
|
9573
9971
|
|
|
@@ -10374,7 +10772,7 @@ var TableComponent = function (_a) {
|
|
|
10374
10772
|
React__default.createElement("td", { className: "".concat(classes.visible, " ").concat(classes.checkbox) },
|
|
10375
10773
|
React__default.createElement("input", { type: "checkbox", checked: tag.IsVisible, onChange: function (e) { return handleVisibilityChange(tag.TagId, e.target.checked); } })),
|
|
10376
10774
|
React__default.createElement("td", { className: classes.aliasCol },
|
|
10377
|
-
React__default.createElement(Tooltip, { title: tag.TagName, placement: "top", arrow: true, interactive: true, enterDelay: 500 },
|
|
10775
|
+
React__default.createElement(Tooltip$1, { title: tag.TagName, placement: "top", arrow: true, interactive: true, enterDelay: 500 },
|
|
10378
10776
|
React__default.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
|
|
10379
10777
|
tag.TagType &&
|
|
10380
10778
|
(React__default.createElement("div", { className: classes.dataType, style: { backgroundColor: tag.TagType === "A" ? "#AD48C4" : "#C46F48" } }, tag.TagType)),
|
|
@@ -10590,18 +10988,18 @@ var dateNavigator = function (startDate, endDate, scope, operator, current) {
|
|
|
10590
10988
|
}
|
|
10591
10989
|
else {
|
|
10592
10990
|
var _a = scope.split(" "), quantity = _a[0], duration = _a[1];
|
|
10593
|
-
newStartDate = moment(newEndDate).subtract(quantity, duration[0]).toDate();
|
|
10991
|
+
newStartDate = moment$2(newEndDate).subtract(quantity, duration[0]).toDate();
|
|
10594
10992
|
}
|
|
10595
10993
|
}
|
|
10596
10994
|
else {
|
|
10597
10995
|
if (scope === "custom") {
|
|
10598
|
-
var durationInMs = moment(endDate).diff(moment(startDate));
|
|
10599
|
-
newStartDate = moment(startDate)[operator](durationInMs).toDate();
|
|
10996
|
+
var durationInMs = moment$2(endDate).diff(moment$2(startDate));
|
|
10997
|
+
newStartDate = moment$2(startDate)[operator](durationInMs).toDate();
|
|
10600
10998
|
}
|
|
10601
10999
|
else {
|
|
10602
11000
|
var _b = scope.split(" "), quantity = _b[0], duration = _b[1];
|
|
10603
|
-
newStartDate = moment(startDate)[operator](quantity, duration[0]).toDate();
|
|
10604
|
-
newEndDate = moment(endDate)[operator](quantity, duration[0]).toDate();
|
|
11001
|
+
newStartDate = moment$2(startDate)[operator](quantity, duration[0]).toDate();
|
|
11002
|
+
newEndDate = moment$2(endDate)[operator](quantity, duration[0]).toDate();
|
|
10605
11003
|
}
|
|
10606
11004
|
}
|
|
10607
11005
|
return { newStartDate: newStartDate, newEndDate: newEndDate };
|
|
@@ -10625,7 +11023,7 @@ var Header = function (_a) {
|
|
|
10625
11023
|
var handleDateChange = function (newValue, key) {
|
|
10626
11024
|
var _a;
|
|
10627
11025
|
//@ts-ignore
|
|
10628
|
-
actions.setTotalScope((_a = {}, _a[key] = moment(newValue).toDate(), _a));
|
|
11026
|
+
actions.setTotalScope((_a = {}, _a[key] = moment$2(newValue).toDate(), _a));
|
|
10629
11027
|
};
|
|
10630
11028
|
var handleChangeScope = function (e) {
|
|
10631
11029
|
var newScope = e.target.value;
|
|
@@ -10661,7 +11059,7 @@ var Header = function (_a) {
|
|
|
10661
11059
|
React__default.createElement(IconButton$1, { color: "primary", onClick: function () { return handleDateNavigator("subtract"); }, className: classes.navigatorButton },
|
|
10662
11060
|
React__default.createElement(ChevronLeft, { fontSize: "large" }))),
|
|
10663
11061
|
React__default.createElement(Grid$1, { item: true },
|
|
10664
|
-
React__default.createElement(TextField, { type: "datetime-local", className: classes.datetimePicker, label: "Start", variant: "outlined", value: moment(state.timeScopeStart).format("YYYY-MM-DDTHH:mm:ss"), onChange: function (e) { return handleDateChange(e.target.value, "start"); }, InputLabelProps: {
|
|
11062
|
+
React__default.createElement(TextField, { type: "datetime-local", className: classes.datetimePicker, label: "Start", variant: "outlined", value: moment$2(state.timeScopeStart).format("YYYY-MM-DDTHH:mm:ss"), onChange: function (e) { return handleDateChange(e.target.value, "start"); }, InputLabelProps: {
|
|
10665
11063
|
shrink: true,
|
|
10666
11064
|
style: { marginLeft: "10px" }
|
|
10667
11065
|
}, InputProps: {
|
|
@@ -10678,7 +11076,7 @@ var Header = function (_a) {
|
|
|
10678
11076
|
React__default.createElement(MenuItem$1, { value: "10 days" }, "10 days"),
|
|
10679
11077
|
React__default.createElement(MenuItem$1, { value: "custom" }, "Custom")))),
|
|
10680
11078
|
React__default.createElement(Grid$1, { item: true },
|
|
10681
|
-
React__default.createElement(TextField, { label: "End", variant: "outlined", className: classes.datetimePicker, type: "datetime-local", value: moment(state.timeScopeEnd).format("YYYY-MM-DDTHH:mm:ss"), onChange: function (e) { return handleDateChange(e.target.value, "end"); }, InputLabelProps: {
|
|
11079
|
+
React__default.createElement(TextField, { label: "End", variant: "outlined", className: classes.datetimePicker, type: "datetime-local", value: moment$2(state.timeScopeEnd).format("YYYY-MM-DDTHH:mm:ss"), onChange: function (e) { return handleDateChange(e.target.value, "end"); }, InputLabelProps: {
|
|
10682
11080
|
shrink: true,
|
|
10683
11081
|
style: { marginLeft: "10px" }
|
|
10684
11082
|
} })),
|
|
@@ -11014,7 +11412,7 @@ var TrendingChart = function (_a) {
|
|
|
11014
11412
|
React__default.createElement(Line, { ref: chartRef, data: chartData, options: chartOptions, plugins: [verticalLinePlugin, xAxisDatePlugin, yAxisPlugin] })));
|
|
11015
11413
|
};
|
|
11016
11414
|
|
|
11017
|
-
Chart.register(CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip$
|
|
11415
|
+
Chart.register(CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip$2, Legend, TimeScale, zoomPlugin);
|
|
11018
11416
|
var Trending = function (_a) {
|
|
11019
11417
|
_a.title; var getTagsFromAPI = _a.getTagsFromAPI;
|
|
11020
11418
|
var _b = useTrendingContext(), state = _b.state, _c = _b.state, viewTags = _c.viewTags, shouldRefetchSeries = _c.shouldRefetchSeries;
|
|
@@ -11224,7 +11622,7 @@ var MESFMainRouter = function () {
|
|
|
11224
11622
|
React__default.createElement(Route, { path: "/account", element: React__default.createElement(Account, null) }),
|
|
11225
11623
|
React__default.createElement(Route, { path: "/trendings", element: React__default.createElement(index, null) }),
|
|
11226
11624
|
React__default.createElement(Route, { path: "/home", element: React__default.createElement(Home, null) })),
|
|
11227
|
-
|
|
11625
|
+
CustomRoutes));
|
|
11228
11626
|
};
|
|
11229
11627
|
|
|
11230
11628
|
var MESFMainContainer = function () { return (React__default.createElement("div", { id: "mainSection", className: "container-fluid container-fluid-main" },
|
|
@@ -11254,20 +11652,24 @@ var Navigation = function (_a) {
|
|
|
11254
11652
|
var css = "body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-color: #fafbfc !important;\n}\n.container-fluid-main{\n padding-right: 0px !important; \n padding-left: 0px !important;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n.mes-primary-color {\n background-color: #479dc4 !important;\n}\n.mes-button-primary{\n background-color: #479dc4 !important;\n border-color: #479dc4 !important;\n}\n\n.mes-selectable-datagrid .MuiDataGrid-row{\n cursor: pointer;\n}\n\n.mes-menu-top .navbar-brand{\n color: #FFFF !important;\n}\n.mes-menu-top .nav-link {\n color: #FFFF !important;\n}\n.mes-menu-top .navbar-toggler {\n color: #FFFF !important;\n}\n.mes-menu-top .navbar-text {\n color: #FFFF !important;\n}\n.mes-footer-login{\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 10em;\n line-height: 60px;\n text-align:center;\n}\n.mes-filter-datepicker{\n padding: unset !important;\n border-top-left-radius: 0 !important;\n border-bottom-left-radius: 0 !important;\n padding-top: 0.375rem !important;\n padding-bottom: 0.375rem !important;\n padding-left: 0.75rem !important;\n cursor: pointer !important;\n max-width: 120px;\n}\n.mes-filter-datetimepicker{\n max-width: 97px;\n}\n.mes-not-rounded{\n border-radius: unset !important;\n}\n\n.mes-numeric{\n text-align: right;\n}\n.mes-drag-over{\n border: 3px dotted #666;\n background-color: #479dc4 !important;\n}\n.mes-drag-start{\n border: 3px solid #666;\n}\n\n.mes-selectable{\n cursor: pointer !important;\n}\n\n.mes-custom-select{\n width: auto !important;\n padding: 0.375rem 0 0.375rem 0 !important;\n background: unset !important;\n font-family: inherit !important;\n}\n.mes-custom-select .MuiSelect-select{\n padding-left: 14px;\n}\n\n.mes-custom-select::before{\n border-bottom: unset !important;\n}\n.mes-custom-select::after{\n border-bottom: unset !important;\n}\n.mes-no-border{\n border: unset;\n}\n.mes-no-border:focus-visible {\n outline: unset;\n}\n.mes-div-submenu{\n border-right: 1px solid #cfdbe2;\n overflow-y: scroll;\n max-height: 80vh;\n}\n.mes-submenu a{\n width: 100% !important;\n /* color: rgba(0, 0, 0, 0.87); */\n color: #479dc4\n}\n.mes-submenu .Mui-selected{\n border-right: 3px solid #479dc4; \n}\n.mes-menu-group{\n font-size: 20px;\n line-height: 1.1;\n color: #929292; \n font-weight: normal; \n}\n\n/********************MUI DATAGRID*****************************/\n.Mui-selected{\n font-weight: bolder !important;\n opacity: 1 !important;\n}\n\n.mes-upload-control{\n\n}\n.mes-upload-control .file-box{\n /* border : 1px solid black; */\n height : 100px;\n position: relative; \n}\n.mes-upload-control .file-detail{\n position: absolute;\n left: 0px;\n top: 0px; \n z-index: 1;\n height: 100%;\n width: 100%;\n}\n\n.mes-upload-control input[type=file]{\n left: 0px;\n top: 0px;\n opacity: 0;\n z-index: 10000;\n height: 100%;\n cursor: pointer;\n}\n.mes-upload-control table{\n width: 100%;\n}\n.mes-upload-control td{\n font-size: 0.8rem !important;\n max-width:0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;\n}\n\n\n.input-group-text{\n background-color: #ced2cc !important;\n /* border: 1px solid #ced4da !important; */\n /* color: #000000 !important; */\n}\n\n\n\n\n.content-wrapper {\n padding: 15px;\n width: 100%;\n border-top: 1px solid rgba(0, 0, 0, 0.15);\n margin-top: -1px;\n}\n.content-wrapper > .unwrap {\n margin: -15px;\n}\n@media only screen and (min-width: 768px) {\n .content-wrapper > .unwrap {\n margin: -20px;\n }\n}\n.content-wrapper > h3,\n.content-wrapper > .content-heading {\n font-size: 24px;\n line-height: 1.1;\n color: #929292;\n margin: -15px;\n margin-bottom: 20px;\n padding: 15px;\n font-weight: normal;\n background-color: #fafbfc;\n border-bottom: 1px solid #cfdbe2;\n}\n.content-wrapper > h3 > small,\n.content-wrapper > .content-heading > small {\n display: block;\n font-size: 12px;\n color: #909fa7;\n}\n.content-wrapper > button,\n.content-wrapper > .btn {\n margin: 10px 10px 0 0;\n}\n.content-wrapper .container,\n.content-wrapper .container-fluid {\n padding-left: 0;\n padding-right: 0;\n}\n@media only screen and (min-width: 768px) {\n .content-wrapper {\n padding: 20px;\n }\n .content-wrapper > h3,\n .content-wrapper > .content-heading {\n margin: -20px;\n margin-bottom: 5px;\n padding: 15px;\n }\n .content-wrapper > button,\n .content-wrapper > .btn {\n margin: 0;\n }\n}\n\n @media print {\n .sidebar,\n .topnavbar,\n .offsidebar,\n .btn {\n display: none !important;\n width: 0 !important;\n height: 0 !important;\n }\n .wrapper,\n .wrapper > section,\n .content-wrapper {\n margin: 0 !important;\n /* remove margin used for sidebar and expand the content */\n padding: 0 !important;\n width: 100% !important;\n }\n .content-wrapper {\n overflow: hidden !important;\n }\n }\n ";
|
|
11255
11653
|
n(css,{});
|
|
11256
11654
|
|
|
11655
|
+
var timezone = TimeService.getInstance().getServerTimeZone();
|
|
11656
|
+
moment$3.tz.setDefault(timezone);
|
|
11257
11657
|
var base = document.getElementsByTagName("base")[0].getAttribute("href") || "/";
|
|
11258
11658
|
function MESFMain(_a) {
|
|
11259
11659
|
var authentication = _a.authentication, routes = _a.routes, navbar = _a.navbar, _b = _a.navbarTitle, navbarTitle = _b === void 0 ? "MESF" : _b, configurations = _a.configurations, _c = _a.showAreaSelector, showAreaSelector = _c === void 0 ? false : _c, _d = _a.showTrendingsIcon, showTrendingsIcon = _d === void 0 ? true : _d;
|
|
11260
11660
|
return (React__default.createElement(AuthProvider, { authConfig: authentication },
|
|
11261
|
-
React__default.createElement(
|
|
11262
|
-
React__default.createElement(
|
|
11263
|
-
React__default.createElement(
|
|
11264
|
-
React__default.createElement(
|
|
11265
|
-
React__default.createElement(
|
|
11266
|
-
React__default.createElement(
|
|
11267
|
-
React__default.createElement(
|
|
11268
|
-
React__default.createElement(
|
|
11269
|
-
React__default.createElement(
|
|
11270
|
-
|
|
11661
|
+
React__default.createElement(LocalizationProvider, { dateAdapter: AdapterMoment, dateLibInstance: moment$3 },
|
|
11662
|
+
React__default.createElement(UserProvider, null,
|
|
11663
|
+
React__default.createElement(AssetProvider, null,
|
|
11664
|
+
React__default.createElement(UTLSettingsProvider, null,
|
|
11665
|
+
React__default.createElement(RouterContext.Provider, { value: routes },
|
|
11666
|
+
React__default.createElement(NavbarContext.Provider, { value: navbar },
|
|
11667
|
+
React__default.createElement(ConfigurationContext.Provider, { value: configurations },
|
|
11668
|
+
React__default.createElement(ShiftNavigatorProvider, null,
|
|
11669
|
+
React__default.createElement(BrowserRouter, { basename: base },
|
|
11670
|
+
React__default.createElement(Routes, null,
|
|
11671
|
+
React__default.createElement(Route, { path: "/logout", element: React__default.createElement(Logout, null) })),
|
|
11672
|
+
React__default.createElement(Navigation, { showAreaSelector: showAreaSelector, showTrendingsIcon: showTrendingsIcon, navbarTitle: navbarTitle }))))))))))));
|
|
11271
11673
|
}
|
|
11272
11674
|
|
|
11273
11675
|
var useDefaultAreaId = function (setError) {
|
|
@@ -11409,5 +11811,5 @@ var areaSelector = /*#__PURE__*/Object.freeze({
|
|
|
11409
11811
|
AreaSelector: AreaSelector
|
|
11410
11812
|
});
|
|
11411
11813
|
|
|
11412
|
-
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HorizontalTextControl, IntegerFormatter, Login, Logout, LongFilterPanel, MESApiService, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, NumericTextControl, SimplePasswordControl, SimpleSelectorControl, SimpleTextAreaControl, SimpleTextControl, TimeFormatter, TimeService, TreePickerControl, TrendingsPage, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, deleteUser, dxtServerTimeZone, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getMomentTz, getProfiles, getShiftStyle, getTokenFromLS, getUsers, renewToken, setPassword, setProfilesToUser, upsertUser, useAssetContext, useToken, useUTLSettingsContext, useUserContext };
|
|
11814
|
+
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HorizontalTextControl, IntegerFormatter, Login, Logout, LongFilterPanel, MESApiService, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, NumericTextControl, ShiftDayNavigatorControl, ShiftNavigatorProvider, SimplePasswordControl, SimpleSelectorControl, SimpleTextAreaControl, SimpleTextControl, TimeFormatter, TimeService, TreePickerControl, TrendingsPage, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, deleteUser, dxtServerTimeZone, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getMomentTz, getProfiles, getShiftByParameters, getShiftStyle, getTokenFromLS, getUsers, renewToken, setPassword, setProfilesToUser, upsertUser, useAssetContext, useShiftNavigator, useShiftNavigatorManager, useToken, useUTLSettingsContext, useUserContext };
|
|
11413
11815
|
//# sourceMappingURL=index.esm.js.map
|