@dexteel/mesf-core 3.2.5 → 3.4.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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ # For Changing passwords, mesf-core is needed:
2
+ https://github.com/dexteel/mesf-core/commit/02877a88ab283f2a64cd1a0bc85bdb7c099935f2
3
+
1
4
  # How to install project in subfolders
2
5
 
3
6
  In deployed version, edit the following file:
@@ -0,0 +1,22 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { Theme, WithStyles } from '@material-ui/core/styles';
3
+ declare const styles: (theme: Theme) => import("@material-ui/styles").StyleRules<{}, "root" | "closeButton">;
4
+ export interface DialogTitleProps extends WithStyles<typeof styles> {
5
+ id: string;
6
+ children: React.ReactNode;
7
+ onClose: () => void;
8
+ }
9
+ interface MESFModalProps {
10
+ handleClose: (shouldUpdate?: boolean) => void;
11
+ open: boolean;
12
+ id?: string;
13
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
14
+ children: ReactNode;
15
+ title?: string;
16
+ }
17
+ declare function Modal({ children, title, handleClose, open, id, maxWidth }: MESFModalProps): JSX.Element;
18
+ declare const _default: typeof Modal & {
19
+ Content: React.ComponentType<Pick<import("@material-ui/core/DialogContent").DialogContentProps, "color" | "translate" | "hidden" | "style" | "id" | "children" | "ref" | "slot" | "title" | "dividers" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "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
+ Actions: React.ComponentType<Pick<import("@material-ui/core/DialogActions").DialogActionsProps, "color" | "translate" | "hidden" | "style" | "id" | "children" | "ref" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "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
+ };
22
+ export default _default;
@@ -10,7 +10,7 @@ export declare const useJobsContext: () => {
10
10
  payload: any;
11
11
  type: string;
12
12
  }): void;
13
- }>;
13
+ }, "__">;
14
14
  };
15
15
  export declare const JobsProvider: ({ children }: {
16
16
  children: ReactNode;
@@ -54,7 +54,7 @@ export declare const useLogsContext: () => {
54
54
  payload: any;
55
55
  type: string;
56
56
  }): void;
57
- }>;
57
+ }, "__">;
58
58
  };
59
59
  export declare const LogsProvider: ({ children }: {
60
60
  children: ReactNode;
@@ -19,7 +19,7 @@ export declare const useProfilesContext: () => {
19
19
  payload: any;
20
20
  type: string;
21
21
  }): void;
22
- }>;
22
+ }, "__">;
23
23
  };
24
24
  export declare const ProfilesProvider: ({ children }: {
25
25
  children: ReactNode;
@@ -30,7 +30,7 @@ export declare const useShiftsCrewsContext: () => {
30
30
  payload: any;
31
31
  type: string;
32
32
  }): void;
33
- }>;
33
+ }, "__">;
34
34
  };
35
35
  export declare const ShiftsCrewsProvider: ({ children }: {
36
36
  children: ReactNode;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type Props = {
3
+ show: boolean;
4
+ userId: number | null;
5
+ onHide: (shouldUpdate: boolean) => void;
6
+ };
7
+ export declare const ChangePassword: ({ show, userId, onHide }: Props) => JSX.Element;
8
+ export {};
@@ -4,8 +4,10 @@ declare type Props = {
4
4
  setModalDeleteUser: Function;
5
5
  setUserIdForEdit: Function;
6
6
  setUserIdForDelete: Function;
7
+ setModalChangePassword: Function;
8
+ setUserForPasswordChange: Function;
7
9
  };
8
- export declare const useTableData: ({ setUserIdForEdit, setModalEditDataUser, setUserIdForDelete, setModalDeleteUser }: Props) => {
10
+ export declare const useTableData: ({ setUserIdForEdit, setModalEditDataUser, setUserIdForDelete, setModalDeleteUser, setModalChangePassword, setUserForPasswordChange }: Props) => {
9
11
  rows: {
10
12
  UserId: number | null;
11
13
  UserName: string;
@@ -10,7 +10,7 @@ export declare const useUsersContext: () => {
10
10
  payload: any;
11
11
  type: string;
12
12
  }): void;
13
- }>;
13
+ }, "__">;
14
14
  };
15
15
  export declare const UsersProvider: ({ children }: {
16
16
  children: ReactNode;
@@ -1,5 +1,14 @@
1
1
  import { User } from "../models/User";
2
2
  export declare const getUsers: () => Promise<{
3
+ ok: boolean;
4
+ message: any;
5
+ data?: undefined;
6
+ } | {
7
+ ok: boolean;
8
+ data: any;
9
+ message?: undefined;
10
+ }>;
11
+ export declare const getDataUser: (UserId: number | null) => Promise<{
3
12
  ok: boolean;
4
13
  data: any;
5
14
  message?: undefined;
@@ -8,7 +17,7 @@ export declare const getUsers: () => Promise<{
8
17
  message: any;
9
18
  data?: undefined;
10
19
  }>;
11
- export declare const getDataUser: (UserId: number | null) => Promise<{
20
+ export declare const getProfiles: () => Promise<{
12
21
  ok: boolean;
13
22
  data: any;
14
23
  message?: undefined;
@@ -17,7 +26,7 @@ export declare const getDataUser: (UserId: number | null) => Promise<{
17
26
  message: any;
18
27
  data?: undefined;
19
28
  }>;
20
- export declare const getProfiles: () => Promise<{
29
+ export declare const deleteUser: (userId: number) => Promise<{
21
30
  ok: boolean;
22
31
  data: any;
23
32
  message?: undefined;
@@ -26,7 +35,7 @@ export declare const getProfiles: () => Promise<{
26
35
  message: any;
27
36
  data?: undefined;
28
37
  }>;
29
- export declare const deleteUser: (userId: number) => Promise<{
38
+ export declare const setPassword: (userId: number, password: string) => Promise<{
30
39
  ok: boolean;
31
40
  data: any;
32
41
  message?: undefined;
@@ -4,32 +4,6 @@ declare type TreePickerControlProps = {
4
4
  [key: string]: any;
5
5
  };
6
6
  export declare const TreePickerControl: (props: TreePickerControlProps) => JSX.Element;
7
- interface DateControlProps {
8
- value?: any;
9
- onChange?: any;
10
- title?: string;
11
- styleGeneral?: any;
12
- styleLabel?: any;
13
- }
14
- export declare function DateControl({ value, onChange, title, styleGeneral, styleLabel }: DateControlProps): JSX.Element;
15
- export declare const DateTimeControl: (props: any) => JSX.Element;
16
- export declare const SimpleTimeControl: (props: any) => JSX.Element;
17
- interface SimpleInputSearchControlProps {
18
- title?: string;
19
- onChange?: any;
20
- styleLabel?: any;
21
- isNumeric?: boolean;
22
- readOnly?: boolean;
23
- value?: any;
24
- name?: any;
25
- styleTextBox?: any;
26
- onKeyDown?: any;
27
- lengthCharacters?: any;
28
- }
29
- export declare function SimpleInputSearchControl({ title, styleLabel, isNumeric, readOnly, value, onChange, name, styleTextBox, onKeyDown, lengthCharacters }: SimpleInputSearchControlProps): JSX.Element;
30
- export declare class TimeControl extends Component<any> {
31
- render(): JSX.Element;
32
- }
33
7
  export declare class SimpleTextControl extends Component<any> {
34
8
  render(): JSX.Element;
35
9
  }
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './utils';
4
4
  export * from './account';
5
5
  export * from './controls';
6
6
  export * from './MESFMain';
7
+ export * from './components/modals/modal.mesf';