@dexteel/mesf-core 3.3.0 → 3.4.1

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +3 -0
  3. package/dist/account/AuthProvider.d.ts +3 -3
  4. package/dist/account/models/login.models.d.ts +3 -3
  5. package/dist/components/modals/modal.mesf.d.ts +22 -0
  6. package/dist/configuration/pages/job/JobsPage.d.ts +1 -1
  7. package/dist/configuration/pages/job/components/JobsTable/customHooks/TableDataJobs/useJobsTableData.d.ts +1 -1
  8. package/dist/configuration/pages/job/context/JobsContext.d.ts +1 -1
  9. package/dist/configuration/pages/job/index.d.ts +1 -1
  10. package/dist/configuration/pages/log/LogsPage.d.ts +1 -1
  11. package/dist/configuration/pages/log/components/Filters/codeFilter.d.ts +1 -1
  12. package/dist/configuration/pages/log/components/Filters/dateFilter.d.ts +1 -1
  13. package/dist/configuration/pages/log/components/Filters/searchFilter.d.ts +1 -1
  14. package/dist/configuration/pages/log/components/ModalLogSelected/ModalLogSelected.d.ts +1 -1
  15. package/dist/configuration/pages/log/components/hook/useGetLogsFromAPI.d.ts +1 -1
  16. package/dist/configuration/pages/log/context/LogsContext.d.ts +1 -1
  17. package/dist/configuration/pages/log/index.d.ts +1 -1
  18. package/dist/configuration/pages/profiles/ProfilesPage.d.ts +1 -1
  19. package/dist/configuration/pages/profiles/components/Create/CreateProfile.d.ts +1 -1
  20. package/dist/configuration/pages/profiles/components/Delete/DeleteProfile.d.ts +1 -1
  21. package/dist/configuration/pages/profiles/components/Edit/EditProfile.d.ts +1 -1
  22. package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +1 -1
  23. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +1 -1
  24. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useGetPermissionsEffect.d.ts +1 -1
  25. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useHandleAsignedPermission.d.ts +1 -1
  26. package/dist/configuration/pages/profiles/components/common/Permissions/hooks/useIsPermissionInherited.d.ts +1 -1
  27. package/dist/configuration/pages/profiles/components/common/Pickers/PermissionsPicker.d.ts +1 -1
  28. package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +1 -1
  29. package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +1 -1
  30. package/dist/configuration/pages/profiles/components/common/hooks/useGetColorByPermissionId.d.ts +1 -1
  31. package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +1 -1
  32. package/dist/configuration/pages/profiles/index.d.ts +1 -1
  33. package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +1 -1
  34. package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +1 -1
  35. package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +1 -1
  36. package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +1 -1
  37. package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +1 -1
  38. package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +1 -1
  39. package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +1 -1
  40. package/dist/configuration/pages/shifCrew/index.d.ts +1 -1
  41. package/dist/configuration/pages/users/UsersPage.d.ts +1 -1
  42. package/dist/configuration/pages/users/components/ChangePassword/ChangePassword.d.ts +8 -0
  43. package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +1 -1
  44. package/dist/configuration/pages/users/components/Delete/DeleteUser.d.ts +1 -1
  45. package/dist/configuration/pages/users/components/EditUser/EditUser.d.ts +1 -1
  46. package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +1 -1
  47. package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +4 -2
  48. package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +1 -1
  49. package/dist/configuration/pages/users/context/UsersContext.d.ts +1 -1
  50. package/dist/configuration/pages/users/index.d.ts +1 -1
  51. package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +12 -3
  52. package/dist/configurationMenu.d.ts +2 -2
  53. package/dist/controls/filters/filters.d.ts +2 -2
  54. package/dist/controls/panels.d.ts +4 -4
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.esm.js +347 -191
  57. package/dist/services/ApiService.d.ts +4 -4
  58. package/package.json +1 -1
  59. package/dist/configuration/pages/users/components/Prueba/Prueba.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # CHANGELOG
2
+ ## 3.4.1
3
+ - TreePickerControl receives `inputTitle` as prop
2
4
  ## 2.2.0
3
5
  - Add new callJSON method inside MESApiService
4
6
  ## 2.1.5
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:
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
2
  export declare const AuthContext: React.Context<any>;
