@dexteel/mesf-core 4.3.0 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,8 +15,8 @@ interface MESFModalProps {
|
|
|
15
15
|
title?: string;
|
|
16
16
|
}
|
|
17
17
|
declare function Modal({ children, title, handleClose, open, id, maxWidth }: MESFModalProps): React.JSX.Element;
|
|
18
|
-
declare const
|
|
18
|
+
export declare const MesfModal: typeof Modal & {
|
|
19
19
|
Content: React.ComponentType<Pick<import("@material-ui/core/DialogContent").DialogContentProps, "color" | "content" | "translate" | "hidden" | "style" | "id" | "children" | "ref" | "slot" | "title" | "dividers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef"> & import("@material-ui/core/styles").StyledComponentProps<"root">>;
|
|
20
20
|
Actions: React.ComponentType<Pick<import("@material-ui/core/DialogActions").DialogActionsProps, "color" | "content" | "translate" | "hidden" | "style" | "id" | "children" | "ref" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "disableSpacing"> & import("@material-ui/core/styles").StyledComponentProps<"root">>;
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default MesfModal;
|
|
@@ -5,8 +5,6 @@ import { Action } from '../../../models/Action';
|
|
|
5
5
|
interface Props {
|
|
6
6
|
actionsOfProfile: Action[];
|
|
7
7
|
onSelectionChanged: Function;
|
|
8
|
-
profileName: string;
|
|
9
|
-
setProfileName: (profileName: string) => void;
|
|
10
8
|
}
|
|
11
|
-
export declare const DataTable: ({ actionsOfProfile, onSelectionChanged
|
|
9
|
+
export declare const DataTable: ({ actionsOfProfile, onSelectionChanged }: Props) => React.JSX.Element;
|
|
12
10
|
export {};
|
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Typography, TextField, makeStyles as makeStyles$1, Button as Button$1,
|
|
|
2
2
|
import { values, get, isNil as isNil$1, isEmpty } from 'lodash-es';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useEffect, Component, createContext, useContext, useMemo, useCallback, lazy, Suspense } from 'react';
|
|
5
|
-
import { Alert as Alert$1, Modal as Modal$
|
|
5
|
+
import { Alert as Alert$1, Modal as Modal$1, Navbar, Container, Nav, NavDropdown } from 'react-bootstrap';
|
|
6
6
|
import DialogTitle$1 from '@material-ui/core/DialogTitle';
|
|
7
7
|
import DialogContent$1 from '@material-ui/core/DialogContent';
|
|
8
8
|
import DialogActions$1 from '@material-ui/core/DialogActions';
|
|
@@ -1053,7 +1053,7 @@ var useJobsTableData = function (_a) {
|
|
|
1053
1053
|
var renderButtonDisable = function (params) {
|
|
1054
1054
|
var isDisabled = (!params.data.Enabled) || (blockButtons);
|
|
1055
1055
|
return (React__default.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", height: "100%", padding: 5 } },
|
|
1056
|
-
React__default.createElement(Button$1, { style: { height: "100%", maxHeight: "27px" }, variant: "contained", fullWidth: true, color: "secondary", onClick: function () { setRowSelected(params.data); }, disabled: isDisabled }, "
|
|
1056
|
+
React__default.createElement(Button$1, { style: { height: "100%", maxHeight: "27px" }, variant: "contained", fullWidth: true, color: "secondary", onClick: function () { setRowSelected(params.data); }, disabled: isDisabled }, "DISABLE")));
|
|
1057
1057
|
};
|
|
1058
1058
|
var renderButtonReset = function (params) {
|
|
1059
1059
|
var isDisabled = (!params.data.Enabled) || (blockButtons);
|
|
@@ -1144,17 +1144,17 @@ function Modal(_a) {
|
|
|
1144
1144
|
React__default.createElement(DialogTitle, { id: id, onClose: function () { return handleClose(); } }, title),
|
|
1145
1145
|
children));
|
|
1146
1146
|
}
|
|
1147
|
-
var
|
|
1147
|
+
var MesfModal = Object.assign(Modal, {
|
|
1148
1148
|
Content: DialogContent,
|
|
1149
1149
|
Actions: DialogActions
|
|
1150
1150
|
});
|
|
1151
1151
|
|
|
1152
1152
|
var ErrorModal = function (_a) {
|
|
1153
1153
|
var error = _a.error, onHide = _a.onHide, _b = _a.title, title = _b === void 0 ? "Something went wrong!" : _b, _c = _a.size, size = _c === void 0 ? "sm" : _c;
|
|
1154
|
-
return (!!error ? (React__default.createElement(
|
|
1155
|
-
React__default.createElement(
|
|
1154
|
+
return (!!error ? (React__default.createElement(MesfModal, { open: true, handleClose: function () { onHide(); }, title: title, maxWidth: size },
|
|
1155
|
+
React__default.createElement(MesfModal.Content, null,
|
|
1156
1156
|
React__default.createElement("div", null, error)),
|
|
1157
|
-
React__default.createElement(
|
|
1157
|
+
React__default.createElement(MesfModal.Actions, null,
|
|
1158
1158
|
React__default.createElement(Grid$1, { container: true, spacing: 2, justifyContent: "flex-end", style: { padding: "1rem" } },
|
|
1159
1159
|
React__default.createElement(Grid$1, { item: true, md: 2, xs: 12 },
|
|
1160
1160
|
React__default.createElement(Button$1, { fullWidth: true, variant: "contained", color: "default", onClick: function () {
|
|
@@ -1693,10 +1693,10 @@ var ModalLogSelected = function (_a) {
|
|
|
1693
1693
|
var show = _a.show, onHide = _a.onHide, selectedLog = _a.selectedLog;
|
|
1694
1694
|
var classes = useStyles$p();
|
|
1695
1695
|
return (React__default.createElement(Grid, { container: true, justifyContent: "center", alignItems: "center" },
|
|
1696
|
-
React__default.createElement(Modal$
|
|
1697
|
-
React__default.createElement(Modal$
|
|
1698
|
-
React__default.createElement(Modal$
|
|
1699
|
-
React__default.createElement(Modal$
|
|
1696
|
+
React__default.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
1697
|
+
React__default.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
1698
|
+
React__default.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "LOG DETAILS")),
|
|
1699
|
+
React__default.createElement(Modal$1.Body, { style: { padding: "15px 30px" } },
|
|
1700
1700
|
React__default.createElement(Grid, { container: true, spacing: 1, alignItems: "flex-start" },
|
|
1701
1701
|
React__default.createElement(Grid, { item: true, md: 6, xs: 12, style: { paddingRight: 20, paddingLeft: 5 } },
|
|
1702
1702
|
React__default.createElement(TextField$1
|
|
@@ -1743,7 +1743,7 @@ var ModalLogSelected = function (_a) {
|
|
|
1743
1743
|
React__default.createElement(CardContent, null,
|
|
1744
1744
|
React__default.createElement(Typography$1, { className: classes.messageTitle }, "Message:"),
|
|
1745
1745
|
React__default.createElement(Typography$1, { style: { fontSize: 17 } }, selectedLog === null || selectedLog === void 0 ? void 0 : selectedLog.Message)))))),
|
|
1746
|
-
React__default.createElement(Modal$
|
|
1746
|
+
React__default.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
1747
1747
|
React__default.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
1748
1748
|
React__default.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
1749
1749
|
React__default.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(true); } }, "Close")))))));
|
|
@@ -2154,18 +2154,18 @@ var CreateProfile = function (_a) {
|
|
|
2154
2154
|
return (React.createElement(React.Fragment, null,
|
|
2155
2155
|
React.createElement(Grid, { container: true },
|
|
2156
2156
|
React.createElement(Grid, { item: true },
|
|
2157
|
-
React.createElement(Modal$
|
|
2157
|
+
React.createElement(Modal$1, { show: show, onHide: function () { onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true },
|
|
2158
2158
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
2159
|
-
React.createElement(Modal$
|
|
2160
|
-
React.createElement(Modal$
|
|
2161
|
-
React.createElement(Modal$
|
|
2162
|
-
React.createElement(Modal$
|
|
2159
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
2160
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "PROFILE")),
|
|
2161
|
+
React.createElement(Modal$1.Body, { style: { padding: "15px 30px" } },
|
|
2162
|
+
React.createElement(Modal$1.Title, { className: classes.title, id: "contained-modal-title-vcenter" }, "NEW PROFILE"),
|
|
2163
2163
|
React.createElement(Grid, { container: true, spacing: 1 },
|
|
2164
2164
|
React.createElement(Grid, { item: true, md: 12, xs: 12 },
|
|
2165
2165
|
React.createElement(TextField, __assign({}, register("ProfileName", { required: true }), { label: "Profile name", variant: "outlined", error: !!errors.ProfileName, fullWidth: true, margin: "dense", autoComplete: 'off' })),
|
|
2166
2166
|
" ",
|
|
2167
2167
|
((_b = errors.ProfileName) === null || _b === void 0 ? void 0 : _b.type) === 'required' && React.createElement("span", { className: classes.errorLabel }, "Profile name is required")))),
|
|
2168
|
-
React.createElement(Modal$
|
|
2168
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
2169
2169
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
2170
2170
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
2171
2171
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -2219,13 +2219,13 @@ var DeleteProfile = function (_a) {
|
|
|
2219
2219
|
});
|
|
2220
2220
|
}); };
|
|
2221
2221
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2222
|
-
React__default.createElement(Modal$
|
|
2222
|
+
React__default.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
2223
2223
|
React__default.createElement("form", null,
|
|
2224
|
-
React__default.createElement(Modal$
|
|
2225
|
-
React__default.createElement(Modal$
|
|
2224
|
+
React__default.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
2225
|
+
React__default.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, profileForDelete === null || profileForDelete === void 0 ? void 0 :
|
|
2226
2226
|
profileForDelete.ProfileName,
|
|
2227
2227
|
" PROFILE")),
|
|
2228
|
-
React__default.createElement(Modal$
|
|
2228
|
+
React__default.createElement(Modal$1.Body, { style: { padding: "15px 30px" } },
|
|
2229
2229
|
isLoading && React__default.createElement(Grid, { container: true, justifyContent: 'center', alignItems: 'center', style: { minHeight: '150px' } },
|
|
2230
2230
|
React__default.createElement(LazyLoading, null)),
|
|
2231
2231
|
!isLoading && (React__default.createElement(React__default.Fragment, null,
|
|
@@ -2235,7 +2235,7 @@ var DeleteProfile = function (_a) {
|
|
|
2235
2235
|
"Are you sure you want to delete ",
|
|
2236
2236
|
React__default.createElement("strong", null, profileForDelete === null || profileForDelete === void 0 ? void 0 : profileForDelete.ProfileName),
|
|
2237
2237
|
" profile?")))))),
|
|
2238
|
-
React__default.createElement(Modal$
|
|
2238
|
+
React__default.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
2239
2239
|
React__default.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
2240
2240
|
React__default.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
2241
2241
|
React__default.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -2340,23 +2340,9 @@ var useTableData$2 = function (_a) {
|
|
|
2340
2340
|
return { rows: rows, columnDefs: columnDefs };
|
|
2341
2341
|
};
|
|
2342
2342
|
|
|
2343
|
-
var useStyles$l = makeStyles$1(function (theme) {
|
|
2344
|
-
return ({
|
|
2345
|
-
root: {
|
|
2346
|
-
"& .MuiFormLabel-asterisk": {
|
|
2347
|
-
display: "none"
|
|
2348
|
-
}
|
|
2349
|
-
},
|
|
2350
|
-
errorLabel: {
|
|
2351
|
-
fontSize: 12,
|
|
2352
|
-
color: "#F44336"
|
|
2353
|
-
}
|
|
2354
|
-
});
|
|
2355
|
-
});
|
|
2356
2343
|
var DataTable = function (_a) {
|
|
2357
|
-
var actionsOfProfile = _a.actionsOfProfile, onSelectionChanged = _a.onSelectionChanged
|
|
2344
|
+
var actionsOfProfile = _a.actionsOfProfile, onSelectionChanged = _a.onSelectionChanged;
|
|
2358
2345
|
var _b = useState(""), filterInput = _b[0], setFilterInput = _b[1];
|
|
2359
|
-
var classes = useStyles$l();
|
|
2360
2346
|
var _c = useState([]), allActions = _c[0], setAllActions = _c[1];
|
|
2361
2347
|
var _d = useState(""), error = _d[0], setError = _d[1];
|
|
2362
2348
|
var _e = useState(null), gridApi = _e[0], setGridApi = _e[1];
|
|
@@ -2410,9 +2396,6 @@ var DataTable = function (_a) {
|
|
|
2410
2396
|
}
|
|
2411
2397
|
},
|
|
2412
2398
|
];
|
|
2413
|
-
var handleChangeProfielName = function (ev) {
|
|
2414
|
-
setProfileName(ev.target.value);
|
|
2415
|
-
};
|
|
2416
2399
|
var defaultColDef = useMemo(function () { return ({
|
|
2417
2400
|
resizable: true,
|
|
2418
2401
|
sortable: true,
|
|
@@ -2454,22 +2437,28 @@ var DataTable = function (_a) {
|
|
|
2454
2437
|
}); })();
|
|
2455
2438
|
}, []);
|
|
2456
2439
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2457
|
-
React__default.createElement(Grid$1, { container: true, md: 12, xs: 12, style: { padding: "0 0 10px", justifyContent: "space-between" }
|
|
2440
|
+
React__default.createElement(Grid$1, { container: true, md: 12, xs: 12, style: { padding: "0 0 10px", justifyContent: "space-between" } },
|
|
2458
2441
|
React__default.createElement(Grid$1, { item: true, md: 12, xs: 12 },
|
|
2459
|
-
React__default.createElement(Modal$
|
|
2460
|
-
React__default.createElement(Grid$1, { item: true, md:
|
|
2461
|
-
React__default.createElement(TextField, { id: "outlined-basic", label: "Search", variant: "outlined", value: filterInput, onChange: handlerFilter, margin: "dense", style: { width: "100%" } })),
|
|
2462
|
-
React__default.createElement(Grid$1, { item: true, md: 6, xs: 12, style: { paddingLeft: 15 } },
|
|
2463
|
-
React__default.createElement(TextField, { id: "outlined-basic", label: "Profile name to edit", variant: "outlined", value: profileName, fullWidth: true, margin: "dense", autoComplete: 'off', onChange: function (e) { return handleChangeProfielName(e); }, InputLabelProps: {
|
|
2464
|
-
shrink: true
|
|
2465
|
-
}, required: true, error: profileName.length === 0, style: { width: "100%" } }))),
|
|
2442
|
+
React__default.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { width: "100%", fontSize: 20, margin: "5px 0 0" } }, "Actions")),
|
|
2443
|
+
React__default.createElement(Grid$1, { item: true, md: 12, xs: 12 },
|
|
2444
|
+
React__default.createElement(TextField, { id: "outlined-basic", label: "Search", variant: "outlined", value: filterInput, onChange: handlerFilter, margin: "dense", style: { width: "100%" } }))),
|
|
2466
2445
|
React__default.createElement("div", { className: "ag-theme-balham", style: { width: "100%", height: "60vh" } },
|
|
2467
2446
|
React__default.createElement(AgGridReact, { getRowId: function (params) { return params.data.ActionId; }, onGridReady: onGridReady, rowData: rows, columnDefs: columns, defaultColDef: defaultColDef, onFirstDataRendered: onFirstDataRendered, rowSelection: "multiple", rowMultiSelectWithClick: true, onSelectionChanged: onAgGridSelectionChanged })),
|
|
2468
2447
|
React__default.createElement(ErrorModal, { error: error, onHide: function () { return setError(""); } })));
|
|
2469
2448
|
};
|
|
2470
2449
|
|
|
2450
|
+
var useStyles$l = makeStyles$1(function (theme) {
|
|
2451
|
+
return ({
|
|
2452
|
+
root: {
|
|
2453
|
+
"& .MuiFormLabel-asterisk": {
|
|
2454
|
+
display: "none"
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
});
|
|
2458
|
+
});
|
|
2471
2459
|
var ActionsOfProfile = function (_a) {
|
|
2472
2460
|
var profileForEdit = _a.profileForEdit, show = _a.show, onHide = _a.onHide;
|
|
2461
|
+
var classes = useStyles$l();
|
|
2473
2462
|
var _b = useState(null), actionsOfProfile = _b[0], setActionsOfProfile = _b[1];
|
|
2474
2463
|
var _c = useState(false), open = _c[0], setOpen = _c[1];
|
|
2475
2464
|
var _d = useState(true), isLoading = _d[0], setIsLoading = _d[1];
|
|
@@ -2478,13 +2467,21 @@ var ActionsOfProfile = function (_a) {
|
|
|
2478
2467
|
var _g = useState(""), error = _g[0], setError = _g[1];
|
|
2479
2468
|
var _h = useState(""), profileName = _h[0], setProfileName = _h[1];
|
|
2480
2469
|
var _j = useState(""), nameError = _j[0], setNameError = _j[1];
|
|
2481
|
-
var _k =
|
|
2470
|
+
var _k = useState(false), showEditInput = _k[0], setShowEditInput = _k[1];
|
|
2471
|
+
var handleSubmit = useForm({ defaultValues: INITIAL_VALUES$2 }).handleSubmit;
|
|
2482
2472
|
var handleClose = function (event, reason) {
|
|
2483
2473
|
if (reason === 'clickaway') {
|
|
2484
2474
|
return;
|
|
2485
2475
|
}
|
|
2486
2476
|
setOpen(false);
|
|
2487
2477
|
};
|
|
2478
|
+
var handleChangeProfielName = function (ev) {
|
|
2479
|
+
setProfileName(ev.target.value);
|
|
2480
|
+
};
|
|
2481
|
+
var handleCancelEditProfileName = function () {
|
|
2482
|
+
setProfileName(profileForEdit === null || profileForEdit === void 0 ? void 0 : profileForEdit.ProfileName);
|
|
2483
|
+
setShowEditInput(false);
|
|
2484
|
+
};
|
|
2488
2485
|
var onSubmit = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2489
2486
|
var resp, profileRes;
|
|
2490
2487
|
return __generator(this, function (_a) {
|
|
@@ -2519,6 +2516,7 @@ var ActionsOfProfile = function (_a) {
|
|
|
2519
2516
|
}); };
|
|
2520
2517
|
useEffect(function () {
|
|
2521
2518
|
if (show) {
|
|
2519
|
+
setShowEditInput(false);
|
|
2522
2520
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2523
2521
|
var resp;
|
|
2524
2522
|
return __generator(this, function (_a) {
|
|
@@ -2544,19 +2542,30 @@ var ActionsOfProfile = function (_a) {
|
|
|
2544
2542
|
}
|
|
2545
2543
|
}, [show]);
|
|
2546
2544
|
return (React.createElement(React.Fragment, null,
|
|
2547
|
-
React.createElement(Modal$
|
|
2545
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
2548
2546
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
2549
|
-
React.createElement(Modal$
|
|
2550
|
-
React.createElement(Modal$
|
|
2551
|
-
React.createElement(Grid, { container: true },
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2547
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px 0" } },
|
|
2548
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0", width: "100%", lineHeight: "2" } },
|
|
2549
|
+
React.createElement(Grid, { container: true, style: { position: "relative" }, className: classes.root },
|
|
2550
|
+
showEditInput ?
|
|
2551
|
+
React.createElement(Button, { style: { position: "absolute", right: 0, padding: 0, height: "100%" }, onClick: function () { return handleCancelEditProfileName(); } },
|
|
2552
|
+
React.createElement(CloseIcon, { style: { height: "100%" }, color: "inherit" }))
|
|
2553
|
+
: React.createElement(Button, { style: { position: "absolute", right: 0, padding: 0, height: "100%", minHeight: "52px" }, onClick: function () { return setShowEditInput(!showEditInput); } },
|
|
2554
|
+
React.createElement(EditIcon, { style: { height: "100%" }, color: "primary" })),
|
|
2555
|
+
React.createElement(Grid, { item: true, md: 2, xs: 2, style: { maxWidth: "85px", minHeight: "52px", display: "flex", justifyContent: "center" } }, "Profile:"),
|
|
2556
|
+
!showEditInput ?
|
|
2557
|
+
React.createElement(Grid, { item: true, md: 8, xs: 8, style: { minHeight: "52px" } }, profileForEdit === null || profileForEdit === void 0 ? void 0 : profileForEdit.ProfileName)
|
|
2558
|
+
:
|
|
2559
|
+
React.createElement(Grid, { item: true, md: 8, xs: 8 },
|
|
2560
|
+
React.createElement(TextField, { id: "outlined-basic", label: "Profile name to edit", variant: "outlined", value: profileName, fullWidth: true, margin: "dense", autoComplete: 'off', onChange: function (e) { return handleChangeProfielName(e); }, InputLabelProps: {
|
|
2561
|
+
shrink: true
|
|
2562
|
+
}, required: true, error: profileName.length === 0 }))))),
|
|
2563
|
+
React.createElement(Modal$1.Body, { style: { padding: "0 30px 15px" } },
|
|
2555
2564
|
isLoading && (React.createElement(Grid, { container: true, justifyContent: "center", alignItems: "center", style: { minHeight: "60px" } },
|
|
2556
2565
|
React.createElement(CircularProgress$1, { size: "3rem" }))),
|
|
2557
2566
|
!error && !isLoading && actionsOfProfile &&
|
|
2558
|
-
React.createElement(DataTable, { actionsOfProfile: actionsOfProfile, onSelectionChanged: setActionsSelected
|
|
2559
|
-
React.createElement(Modal$
|
|
2567
|
+
React.createElement(DataTable, { actionsOfProfile: actionsOfProfile, onSelectionChanged: setActionsSelected })),
|
|
2568
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } }, !isLoading && (React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
2560
2569
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
2561
2570
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
2562
2571
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
@@ -2671,6 +2680,15 @@ var TableProfiles = function (_a) {
|
|
|
2671
2680
|
}
|
|
2672
2681
|
});
|
|
2673
2682
|
}
|
|
2683
|
+
if (data) {
|
|
2684
|
+
result.push({
|
|
2685
|
+
name: 'Edit Profile',
|
|
2686
|
+
action: function () {
|
|
2687
|
+
setProfileForDelete(data);
|
|
2688
|
+
setModalProceduresProfile(true);
|
|
2689
|
+
}
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2674
2692
|
if (data) {
|
|
2675
2693
|
result.push({
|
|
2676
2694
|
name: 'Remove Profile',
|
|
@@ -2723,8 +2741,9 @@ var TableProfiles = function (_a) {
|
|
|
2723
2741
|
} }),
|
|
2724
2742
|
React.createElement(Grid, { item: true, md: 12, xs: 12, style: { height: "61vh", border: "4px solid #ccc", borderRadius: 10, padding: 10, margin: "20px 0 10px" } },
|
|
2725
2743
|
React.createElement("div", { style: gridStyle, className: "ag-theme-alpine" },
|
|
2726
|
-
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",
|
|
2744
|
+
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", onRowClicked: function (event) {
|
|
2727
2745
|
setProfileForEdit(event.data);
|
|
2746
|
+
setModalProceduresProfile(true);
|
|
2728
2747
|
}, onGridReady: function (params) { return setGridApi(params.api); } }))),
|
|
2729
2748
|
React.createElement(Grid, { container: true, justifyContent: "flex-end" },
|
|
2730
2749
|
React.createElement(Grid, { item: true, md: 2, xs: 12, className: classes.btnModal },
|
|
@@ -2953,11 +2972,11 @@ var CreateShift = function (_a) {
|
|
|
2953
2972
|
return (React.createElement(React.Fragment, null,
|
|
2954
2973
|
React.createElement(Grid, { container: true },
|
|
2955
2974
|
React.createElement(Grid, { item: true },
|
|
2956
|
-
React.createElement(Modal$
|
|
2975
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
2957
2976
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
2958
|
-
React.createElement(Modal$
|
|
2959
|
-
React.createElement(Modal$
|
|
2960
|
-
React.createElement(Modal$
|
|
2977
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
2978
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "NEW SHIFT/CREW")),
|
|
2979
|
+
React.createElement(Modal$1.Body, { style: { padding: "15px 30px 0" } },
|
|
2961
2980
|
React.createElement(Grid, { container: true, spacing: 2 },
|
|
2962
2981
|
React.createElement(Controller, { name: "PatternStart", control: control, render: function (_a) {
|
|
2963
2982
|
var _b = _a.field, value = _b.value, onChange = _b.onChange;
|
|
@@ -3071,7 +3090,7 @@ var CreateShift = function (_a) {
|
|
|
3071
3090
|
React.createElement("span", { className: classes.infoLabel, style: { marginLeft: 5 } }, "".concat(comments === null || comments === void 0 ? void 0 : comments.length, "/200 max.")),
|
|
3072
3091
|
(comments === null || comments === void 0 ? void 0 : comments.length) == 200 &&
|
|
3073
3092
|
React.createElement("span", { className: classes.infoLabel, style: { marginLeft: 5 } }, "Max. 200")))))),
|
|
3074
|
-
React.createElement(Modal$
|
|
3093
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
3075
3094
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
3076
3095
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
3077
3096
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -3165,11 +3184,11 @@ var DeleteShift = function (_a) {
|
|
|
3165
3184
|
return (React.createElement(React.Fragment, null,
|
|
3166
3185
|
React.createElement(Grid, { container: true },
|
|
3167
3186
|
React.createElement(Grid, { item: true },
|
|
3168
|
-
React.createElement(Modal$
|
|
3187
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
3169
3188
|
React.createElement("form", null,
|
|
3170
|
-
React.createElement(Modal$
|
|
3171
|
-
React.createElement(Modal$
|
|
3172
|
-
React.createElement(Modal$
|
|
3189
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
3190
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "NEW SHIFT/CREW")),
|
|
3191
|
+
React.createElement(Modal$1.Body, { style: { padding: "15px 30px 0" } },
|
|
3173
3192
|
React.createElement(Grid, { container: true, spacing: 2 },
|
|
3174
3193
|
React.createElement(Controller, { name: "PatternStart", control: control, render: function (_a) {
|
|
3175
3194
|
var _b = _a.field, value = _b.value, onChange = _b.onChange;
|
|
@@ -3225,7 +3244,7 @@ var DeleteShift = function (_a) {
|
|
|
3225
3244
|
var _b = _a.field, value = _b.value; _b.onChange;
|
|
3226
3245
|
return (React.createElement(TextField, { style: { margin: "8px 0" }, size: "medium", maxRows: 5, label: "Comments", multiline: true, variant: "outlined", fullWidth: true, autoComplete: 'off', value: value, disabled: !!shiftTableData }));
|
|
3227
3246
|
} })))),
|
|
3228
|
-
React.createElement(Modal$
|
|
3247
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
3229
3248
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
3230
3249
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
3231
3250
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -3337,11 +3356,11 @@ var EditShift = function (_a) {
|
|
|
3337
3356
|
return (React.createElement(React.Fragment, null,
|
|
3338
3357
|
React.createElement(Grid, { container: true },
|
|
3339
3358
|
React.createElement(Grid, { item: true },
|
|
3340
|
-
React.createElement(Modal$
|
|
3359
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
3341
3360
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
3342
|
-
React.createElement(Modal$
|
|
3343
|
-
React.createElement(Modal$
|
|
3344
|
-
React.createElement(Modal$
|
|
3361
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
3362
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "NEW SHIFT/CREW")),
|
|
3363
|
+
React.createElement(Modal$1.Body, { style: { padding: "15px 30px 0" } },
|
|
3345
3364
|
React.createElement(Grid, { container: true, spacing: 2 },
|
|
3346
3365
|
React.createElement(Controller, { name: "PatternStart", control: control, render: function (_a) {
|
|
3347
3366
|
var _b = _a.field, value = _b.value, onChange = _b.onChange;
|
|
@@ -3459,7 +3478,7 @@ var EditShift = function (_a) {
|
|
|
3459
3478
|
React.createElement("span", { className: classes.infoLabel, style: { marginLeft: 5 } }, "".concat(comments === null || comments === void 0 ? void 0 : comments.length, "/200")),
|
|
3460
3479
|
(comments === null || comments === void 0 ? void 0 : comments.length) == 200 &&
|
|
3461
3480
|
React.createElement("span", { className: classes.infoLabel, style: { marginLeft: 5 } }, "Max. 200")))))),
|
|
3462
|
-
React.createElement(Modal$
|
|
3481
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
3463
3482
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
3464
3483
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
3465
3484
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -5328,7 +5347,8 @@ var useStyles$5 = makeStyles$1(function (theme) {
|
|
|
5328
5347
|
}
|
|
5329
5348
|
},
|
|
5330
5349
|
formControl: {
|
|
5331
|
-
width: "100%"
|
|
5350
|
+
width: "100%",
|
|
5351
|
+
marginTop: 8
|
|
5332
5352
|
},
|
|
5333
5353
|
chips: {
|
|
5334
5354
|
display: 'flex',
|
|
@@ -5461,11 +5481,11 @@ var CreateUser = function (_a) {
|
|
|
5461
5481
|
}
|
|
5462
5482
|
}, [show]);
|
|
5463
5483
|
return (React.createElement(React.Fragment, null,
|
|
5464
|
-
React.createElement(Modal$
|
|
5484
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
5465
5485
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
5466
|
-
React.createElement(Modal$
|
|
5467
|
-
React.createElement(Modal$
|
|
5468
|
-
React.createElement(Modal$
|
|
5486
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
5487
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "New User")),
|
|
5488
|
+
React.createElement(Modal$1.Body, { style: { padding: "15px 30px" } },
|
|
5469
5489
|
React.createElement(Grid, { container: true, spacing: 1 },
|
|
5470
5490
|
React.createElement(Grid, { item: true, xs: 12, md: 6 },
|
|
5471
5491
|
React.createElement(TextField, __assign({}, register("UserName", { required: true }), { label: "Username", variant: "outlined", error: !!errors.UserName, fullWidth: true, margin: "dense", autoComplete: 'off' })),
|
|
@@ -5494,7 +5514,7 @@ var CreateUser = function (_a) {
|
|
|
5494
5514
|
var field = _a.field;
|
|
5495
5515
|
return (React.createElement(FormControlLabel$1, { className: classes.checkbox, control: React.createElement(Checkbox$1, { checked: field.value, onChange: field.onChange, name: "IsActive", color: "primary" }), label: "Active" }));
|
|
5496
5516
|
} })))),
|
|
5497
|
-
React.createElement(Modal$
|
|
5517
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
5498
5518
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
5499
5519
|
React.createElement(Grid, { item: true, md: 3, xs: 12 },
|
|
5500
5520
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -5605,15 +5625,15 @@ var EditUser = function (_a) {
|
|
|
5605
5625
|
}
|
|
5606
5626
|
}, [show]);
|
|
5607
5627
|
return (React.createElement(React.Fragment, null,
|
|
5608
|
-
React.createElement(Modal$
|
|
5628
|
+
React.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
5609
5629
|
React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
|
|
5610
|
-
React.createElement(Modal$
|
|
5611
|
-
React.createElement(Modal$
|
|
5612
|
-
React.createElement(Modal$
|
|
5630
|
+
React.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
5631
|
+
React.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "USER FORM")),
|
|
5632
|
+
React.createElement(Modal$1.Body, { className: classes.modalBody, style: { padding: "15px 30px" } },
|
|
5613
5633
|
isLoading && React.createElement(Grid, { container: true, justifyContent: 'center', alignItems: 'center', style: { minHeight: '300px' } },
|
|
5614
5634
|
React.createElement(LazyLoading, null)),
|
|
5615
5635
|
!isLoading && (React.createElement(React.Fragment, null,
|
|
5616
|
-
React.createElement(Modal$
|
|
5636
|
+
React.createElement(Modal$1.Title, { className: classes.title, id: "contained-modal-title-vcenter" }, "USER"),
|
|
5617
5637
|
React.createElement(Grid, { container: true, spacing: 1 },
|
|
5618
5638
|
React.createElement(Grid, { item: true, xs: 12 },
|
|
5619
5639
|
React.createElement(TextField, __assign({}, register("UserName", { required: true }), { label: "Username", variant: "outlined", error: !!errors.UserName, fullWidth: true, margin: "dense", autoComplete: 'off' })),
|
|
@@ -5624,14 +5644,14 @@ var EditUser = function (_a) {
|
|
|
5624
5644
|
React.createElement(Grid, { item: true, md: 6, xs: 12 },
|
|
5625
5645
|
React.createElement(TextField, __assign({}, register("LastName", { required: true }), { label: "Last name", variant: "outlined", error: !!errors.FirstName, fullWidth: true, margin: "dense", autoComplete: 'off' })),
|
|
5626
5646
|
((_d = errors.LastName) === null || _d === void 0 ? void 0 : _d.type) === 'required' && React.createElement("span", { className: classes.errorLabel }, "Last name is required")),
|
|
5627
|
-
React.createElement(Grid, { item: true, container: true, xs: 12, spacing: 3 },
|
|
5628
|
-
React.createElement(Grid, { item: true, xs: 12, md: 6 },
|
|
5647
|
+
React.createElement(Grid, { item: true, container: true, xs: 12, spacing: 3, style: { margin: 0 } },
|
|
5648
|
+
React.createElement(Grid, { item: true, xs: 12, md: 6, style: { padding: "0 15px 0 0" } },
|
|
5629
5649
|
React.createElement(Controller, { name: "ProfilesId", control: control, rules: { required: true }, render: function (_a) {
|
|
5630
5650
|
var _b = _a.field, onChange = _b.onChange, value = _b.value;
|
|
5631
5651
|
return (React.createElement(ProfilesPicker, { onChange: onChange, value: value, userIdForDelete: null, setprofileError: setprofileError }));
|
|
5632
5652
|
} }),
|
|
5633
5653
|
errors.ProfilesId && React.createElement("span", { className: classes.errorLabel }, "Select a profile(s)")),
|
|
5634
|
-
React.createElement(Grid, { item: true, xs: 12, md: 6 },
|
|
5654
|
+
React.createElement(Grid, { item: true, xs: 12, md: 6, style: { padding: "0 0 0 5px" } },
|
|
5635
5655
|
React.createElement(Controller, { name: "AuthTypeId", control: control, render: function (_a) {
|
|
5636
5656
|
var _b = _a.field, value = _b.value, onChange = _b.onChange;
|
|
5637
5657
|
return (React.createElement(AuthTypeSelector, { value: value, onChange: onChange }));
|
|
@@ -5641,7 +5661,7 @@ var EditUser = function (_a) {
|
|
|
5641
5661
|
var field = _a.field;
|
|
5642
5662
|
return (React.createElement(FormControlLabel$1, { className: classes.checkbox, control: React.createElement(Checkbox$1, { checked: field.value, onChange: field.onChange, name: "IsActive", color: "primary" }), label: "Active" }));
|
|
5643
5663
|
} }))))))),
|
|
5644
|
-
React.createElement(Modal$
|
|
5664
|
+
React.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
5645
5665
|
React.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
5646
5666
|
React.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
5647
5667
|
React.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "Cancel")),
|
|
@@ -5730,11 +5750,11 @@ var DeleteUser = function (_a) {
|
|
|
5730
5750
|
}
|
|
5731
5751
|
}, [show]);
|
|
5732
5752
|
return (React__default.createElement(React__default.Fragment, null,
|
|
5733
|
-
React__default.createElement(Modal$
|
|
5753
|
+
React__default.createElement(Modal$1, __assign({}, { show: show }, { onHide: function () { return onHide(false); }, size: "lg", "aria-labelledby": "contained-modal-title-vcenter", centered: true }),
|
|
5734
5754
|
React__default.createElement("form", null,
|
|
5735
|
-
React__default.createElement(Modal$
|
|
5736
|
-
React__default.createElement(Modal$
|
|
5737
|
-
React__default.createElement(Modal$
|
|
5755
|
+
React__default.createElement(Modal$1.Header, { closeButton: true, style: { padding: "10px 30px" } },
|
|
5756
|
+
React__default.createElement(Modal$1.Title, { id: "contained-modal-title-vcenter", style: { margin: "20px 0 0" } }, "USER")),
|
|
5757
|
+
React__default.createElement(Modal$1.Body, { style: { padding: "15px 30px" } },
|
|
5738
5758
|
isLoading && React__default.createElement(Grid, { container: true, justifyContent: 'center', alignItems: 'center', style: { minHeight: '300px' } },
|
|
5739
5759
|
React__default.createElement(LazyLoading, null)),
|
|
5740
5760
|
!isLoading && (React__default.createElement(React__default.Fragment, null,
|
|
@@ -5761,7 +5781,7 @@ var DeleteUser = function (_a) {
|
|
|
5761
5781
|
var field = _a.field;
|
|
5762
5782
|
return (React__default.createElement(FormControlLabel$1, { control: React__default.createElement(Checkbox$1, { checked: field.value, onChange: field.onChange, name: "IsActive", color: "primary" }), label: "Active" }));
|
|
5763
5783
|
} }))))))),
|
|
5764
|
-
React__default.createElement(Modal$
|
|
5784
|
+
React__default.createElement(Modal$1.Footer, { style: { padding: "20px 30px 30px" } },
|
|
5765
5785
|
React__default.createElement(Grid, { container: true, spacing: 2, justifyContent: "flex-end" },
|
|
5766
5786
|
React__default.createElement(Grid, { item: true, md: 3, xs: 12, style: { margin: 0 } },
|
|
5767
5787
|
React__default.createElement(Button, { fullWidth: true, variant: "contained", color: "default", onClick: function () { return onHide(false); } }, "CANCEL")),
|
|
@@ -5931,10 +5951,10 @@ var ChangePassword$1 = function (_a) {
|
|
|
5931
5951
|
}, [show]);
|
|
5932
5952
|
if (userId) {
|
|
5933
5953
|
return (React.createElement(React.Fragment, null,
|
|
5934
|
-
React.createElement(
|
|
5954
|
+
React.createElement(MesfModal, { title: "Change password", open: show, handleClose: function () { return onHide(false); }, maxWidth: "lg" },
|
|
5935
5955
|
React.createElement(Grid$1, { container: true },
|
|
5936
5956
|
React.createElement(Grid$1, { item: true, md: 12, xs: 12 },
|
|
5937
|
-
React.createElement(
|
|
5957
|
+
React.createElement(MesfModal.Content, { style: { padding: "6px 16px 16px" } },
|
|
5938
5958
|
React.createElement("form", { onSubmit: handleSubmit },
|
|
5939
5959
|
React.createElement(Grid$1, { item: true, md: 12, xs: 12 },
|
|
5940
5960
|
React.createElement(TextField, { label: "New Password", value: password, onChange: function (el) {
|
|
@@ -7980,4 +8000,4 @@ var areaSelector = /*#__PURE__*/Object.freeze({
|
|
|
7980
8000
|
AreaSelector: AreaSelector
|
|
7981
8001
|
});
|
|
7982
8002
|
|
|
7983
|
-
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, 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, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, NumericTextControl, SimplePasswordControl, SimpleSelectorControl, SimpleTextAreaControl, SimpleTextControl, TimeFormatter, TreePickerControl, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, formatNumber, getCrewStyle, getError, getShiftStyle, getTokenFromLS, renewToken, useAssetContext, useToken, useUTLSettingsContext, useUserContext };
|
|
8003
|
+
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, 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, TreePickerControl, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, formatNumber, getCrewStyle, getError, getShiftStyle, getTokenFromLS, renewToken, useAssetContext, useToken, useUTLSettingsContext, useUserContext };
|