3
- export declare type AuthConfig = {
3
+ export type AuthConfig = {
4
4
  guestIsEnabled: boolean;
5
5
  useEmailAndPassword: boolean;
6
6
  useAzureAD: boolean;
7
7
  AzureConfig: AzureConfig;
8
8
  };
9
- export declare type AzureConfig = {
9
+ export type AzureConfig = {
10
10
  clientId: string;
11
11
  authority: string;
12
12
  redirectUri: string;
13
13
  };
14
- declare type AuthProviderProps = {
14
+ type AuthProviderProps = {
15
15
  children: any;
16
16
  authConfig: AuthConfig;
17
17
  };
@@ -1,10 +1,10 @@
1
1
  import { AuthConfig } from "../AuthProvider";
2
- export declare type LoginParams = {
2
+ export type LoginParams = {
3
3
  setToken?: Function;
4
4
  authConfig: AuthConfig;
5
5
  };
6
- declare type Permission = string;
7
- export declare type UserMESData = {
6
+ type Permission = string;
7
+ export type UserMESData = {
8
8
  id: number;
9
9
  firstName: string;
10
10
  lastName: string;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const Jobs: (prop: Props) => JSX.Element;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { GridColumns } from "@material-ui/data-grid";
2
- declare type Props = {
2
+ type Props = {
3
3
  getJobsFromAPI: () => Promise<void>;
4
4
  setMessageLoading: Function;
5
5
  setMessageSuccesful: Function;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  declare const JobsPage: (props: Props) => JSX.Element;
4
4
  export default JobsPage;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const Logs: (prop: Props) => JSX.Element;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  LogTypeCode: number | string | null;
4
4
  setLogTypeCodeFilter: (logTypeCode: number | string | null) => void;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  date: Date;
4
4
  setDate: (date: Date) => void;
5
5
  label: string | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  search: string;
4
4
  setSearch: Function;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Log } from '../../models/Log';
3
- declare type Props = {
3
+ type Props = {
4
4
  show: boolean;
5
5
  onHide: (show: boolean) => void;
6
6
  selectedLog: Log | undefined;
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  Start: Date;
3
3
  End: Date;
4
4
  Search: string;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  declare const LogsPage: (props: Props) => JSX.Element;
4
4
  export default LogsPage;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const Profiles: (prop: Props) => JSX.Element;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  show: boolean;
4
4
  onHide: () => void;
5
5
  getProfilesFromAPI: Function;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Profile } from '../../models/Profile';
3
- declare type Props = {
3
+ type Props = {
4
4
  profileForDelete: Profile | null;
5
5
  show: boolean;
6
6
  onHide: (shouldUpdate: boolean) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Profile } from '../../models/Profile';
3
- declare type Props = {
3
+ type Props = {
4
4
  profileForEdit: Profile | null;
5
5
  show: boolean;
6
6
  onHide: (shouldUpdate: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  getProfilesFromAPI: Function;
4
4
  isLoading: boolean;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { GridColDef } from "@material-ui/data-grid";
2
2
  import { Profile } from '../../../models/Profile';
3
- declare type Props = {
3
+ type Props = {
4
4
  setProfileForEdit: (profile: Profile) => void;
5
5
  setModalEditPermissionsProfile: (showModal: boolean) => void;
6
6
  setProfileForDelete: (profile: Profile) => void;
@@ -1,5 +1,5 @@
1
1
  import { Permission } from "../../../../models/Permission";
2
- declare type Props = {
2
+ type Props = {
3
3
  setIsLoading: (isLoading: boolean) => void;
4
4
  setPermissions: (permissions: Permission[]) => void;
5
5
  };
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  asignedPermissions: number[];
3
3
  onChange: Function;
4
4
  };
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  profilesToProfiles: number[];
3
3
  };
4
4
  export declare const useIsPermissionInherited: ({ profilesToProfiles }: Props) => (PermissionId: number) => boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  value: number[];
4
4
  onChange: Function;
5
5
  profileForDelete: number | null;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  value: number[];
4
4
  onChange: Function;
5
5
  profileForDelete: number | null;
@@ -1,5 +1,5 @@
1
1
  import { Profile } from "../../../../models/Profile";
2
- declare type Props = {
2
+ type Props = {
3
3
  setIsLoading: (isLoading: boolean) => void;
4
4
  setProfiles: (permissions: Profile[]) => void;
5
5
  };
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  profilesToProfiles: number[];
3
3
  };
4
4
  export declare const useGetColorByPermissionId: ({ profilesToProfiles }: Props) => (PermissionId: number) => string | false;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  declare const UsersPage: (props: Props) => JSX.Element;
4
4
  export default UsersPage;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const ShiftsCrews: (prop: Props) => JSX.Element;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  show: boolean;
4
4
  onHide: () => void;
5
5
  getShiftsCrewsFromAPI: Function;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  show: boolean;
4
4
  onHide: (shouldUpdate: boolean) => void;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  show: boolean;
4
4
  onHide: (shouldUpdate: boolean) => void;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  getShiftsCrewsFromAPI: Function;
4
4
  isLoading: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { GridColDef } from "@material-ui/data-grid";
2
- declare type Props = {
2
+ type Props = {
3
3
  setModalEditShift: Function;
4
4
  setModalDeleteShift: Function;
5
5
  };
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  declare const ShiftsCrewsPage: (props: Props) => JSX.Element;
4
4
  export default ShiftsCrewsPage;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  export declare const Users: (prop: Props) => JSX.Element;
4
4
  export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ 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 {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  show: boolean;
4
4
  onHide: () => void;
5
5
  getUsersFromAPI: Function;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  userIdForDelete: number | null;
4
4
  show: boolean;
5
5
  onHide: (shouldUpdate: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  userIdForEdit: number | null;
4
4
  show: boolean;
5
5
  onHide: (shouldUpdate: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  getUsersFromAPI: Function;
4
4
  isLoading: boolean;
5
5
  };
@@ -1,11 +1,13 @@
1
1
  import { GridColDef } from '@material-ui/data-grid';
2
- declare type Props = {
2
+ type Props = {
3
3
  setModalEditDataUser: Function;
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;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  value: number[];
4
4
  onChange: Function;
5
5
  userIdForDelete: number | null;
@@ -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,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {};
2
+ type Props = {};
3
3
  declare const UsersPage: (props: Props) => JSX.Element;
4
4
  export default UsersPage;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type SectionComponent = {
2
+ type SectionComponent = {
3
3
  path: string;
4
4
  sidebar: React.FunctionComponent;
5
5
  main: React.FunctionComponent;
@@ -9,7 +9,7 @@ export interface SidebarType extends React.FunctionComponent<{
9
9
  option?: string;
10
10
  }> {
11
11
  }
12
- export declare type ConfigurationsType = [
12
+ export type ConfigurationsType = [
13
13
  SectionComponent[],
14
14
  SidebarType
15
15
  ];
@@ -1,5 +1,5 @@
1
1
  import { Component } from "react";
2
- declare type TreePickerControlProps = {
2
+ type TreePickerControlProps = {
3
3
  onSelect: (value: string, description: string, findNode: any) => void;
4
4
  [key: string]: any;
5
5
  };
@@ -11,7 +11,7 @@ export declare class SimplePasswordControl extends Component<any> {
11
11
  render(): JSX.Element;
12
12
  }
13
13
  export declare const formatNumber: (value: number) => string;
14
- export declare type NumericTextControlProps = {
14
+ export type NumericTextControlProps = {
15
15
  value: any;
16
16
  title: any;
17
17
  styleLabel: any;
@@ -1,5 +1,5 @@
1
1
  import { Component, MouseEventHandler } from "react";
2
- declare type GenericPanelProps = {
2
+ type GenericPanelProps = {
3
3
  title: string;
4
4
  description: string;
5
5
  showPromptSuccess?: boolean;
@@ -13,7 +13,7 @@ declare type GenericPanelProps = {
13
13
  /********************MATERIAL UI STYLES********************************** */
14
14
  /************************************************************************* */
15
15
  declare const GenericPanel: ({ title, description, showPromptSuccess, showPromptError, onDismissSuccess, onDismissError, successMessage, error, children, }: GenericPanelProps) => JSX.Element;
16
- declare type MasterDetailPanelProps = {
16
+ type MasterDetailPanelProps = {
17
17
  title: string;
18
18
  onSave: MouseEventHandler;
19
19
  onCancel: MouseEventHandler;
@@ -27,11 +27,11 @@ declare class MasterDetailPanel extends Component<MasterDetailPanelProps> {
27
27
  useStyles(): (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
28
28
  render(): JSX.Element;
29
29
  }
30
- declare type ExtraButton = {
30
+ type ExtraButton = {
31
31
  name: string;
32
32
  onClick: MouseEventHandler;
33
33
  };
34
- declare type FilterPanelProps = {
34
+ type FilterPanelProps = {
35
35
  onClickExport?: Function;
36
36
  onClickReset: Function;
37
37
  OnClickGo: Function;
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';