techsbcn-storybook 0.2.2 → 0.3.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/dist/components/layouts/MainLayoutSimple/MainLayoutSimple.d.ts +8 -0
- package/dist/components/modals/ModalComponent.d.ts +17 -0
- package/dist/components/navigation/DrawerLayout/AppSidebar/AppSidebar.d.ts +8 -0
- package/dist/components/navigation/VerticalNav/VerticalNav.d.ts +20 -0
- package/dist/components/navigation/VerticalNav/VerticalNavItem.d.ts +8 -0
- package/dist/components/navigation/VerticalNav/VerticalNavItemCollapse.d.ts +8 -0
- package/dist/components/navigation/components/UserInfo.d.ts +6 -0
- package/dist/components/tables/SearchComponent.d.ts +21 -0
- package/dist/helpers/CheckPermission.d.ts +1 -0
- package/dist/helpers/GroupBy.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/stories/Layouts/MainLayoutSimple.stories.d.ts +5 -0
- package/dist/stories/{thing/Thing.stories.d.ts → Modal/Modal.stories.d.ts} +1 -2
- package/dist/techsbcn-storybook.cjs.development.js +286 -4
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +288 -8
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +3 -1
- package/src/components/fields/ButtonComponent/ButtonComponent.scss +0 -4
- package/src/components/layouts/MainLayoutSimple/MainLayoutSimple.scss +9 -0
- package/src/components/layouts/MainLayoutSimple/MainLayoutSimple.tsx +21 -0
- package/src/components/modals/ModalComponent.tsx +82 -0
- package/src/components/navigation/DrawerLayout/AppSidebar/AppSidebar.scss +7 -0
- package/src/components/navigation/DrawerLayout/AppSidebar/AppSidebar.tsx +27 -0
- package/src/components/navigation/VerticalNav/VerticalNav.scss +62 -0
- package/src/components/navigation/VerticalNav/VerticalNav.tsx +39 -0
- package/src/components/navigation/VerticalNav/VerticalNavItem.tsx +38 -0
- package/src/components/navigation/VerticalNav/VerticalNavItemCollapse.tsx +106 -0
- package/src/components/navigation/components/UserInfo.tsx +11 -0
- package/src/components/tables/SearchComponent.tsx +141 -0
- package/src/content/fonts/feather.eot +0 -0
- package/src/content/fonts/feather.svg +759 -0
- package/src/content/fonts/feather.ttf +0 -0
- package/src/content/fonts/feather.woff +0 -0
- package/src/helpers/CheckPermission.tsx +11 -0
- package/src/helpers/GroupBy.tsx +6 -0
- package/src/helpers/index.tsx +2 -0
- package/src/index.tsx +4 -0
- package/src/stories/Layouts/MainLayoutSimple.stories.tsx +73 -0
- package/src/stories/Modal/Modal.stories.tsx +30 -0
- package/src/styles/Globals.scss +27 -0
- package/dist/stories/thing/Thing.d.ts +0 -6
- package/src/stories/thing/Thing.scss +0 -4
- package/src/stories/thing/Thing.stories.tsx +0 -26
- package/src/stories/thing/Thing.tsx +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"techsbcn-storybook.cjs.development.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/wrappers/PublicFormWrapper/PublicFormWrapper.tsx","../src/components/fields/ButtonComponent/ButtonComponent.tsx","../src/components/fields/TextFieldComponent/TextFieldComponent.tsx","../src/components/forms/LoginForm.tsx","../src/components/forms/ChangePasswordForm.tsx","../src/components/forms/ResetPasswordForm.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material';\r\nimport './PublicFormWrapper.scss';\r\n\r\ninterface PublicFormWrapperProps {\r\n className?: string;\r\n}\r\n\r\nexport const PublicFormWrapper: React.FC<PublicFormWrapperProps> = (props) => {\r\n return (\r\n <Box\r\n height=\"100%\"\r\n className={`public-form-wrapper ${props.className ? props.className : ''}`}\r\n display=\"flex\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Container maxWidth=\"xs\">\r\n <Box className=\"wrapper-box\" p={1}>\r\n {props.children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Button, CircularProgress } from '@mui/material/';\r\nimport './ButtonComponent.scss';\r\n\r\nexport interface ButtonComponentProps {\r\n className?: string;\r\n label?: string;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n onClick?: () => void;\r\n loading?: boolean;\r\n form?: string;\r\n type?: 'button' | 'submit' | 'reset';\r\n disabled?: boolean;\r\n}\r\n\r\nexport const ButtonComponent: React.FC<ButtonComponentProps> = (props) => {\r\n return (\r\n <Button\r\n type={props.type && props.type}\r\n variant=\"contained\"\r\n form={props.form && props.form}\r\n className={`main-background-color ${props.className ? props.className : ''}`}\r\n startIcon={!props.loading && props.startIcon}\r\n endIcon={!props.loading && props.endIcon}\r\n onClick={props.onClick}\r\n disabled={!props.loading && props.disabled}\r\n >\r\n {props.loading ? <CircularProgress size={25} /> : props.label}\r\n </Button>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { TextField, Box } from '@mui/material/';\r\nimport './TextFieldComponent.scss';\r\n\r\nexport type InputType =\r\n | 'text'\r\n | 'radio'\r\n | 'checkbox'\r\n | 'textarea'\r\n | 'submit'\r\n | 'date'\r\n | 'hidden'\r\n | 'number'\r\n | 'range'\r\n | 'password'\r\n | 'time'\r\n | 'file';\r\n\r\ninterface TextFieldComponentProps {\r\n id?: string;\r\n label?: string;\r\n name?: string;\r\n value?: string | number;\r\n className?: string;\r\n type?: InputType;\r\n placeholder?: string;\r\n required?: boolean;\r\n disabled?: boolean;\r\n minNumber?: number;\r\n maxNumber?: number;\r\n error?: boolean;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n fullWidth?: boolean;\r\n helperText?: string;\r\n textFieldRef?: any;\r\n inputRef?: React.Ref<any>;\r\n autoComplete?: string;\r\n multiline?: boolean;\r\n rows?: number;\r\n maxLength?: number;\r\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\r\n onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n step?: number | string;\r\n}\r\n\r\nexport const TextFieldComponent: React.FC<TextFieldComponentProps> = (props) => {\r\n return (\r\n <Box className=\"text-field-component\" width=\"100%\">\r\n <TextField\r\n error={props.error}\r\n id={props.id}\r\n label={props.label}\r\n defaultValue={props.value}\r\n className={props.className}\r\n required={props.required}\r\n disabled={props.disabled}\r\n type={props.type}\r\n placeholder={props.placeholder}\r\n autoComplete={props.autoComplete}\r\n variant=\"standard\"\r\n ref={props.inputRef}\r\n InputProps={{\r\n disableUnderline: true,\r\n startAdornment: props.startIcon,\r\n endAdornment: props.endIcon,\r\n inputProps: {\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n step: props.step,\r\n },\r\n }}\r\n InputLabelProps={{ shrink: true }}\r\n helperText={props.helperText}\r\n fullWidth={props.fullWidth}\r\n multiline={props.multiline}\r\n rows={props.rows}\r\n onChange={props.onChange}\r\n onKeyUp={props.onKeyUp}\r\n inputProps={{\r\n maxLength: props.maxLength,\r\n step: props.step,\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n }}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nTextFieldComponent.defaultProps = {\r\n fullWidth: true,\r\n type: 'text',\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface LoginFormProps {\r\n onClick: (data: any) => void;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n loading: boolean;\r\n requiredText: { requiredTextMail: string; requiredTextPassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const LoginForm: React.FC<LoginFormProps> = (props) => {\r\n const LoginSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(LoginSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box my={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n placeholder={props.valuesText.placeholder1}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton aria-label=\"toggle password visibility\" onClick={handleClickShowPassword} size=\"small\">\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n loading={props.loading}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material/';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport * as yup from 'yup';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface ChangePasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextPassword: string; requiredTextSamePassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const ChangePasswordForm: React.FC<ChangePasswordFormProps> = (props) => {\r\n const validationSchema = yup.object().shape({\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n passwordConfirmation: yup\r\n .string()\r\n .when('password', (password: any, schema: any) => {\r\n if (password) return schema.required(props.requiredText.requiredTextPassword);\r\n })\r\n .oneOf([yup.ref('password'), null], props.requiredText.requiredTextSamePassword),\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(validationSchema),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const handleMouseDownPassword = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n event.preventDefault();\r\n };\r\n\r\n return (\r\n <Box>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box m={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n placeholder={props.valuesText.placeholder1}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'passwordConfirmation'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.passwordConfirmation}\r\n helperText={errors.passwordConfirmation?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box m={2}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface resetPasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextMail: string };\r\n valuesText: { buttonText: string; text: string; placeholder?: string };\r\n}\r\n\r\nexport const ResetPasswordForm: React.FC<resetPasswordFormProps> = (props) => {\r\n const ResetSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n });\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(ResetSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box mx={2} my={2}>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text}\r\n placeholder={props.valuesText.placeholder}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Box>\r\n <Box mx={2} mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n"],"names":["PublicFormWrapper","props","React","Box","height","className","display","justifyContent","alignItems","Container","maxWidth","p","children","ButtonComponent","Button","type","variant","form","startIcon","loading","endIcon","onClick","disabled","CircularProgress","size","label","TextFieldComponent","width","TextField","error","id","defaultValue","value","required","placeholder","autoComplete","ref","inputRef","InputProps","disableUnderline","startAdornment","endAdornment","inputProps","max","maxNumber","min","minNumber","step","InputLabelProps","shrink","helperText","fullWidth","multiline","rows","onChange","onKeyUp","maxLength","defaultProps","LoginForm","LoginSchema","yup","shape","email","requiredText","requiredTextMail","password","requiredTextPassword","useState","showPassword","setShownPassword","handleClickShowPassword","useForm","resolver","yupResolver","control","handleSubmit","errors","formState","m","topComponent","my","Grid","container","direction","spacing","item","Controller","name","render","field","valuesText","text1","placeholder1","message","e","text2","placeholder2","IconButton","Visibility","VisibilityOff","mb","buttonText","bottomComponent","ChangePasswordForm","validationSchema","passwordConfirmation","when","schema","oneOf","requiredTextSamePassword","handleMouseDownPassword","event","preventDefault","onMouseDown","ResetPasswordForm","ResetSchema","mx","text"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC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E;AAAGhB,IAAAA,EAAE,EAAE;GAAhB,EACElG,4BAAA,CAACW,eAAD;AACEY,IAAAA,KAAK,EAAExB,KAAK,CAACyF,UAAN,CAAiBW;AACxBhG,IAAAA,SAAS,EAAC;AACVgB,IAAAA,OAAO,EAAEsD,YAAY,CAAC1E,KAAK,CAACoB,OAAP;AACrBF,IAAAA,OAAO,EAAElB,KAAK,CAACkB;GAJjB,CADF,CAtBF,EA8BGlB,KAAK,CAACqG,eAAN,IAAyBpG,4BAAA,CAACC,YAAD;AAAK2E,IAAAA,CAAC,EAAE;GAAR,EAAY7E,KAAK,CAACqG,eAAlB,CA9B5B,CADF;AAkCD,CA/CM;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"techsbcn-storybook.cjs.development.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/wrappers/PublicFormWrapper/PublicFormWrapper.tsx","../src/components/layouts/MainLayoutSimple/MainLayoutSimple.tsx","../src/helpers/CheckPermission.tsx","../src/components/navigation/VerticalNav/VerticalNavItem.tsx","../src/components/navigation/VerticalNav/VerticalNavItemCollapse.tsx","../src/components/navigation/VerticalNav/VerticalNav.tsx","../src/components/navigation/DrawerLayout/AppSidebar/AppSidebar.tsx","../src/components/fields/ButtonComponent/ButtonComponent.tsx","../src/components/fields/TextFieldComponent/TextFieldComponent.tsx","../src/components/forms/LoginForm.tsx","../src/components/forms/ChangePasswordForm.tsx","../src/components/forms/ResetPasswordForm.tsx","../src/components/modals/ModalComponent.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material';\r\nimport './PublicFormWrapper.scss';\r\n\r\ninterface PublicFormWrapperProps {\r\n className?: string;\r\n}\r\n\r\nexport const PublicFormWrapper: React.FC<PublicFormWrapperProps> = (props) => {\r\n return (\r\n <Box\r\n height=\"100%\"\r\n className={`public-form-wrapper ${props.className ? props.className : ''}`}\r\n display=\"flex\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Container maxWidth=\"xs\">\r\n <Box className=\"wrapper-box\" p={1}>\r\n {props.children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material/';\r\nimport './MainLayoutSimple.scss';\r\n\r\ninterface MainLayoutSimpleProps {\r\n lateralComponent?: React.ReactNode;\r\n mainComponent: any;\r\n}\r\n\r\nexport const MainLayoutSimple: React.FC<MainLayoutSimpleProps> = (props) => {\r\n return (\r\n <Box display=\"flex\" flexDirection=\"row\" className=\"main-layout-simple\">\r\n {props.lateralComponent && <Box className=\"lateral-component\">{props.lateralComponent}</Box>}\r\n <Box className=\"main-wrapper\">\r\n <Box className={`${props.lateralComponent ? 'split-container' : ''}`}>\r\n <Container maxWidth={false}>{props.mainComponent}</Container>\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n","export const checkPermission = (persmisionAvailable?: any, userRoles?: any) => {\r\n if (persmisionAvailable === null || persmisionAvailable === undefined || persmisionAvailable.length === 0) {\r\n return true;\r\n }\r\n\r\n if (userRoles && Array.isArray(userRoles) && Array.isArray(persmisionAvailable)) {\r\n return persmisionAvailable.some((r) => userRoles.indexOf(r) >= 0);\r\n }\r\n\r\n return userRoles.indexOf(persmisionAvailable) >= 0;\r\n};\r\n","import { Box } from '@mui/material';\r\nimport { NavigationProps } from './VerticalNav';\r\nimport React, { useMemo, useState } from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\nimport { checkPermission } from '../../../helpers';\r\n\r\ninterface VerticalNavItemProps {\r\n item: NavigationProps;\r\n userPermisions?: string[];\r\n}\r\n\r\nconst VerticalNavItem: React.FC<VerticalNavItemProps> = (props) => {\r\n const [hover, setHover] = useState(false);\r\n\r\n const hasPermission = useMemo(\r\n () => checkPermission(props.item.persmisionAvailable, props.userPermisions),\r\n [props.item.persmisionAvailable, props.userPermisions]\r\n );\r\n\r\n if (!hasPermission) {\r\n return null;\r\n }\r\n\r\n return (\r\n <NavLink to={props.item.route || ''} className=\"nav-link-item\">\r\n <Box\r\n p={2}\r\n className={`nav-item ${hover ? 'main-color' : ''}`}\r\n onMouseEnter={() => setHover(true)}\r\n onMouseLeave={() => setHover(false)}\r\n >\r\n <Box className={`nav-item-text ${hover ? 'main-color' : ''}`}>{props.item.title}</Box>\r\n </Box>\r\n </NavLink>\r\n );\r\n};\r\n\r\nexport default React.memo(VerticalNavItem);\r\n","import React, { useEffect, useState, useMemo } from 'react';\r\nimport { Box, Collapse, Grid } from '@mui/material';\r\nimport { ChevronRight, ExpandMore } from '@mui/icons-material';\r\nimport { NavigationProps, NavigationType } from './VerticalNav';\r\nimport VerticalNavItem from './VerticalNavItem';\r\nimport { useLocation } from 'react-router-dom';\r\nimport { checkPermission } from '../../../helpers';\r\n\r\nconst needsToBeOpened = (pathname: string, item: NavigationProps): boolean => {\r\n if (pathname) {\r\n return isUrlInChildren(item, pathname);\r\n }\r\n return false;\r\n};\r\n\r\nconst isUrlInChildren = (parent: any, url: string) => {\r\n if (!parent.children) {\r\n return false;\r\n }\r\n\r\n for (let i = 0; i < parent.children.length; i++) {\r\n if (parent.children[i].children) {\r\n if (isUrlInChildren(parent.children[i], url)) {\r\n return true;\r\n }\r\n }\r\n\r\n if (parent.children[i].route === url || url.includes(parent.children[i].route)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n};\r\n\r\ninterface VerticalNavItemCollapseProps {\r\n item: NavigationProps;\r\n userPermisions?: string[];\r\n}\r\n\r\nconst VerticalNavItemCollapse: React.FC<VerticalNavItemCollapseProps> = (props) => {\r\n const { pathname } = useLocation();\r\n const [open, setOpen] = useState(() => needsToBeOpened(pathname, props.item));\r\n const [hover, setHover] = useState(false);\r\n\r\n useEffect(() => {\r\n if (needsToBeOpened(pathname, props.item)) {\r\n setOpen(true);\r\n }\r\n }, [pathname, props]);\r\n\r\n const handleClick = () => {\r\n setOpen(!open);\r\n };\r\n\r\n const hasPermission = useMemo(\r\n () => checkPermission(props.item.persmisionAvailable, props.userPermisions),\r\n [props.item.persmisionAvailable, props.userPermisions]\r\n );\r\n\r\n if (!hasPermission) {\r\n return null;\r\n }\r\n\r\n return (\r\n <Box className=\"nav-item-collapse\">\r\n <Box\r\n p={2}\r\n display=\"flex\"\r\n alignContent=\"flex-end\"\r\n alignItems=\"center\"\r\n className={`nav-item ${hover ? 'main-color' : ''} ${open ? 'open' : ''} ${\r\n needsToBeOpened(pathname, props.item) ? 'active' : ''\r\n }`}\r\n onClick={handleClick}\r\n onMouseEnter={() => setHover(true)}\r\n onMouseLeave={() => setHover(false)}\r\n >\r\n <Box className={`nav-item-text ${hover ? 'main-color' : ''}`}>{props.item.title}</Box>\r\n <Box ml=\"auto\" display=\"flex\">\r\n {open ? <ExpandMore /> : <ChevronRight />}\r\n </Box>\r\n </Box>\r\n {props.item.children && Array.isArray(props.item.children) && (\r\n <Collapse in={open} className=\"collapse-children\">\r\n <Box>\r\n <Grid container>\r\n {props.item.children.map((item: any) => (\r\n <Grid item key={item.id} xs={12}>\r\n {item.type === NavigationType.Collapse && (\r\n <VerticalNavItemCollapse item={item} userPermisions={props.userPermisions} />\r\n )}\r\n {item.type === NavigationType.Item && (\r\n <VerticalNavItem item={item} userPermisions={props.userPermisions} />\r\n )}\r\n </Grid>\r\n ))}\r\n </Grid>\r\n </Box>\r\n </Collapse>\r\n )}\r\n </Box>\r\n );\r\n};\r\n\r\nexport default React.memo(VerticalNavItemCollapse);\r\n","import React from 'react';\r\nimport { Grid } from '@mui/material';\r\nimport VerticalNavItem from './VerticalNavItem';\r\nimport VerticalNavItemCollapse from './VerticalNavItemCollapse';\r\nimport './VerticalNav.scss';\r\n\r\nexport enum NavigationType {\r\n Item = 0,\r\n Collapse = 1,\r\n}\r\n\r\nexport interface NavigationProps {\r\n id: string;\r\n title?: string;\r\n route?: string;\r\n type?: NavigationType;\r\n persmisionAvailable?: string | string[];\r\n children?: NavigationProps[] | NavigationProps;\r\n}\r\n\r\ninterface VerticalNavProps {\r\n items: NavigationProps[];\r\n userPermisions?: string[];\r\n}\r\n\r\nexport const VerticalNav: React.FC<VerticalNavProps> = (props) => {\r\n return (\r\n <Grid container className=\"vertical-navigation\">\r\n {props.items.map((item: NavigationProps) => (\r\n <Grid item key={item.id} xs={12} md={12} className=\"grid-item-navigation\">\r\n {item.type === NavigationType.Collapse && (\r\n <VerticalNavItemCollapse item={item} userPermisions={props.userPermisions} />\r\n )}\r\n {item.type === NavigationType.Item && <VerticalNavItem item={item} userPermisions={props.userPermisions} />}\r\n </Grid>\r\n ))}\r\n </Grid>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Drawer } from '@mui/material';\r\nimport './AppSidebar.scss';\r\n\r\ninterface AppSidebarProps {\r\n onHide?: () => void;\r\n open?: boolean;\r\n}\r\n\r\nexport const AppSidebar: React.FC<AppSidebarProps> = (props) => {\r\n return (\r\n <Box height=\"100%\" className=\"app-sidebar\">\r\n <Drawer\r\n anchor={'left'}\r\n className=\"drawer-nav\"\r\n open={props.open}\r\n onClose={props.onHide}\r\n sx={{ display: { xs: 'block', lg: 'none' } }}\r\n >\r\n {props.children}\r\n </Drawer>\r\n <Box position=\"sticky\" top=\"0\" sx={{ display: { xs: 'none', lg: 'block' } }}>\r\n {props.children}\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Button, CircularProgress } from '@mui/material/';\r\nimport './ButtonComponent.scss';\r\n\r\nexport interface ButtonComponentProps {\r\n className?: string;\r\n label?: string;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n onClick?: () => void;\r\n loading?: boolean;\r\n form?: string;\r\n type?: 'button' | 'submit' | 'reset';\r\n disabled?: boolean;\r\n}\r\n\r\nexport const ButtonComponent: React.FC<ButtonComponentProps> = (props) => {\r\n return (\r\n <Button\r\n type={props.type && props.type}\r\n variant=\"contained\"\r\n form={props.form && props.form}\r\n className={`main-background-color ${props.className ? props.className : ''}`}\r\n startIcon={!props.loading && props.startIcon}\r\n endIcon={!props.loading && props.endIcon}\r\n onClick={props.onClick}\r\n disabled={!props.loading && props.disabled}\r\n >\r\n {props.loading ? <CircularProgress size={25} /> : props.label}\r\n </Button>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { TextField, Box } from '@mui/material/';\r\nimport './TextFieldComponent.scss';\r\n\r\nexport type InputType =\r\n | 'text'\r\n | 'radio'\r\n | 'checkbox'\r\n | 'textarea'\r\n | 'submit'\r\n | 'date'\r\n | 'hidden'\r\n | 'number'\r\n | 'range'\r\n | 'password'\r\n | 'time'\r\n | 'file';\r\n\r\ninterface TextFieldComponentProps {\r\n id?: string;\r\n label?: string;\r\n name?: string;\r\n value?: string | number;\r\n className?: string;\r\n type?: InputType;\r\n placeholder?: string;\r\n required?: boolean;\r\n disabled?: boolean;\r\n minNumber?: number;\r\n maxNumber?: number;\r\n error?: boolean;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n fullWidth?: boolean;\r\n helperText?: string;\r\n textFieldRef?: any;\r\n inputRef?: React.Ref<any>;\r\n autoComplete?: string;\r\n multiline?: boolean;\r\n rows?: number;\r\n maxLength?: number;\r\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\r\n onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n step?: number | string;\r\n}\r\n\r\nexport const TextFieldComponent: React.FC<TextFieldComponentProps> = (props) => {\r\n return (\r\n <Box className=\"text-field-component\" width=\"100%\">\r\n <TextField\r\n error={props.error}\r\n id={props.id}\r\n label={props.label}\r\n defaultValue={props.value}\r\n className={props.className}\r\n required={props.required}\r\n disabled={props.disabled}\r\n type={props.type}\r\n placeholder={props.placeholder}\r\n autoComplete={props.autoComplete}\r\n variant=\"standard\"\r\n ref={props.inputRef}\r\n InputProps={{\r\n disableUnderline: true,\r\n startAdornment: props.startIcon,\r\n endAdornment: props.endIcon,\r\n inputProps: {\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n step: props.step,\r\n },\r\n }}\r\n InputLabelProps={{ shrink: true }}\r\n helperText={props.helperText}\r\n fullWidth={props.fullWidth}\r\n multiline={props.multiline}\r\n rows={props.rows}\r\n onChange={props.onChange}\r\n onKeyUp={props.onKeyUp}\r\n inputProps={{\r\n maxLength: props.maxLength,\r\n step: props.step,\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n }}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nTextFieldComponent.defaultProps = {\r\n fullWidth: true,\r\n type: 'text',\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface LoginFormProps {\r\n onClick: (data: any) => void;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n loading: boolean;\r\n requiredText: { requiredTextMail: string; requiredTextPassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const LoginForm: React.FC<LoginFormProps> = (props) => {\r\n const LoginSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(LoginSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box my={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n placeholder={props.valuesText.placeholder1}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton aria-label=\"toggle password visibility\" onClick={handleClickShowPassword} size=\"small\">\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n loading={props.loading}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material/';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport * as yup from 'yup';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface ChangePasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextPassword: string; requiredTextSamePassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const ChangePasswordForm: React.FC<ChangePasswordFormProps> = (props) => {\r\n const validationSchema = yup.object().shape({\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n passwordConfirmation: yup\r\n .string()\r\n .when('password', (password: any, schema: any) => {\r\n if (password) return schema.required(props.requiredText.requiredTextPassword);\r\n })\r\n .oneOf([yup.ref('password'), null], props.requiredText.requiredTextSamePassword),\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(validationSchema),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const handleMouseDownPassword = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n event.preventDefault();\r\n };\r\n\r\n return (\r\n <Box>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box m={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n placeholder={props.valuesText.placeholder1}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'passwordConfirmation'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.passwordConfirmation}\r\n helperText={errors.passwordConfirmation?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box m={2}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface resetPasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextMail: string };\r\n valuesText: { buttonText: string; text: string; placeholder?: string };\r\n}\r\n\r\nexport const ResetPasswordForm: React.FC<resetPasswordFormProps> = (props) => {\r\n const ResetSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n });\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(ResetSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box mx={2} my={2}>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text}\r\n placeholder={props.valuesText.placeholder}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Box>\r\n <Box mx={2} mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Dialog, DialogTitle, DialogContent, DialogActions, IconButton } from '@mui/material';\r\nimport { ButtonComponent, ButtonComponentProps } from '../fields/ButtonComponent/ButtonComponent';\r\nimport { Close } from '@mui/icons-material';\r\n\r\ninterface ModalComponentProps {\r\n idClass?: string;\r\n setShow: boolean;\r\n title?: string;\r\n modalSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;\r\n fullWidth?: boolean;\r\n fullScreen?: boolean;\r\n submitButton?: ButtonComponentProps;\r\n cancelButton?: ButtonComponentProps;\r\n loading?: boolean;\r\n onHide: () => void;\r\n dividers?: boolean;\r\n}\r\n\r\nexport const ModalComponent: React.FC<ModalComponentProps> = (props) => {\r\n return (\r\n <Dialog\r\n open={props.setShow}\r\n id={props.idClass}\r\n fullWidth={props.fullWidth}\r\n fullScreen={props.fullScreen}\r\n maxWidth={props.modalSize}\r\n className=\"modal-component\"\r\n aria-labelledby=\"modal-title\"\r\n aria-describedby=\"modal-description\"\r\n onClose={props.onHide}\r\n scroll=\"body\"\r\n PaperProps={{ sx: { overflowY: 'unset' } }}\r\n >\r\n <DialogTitle id=\"modal-title\">\r\n <Box display=\"flex\" alignItems=\"center\">\r\n {props.title}\r\n {props.onHide && (\r\n <Box\r\n sx={{\r\n margin: '-1rem -1rem -1rem auto',\r\n }}\r\n >\r\n <IconButton aria-label=\"close\" onClick={props.onHide}>\r\n <Close />\r\n </IconButton>\r\n </Box>\r\n )}\r\n </Box>\r\n </DialogTitle>\r\n <DialogContent sx={{ overflowY: 'unset' }} id=\"modal-description\" dividers={props.dividers}>\r\n {props.children}\r\n </DialogContent>\r\n <DialogActions>\r\n {props.cancelButton && (\r\n <ButtonComponent\r\n disabled={props.loading}\r\n className={`btn-modal-cancel ${props.cancelButton.className ? props.cancelButton.className : ''}`}\r\n onClick={props.cancelButton.onClick ? props.cancelButton.onClick : props.onHide}\r\n {...props.cancelButton}\r\n />\r\n )}\r\n {props.submitButton && (\r\n <ButtonComponent\r\n className={`btn-modal-submit main-background-color ${\r\n props.submitButton.className ? props.submitButton.className : ''\r\n }`}\r\n loading={props.loading}\r\n {...props.submitButton}\r\n />\r\n )}\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n};\r\n\r\nModalComponent.defaultProps = {\r\n modalSize: 'sm',\r\n fullWidth: true,\r\n loading: false,\r\n dividers: true,\r\n};\r\n"],"names":["PublicFormWrapper","props","React","Box","height","className","display","justifyContent","alignItems","Container","maxWidth","p","children","MainLayoutSimple","flexDirection","lateralComponent","mainComponent","checkPermission","persmisionAvailable","userRoles","undefined","length","Array","isArray","some","r","indexOf","VerticalNavItem","useState","hover","setHover","hasPermission","useMemo","item","userPermisions","NavLink","to","route","onMouseEnter","onMouseLeave","title","memo","needsToBeOpened","pathname","isUrlInChildren","parent","url","i","includes","VerticalNavItemCollapse","useLocation","open","setOpen","useEffect","handleClick","alignContent","onClick","ml","ExpandMore","ChevronRight","Collapse","Grid","container","map","key","id","xs","type","NavigationType","Item","VerticalNav","items","md","AppSidebar","Drawer","anchor","onClose","onHide","sx","lg","position","top","ButtonComponent","Button","variant","form","startIcon","loading","endIcon","disabled","CircularProgress","size","label","TextFieldComponent","width","TextField","error","defaultValue","value","required","placeholder","autoComplete","ref","inputRef","InputProps","disableUnderline","startAdornment","endAdornment","inputProps","max","maxNumber","min","minNumber","step","InputLabelProps","shrink","helperText","fullWidth","multiline","rows","onChange","onKeyUp","maxLength","defaultProps","LoginForm","LoginSchema","yup","shape","email","requiredText","requiredTextMail","password","requiredTextPassword","showPassword","setShownPassword","handleClickShowPassword","useForm","resolver","yupResolver","control","handleSubmit","errors","formState","m","topComponent","my","direction","spacing","Controller","name","render","field","valuesText","text1","placeholder1","message","e","text2","placeholder2","IconButton","Visibility","VisibilityOff","mb","buttonText","bottomComponent","ChangePasswordForm","validationSchema","passwordConfirmation","when","schema","oneOf","requiredTextSamePassword","handleMouseDownPassword","event","preventDefault","onMouseDown","ResetPasswordForm","ResetSchema","mx","text","ModalComponent","Dialog","setShow","idClass","fullScreen","modalSize","scroll","PaperProps","overflowY","DialogTitle","margin","Close","DialogContent","dividers","DialogActions","cancelButton","submitButton"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAA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+CACPJ,KAAK,CAACmM,YAAN,CAAmB/L,SAAnB,GAA+BJ,KAAK,CAACmM,YAAN,CAAmB/L,SAAlD,GAA8D,EADvD;AAGTkF,IAAAA,OAAO,EAAEtF,KAAK,CAACsF;KACXtF,KAAK,CAACmM,aALZ,CAVJ,CAhCF,CADF;AAsDD,CAvDM;AAyDPhB,cAAc,CAACzD,YAAf,GAA8B;AAC5B8D,EAAAA,SAAS,EAAE,IADiB;AAE5BpE,EAAAA,SAAS,EAAE,IAFiB;AAG5B9B,EAAAA,OAAO,EAAE,KAHmB;AAI5B0G,EAAAA,QAAQ,EAAE;AAJkB,CAA9B;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,o=require("@mui/material"),r=require("@mui/material/"),a=require("yup"),l=require("react-hook-form"),i=require("@hookform/resolvers/yup"),m=require("@mui/icons-material");function s(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}s(".public-form-wrapper .wrapper-box {\n background: white;\n border-radius: 5px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\n}"),s(".MuiButton-root {\n width: auto;\n padding: 0.8rem 1rem !important;\n text-transform: inherit !important;\n line-height: inherit !important;\n font-size: calc(12pt + (14 - 12) * calc(100vw - 300px)/1300) !important;\n box-shadow: none !important;\n}\n.MuiButton-root.btn-login {\n width: 100%;\n}\n.MuiButton-root.btn-modal-cancel {\n background-color: #666666 !important;\n}\n.MuiButton-root:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.MuiButton-root .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-label {\n font-size: calc(12pt + (14 - 12) * calc(100vw - 300px)/1300) !important;\n}\n.MuiButton-root .MuiButton-label .MuiCircularProgress-root {\n color: white !important;\n}");var p=function(e){return n.createElement(r.Button,{type:e.type&&e.type,variant:"contained",form:e.form&&e.form,className:"main-background-color "+(e.className?e.className:""),startIcon:!e.loading&&e.startIcon,endIcon:!e.loading&&e.endIcon,onClick:e.onClick,disabled:!e.loading&&e.disabled},e.loading?n.createElement(r.CircularProgress,{size:25}):e.label)};s(".text-field-component .MuiFormLabel-root + .MuiInputBase-formControl {\n margin-top: 22px !important;\n}\n.text-field-component .MuiInputBase-root {\n color: grey !important;\n border: 1px solid grey;\n padding: 0.43rem 0.87rem;\n background-color: white !important;\n border-radius: 3px !important;\n}\n.text-field-component .MuiInputBase-root.Mui-error {\n border: 1px solid #F24726 !important;\n}\n.text-field-component .MuiInputBase-root:not(.Mui-disabled):hover {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root.Mui-focused {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input {\n color: #666666 !important;\n background-color: white !important;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input::placeholder {\n text-overflow: ellipsis !important;\n color: #666666 !important;\n opacity: 1;\n}\n.text-field-component .MuiInputBase-root .Mui-disabled {\n -webkit-text-fill-color: #666666 !important;\n}\n.text-field-component .MuiFormHelperText-root {\n padding: 0 !important;\n font-size: 0.85rem !important;\n}");var u=function(e){return n.createElement(r.Box,{className:"text-field-component",width:"100%"},n.createElement(r.TextField,{error:e.error,id:e.id,label:e.label,defaultValue:e.value,className:e.className,required:e.required,disabled:e.disabled,type:e.type,placeholder:e.placeholder,autoComplete:e.autoComplete,variant:"standard",ref:e.inputRef,InputProps:{disableUnderline:!0,startAdornment:e.startIcon,endAdornment:e.endIcon,inputProps:{max:e.maxNumber,min:e.minNumber,step:e.step}},InputLabelProps:{shrink:!0},helperText:e.helperText,fullWidth:e.fullWidth,multiline:e.multiline,rows:e.rows,onChange:e.onChange,onKeyUp:e.onKeyUp,inputProps:{maxLength:e.maxLength,step:e.step,max:e.maxNumber,min:e.minNumber}}))};u.defaultProps={fullWidth:!0,type:"text"},exports.ButtonComponent=p,exports.ChangePasswordForm=function(e){var o=a.object().shape({password:a.string().required(e.requiredText.requiredTextPassword),passwordConfirmation:a.string().when("password",(function(t,n){if(t)return n.required(e.requiredText.requiredTextPassword)})).oneOf([a.ref("password"),null],e.requiredText.requiredTextSamePassword)}),s=l.useForm({resolver:i.yupResolver(o)}),c=s.handleSubmit,d=s.control,x=s.formState.errors,f=t.useState(!1),b=f[0],h=f[1],g=function(){h(!b)},C=function(e){e.preventDefault()};return n.createElement(r.Box,null,e.topComponent&&n.createElement(r.Box,{m:2},e.topComponent),n.createElement(r.Box,{m:2},n.createElement(r.Grid,{container:!0,direction:"column",spacing:1},n.createElement(r.Grid,{item:!0},n.createElement(l.Controller,{control:d,name:"password",render:function(t){var o,a=t.field,l=a.onChange;return n.createElement(u,{label:e.valuesText.text1,type:b?"text":"password",error:!!x.password,placeholder:e.valuesText.placeholder1,helperText:null==(o=x.password)?void 0:o.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(r.IconButton,{"aria-label":"toggle password visibility",onClick:g,onMouseDown:C,size:"small"},n.createElement(b?m.Visibility:m.VisibilityOff,null))})}})),n.createElement(r.Grid,{item:!0},n.createElement(l.Controller,{control:d,name:"passwordConfirmation",render:function(t){var o,a=t.field,l=a.onChange;return n.createElement(u,{label:e.valuesText.text2,placeholder:e.valuesText.placeholder2,type:b?"text":"password",error:!!x.passwordConfirmation,helperText:null==(o=x.passwordConfirmation)?void 0:o.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(r.IconButton,{"aria-label":"toggle password visibility",onClick:g,onMouseDown:C,size:"small"},n.createElement(b?m.Visibility:m.VisibilityOff,null))})}})))),n.createElement(r.Box,{m:2},n.createElement(p,{label:e.valuesText.buttonText,className:"btn-login",onClick:c(e.onClick),loading:e.loading})),e.bottomComponent&&n.createElement(r.Box,{m:2},e.bottomComponent))},exports.LoginForm=function(e){var r=a.object().shape({email:a.string().required(e.requiredText.requiredTextMail),password:a.string().required(e.requiredText.requiredTextPassword)}),s=t.useState(!1),c=s[0],d=s[1],x=function(){d(!c)},f=l.useForm({resolver:i.yupResolver(r)}),b=f.control,h=f.handleSubmit,g=f.formState.errors;return n.createElement(o.Box,{m:2},e.topComponent&&n.createElement(o.Box,{m:2},e.topComponent),n.createElement(o.Box,{my:2},n.createElement(o.Grid,{container:!0,direction:"column",spacing:1},n.createElement(o.Grid,{item:!0},n.createElement(l.Controller,{control:b,name:"email",render:function(t){var o,r=t.field,a=r.onChange;return n.createElement(u,{label:e.valuesText.text1,placeholder:e.valuesText.placeholder1,autoComplete:"email",error:!!g.email,helperText:null==(o=g.email)?void 0:o.message,name:r.name,inputRef:r.ref,onChange:function(e){a(e)}})}})),n.createElement(o.Grid,{item:!0},n.createElement(l.Controller,{control:b,name:"password",render:function(t){var r,a=t.field,l=a.onChange;return n.createElement(u,{label:e.valuesText.text2,placeholder:e.valuesText.placeholder2,type:c?"text":"password",error:!!g.password,helperText:null==(r=g.password)?void 0:r.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(o.IconButton,{"aria-label":"toggle password visibility",onClick:x,size:"small"},n.createElement(c?m.Visibility:m.VisibilityOff,null))})}})))),n.createElement(o.Box,{mb:5},n.createElement(p,{label:e.valuesText.buttonText,loading:e.loading,className:"btn-login",onClick:h(e.onClick)})),e.bottomComponent&&n.createElement(o.Box,{m:2},e.bottomComponent))},exports.PublicFormWrapper=function(e){return n.createElement(o.Box,{height:"100%",className:"public-form-wrapper "+(e.className?e.className:""),display:"flex",justifyContent:"center",alignItems:"center"},n.createElement(o.Container,{maxWidth:"xs"},n.createElement(o.Box,{className:"wrapper-box",p:1},e.children)))},exports.ResetPasswordForm=function(e){var t=a.object().shape({email:a.string().required(e.requiredText.requiredTextMail)}),r=l.useForm({resolver:i.yupResolver(t)}),m=r.control,s=r.handleSubmit,c=r.formState.errors;return n.createElement(o.Box,{m:2},e.topComponent&&n.createElement(o.Box,{m:2},e.topComponent),n.createElement(o.Box,{mx:2,my:2},n.createElement(l.Controller,{control:m,name:"email",render:function(t){var o,r=t.field,a=r.onChange;return n.createElement(u,{label:e.valuesText.text,placeholder:e.valuesText.placeholder,autoComplete:"email",error:!!c.email,helperText:null==(o=c.email)?void 0:o.message,name:r.name,inputRef:r.ref,onChange:function(e){a(e)}})}})),n.createElement(o.Box,{mx:2,mb:5},n.createElement(p,{label:e.valuesText.buttonText,className:"btn-login",onClick:s(e.onClick),loading:e.loading})),e.bottomComponent&&n.createElement(o.Box,{m:2},e.bottomComponent))},exports.TextFieldComponent=u;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,o=require("@mui/material"),r=require("@mui/material/"),a=require("react-router-dom"),i=require("@mui/icons-material"),l=require("yup"),m=require("react-hook-form"),s=require("@hookform/resolvers/yup");function c(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}c(".public-form-wrapper .wrapper-box {\n background: white;\n border-radius: 5px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\n}"),c('.main-layout-simple {\n width: 100%;\n}\n.main-layout-simple .main-wrapper {\n width: 100%;\n min-height: 100vh;\n height: fit-content;\n position: "relative";\n}');var u,p=function(e,t){return null==e||0===e.length||(t&&Array.isArray(t)&&Array.isArray(e)?e.some((function(e){return t.indexOf(e)>=0})):t.indexOf(e)>=0)},d=function(e){var r=t.useState(!1),i=r[0],l=r[1];return t.useMemo((function(){return p(e.item.persmisionAvailable,e.userPermisions)}),[e.item.persmisionAvailable,e.userPermisions])?n.createElement(a.NavLink,{to:e.item.route||"",className:"nav-link-item"},n.createElement(o.Box,{p:2,className:"nav-item "+(i?"main-color":""),onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)}},n.createElement(o.Box,{className:"nav-item-text "+(i?"main-color":"")},e.item.title))):null},x=n.memo(d),v=function(e,t){return!!e&&f(t,e)},f=function e(t,n){if(!t.children)return!1;for(var o=0;o<t.children.length;o++){if(t.children[o].children&&e(t.children[o],n))return!0;if(t.children[o].route===n||n.includes(t.children[o].route))return!0}return!1},g=function e(r){var l=a.useLocation().pathname,m=t.useState((function(){return v(l,r.item)})),s=m[0],c=m[1],u=t.useState(!1),d=u[0],f=u[1];return t.useEffect((function(){v(l,r.item)&&c(!0)}),[l,r]),t.useMemo((function(){return p(r.item.persmisionAvailable,r.userPermisions)}),[r.item.persmisionAvailable,r.userPermisions])?n.createElement(o.Box,{className:"nav-item-collapse"},n.createElement(o.Box,{p:2,display:"flex",alignContent:"flex-end",alignItems:"center",className:"nav-item "+(d?"main-color":"")+" "+(s?"open":"")+" "+(v(l,r.item)?"active":""),onClick:function(){c(!s)},onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)}},n.createElement(o.Box,{className:"nav-item-text "+(d?"main-color":"")},r.item.title),n.createElement(o.Box,{ml:"auto",display:"flex"},n.createElement(s?i.ExpandMore:i.ChevronRight,null))),r.item.children&&Array.isArray(r.item.children)&&n.createElement(o.Collapse,{in:s,className:"collapse-children"},n.createElement(o.Box,null,n.createElement(o.Grid,{container:!0},r.item.children.map((function(t){return n.createElement(o.Grid,{item:!0,key:t.id,xs:12},t.type===exports.NavigationType.Collapse&&n.createElement(e,{item:t,userPermisions:r.userPermisions}),t.type===exports.NavigationType.Item&&n.createElement(x,{item:t,userPermisions:r.userPermisions}))})))))):null},h=n.memo(g);c(".vertical-navigation {\n background: transparent;\n color: #a9b7d0;\n}\n.vertical-navigation .nav-item {\n cursor: pointer;\n}\n.vertical-navigation .nav-item svg {\n font-size: 32px;\n}\n.vertical-navigation .nav-item:hover {\n color: #04a9f5;\n}\n.vertical-navigation .nav-item:hover .nav-item-text {\n color: #04a9f5;\n}\n.vertical-navigation .active .nav-item {\n background-color: #333f54;\n}\n.vertical-navigation .active .nav-item .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .active .nav-item:hover {\n color: white !important;\n}\n.vertical-navigation .active .nav-item:hover .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active {\n background-color: #333f54;\n}\n.vertical-navigation .nav-item-collapse .active .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active:hover {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active:hover .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .open {\n background-color: #333f54;\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .open .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .collapse-children {\n background-color: #39465e;\n}\n.vertical-navigation .nav-item-collapse .collapse-children .nav-item-text {\n padding-left: 16px;\n padding-right: 16px;\n}"),(u=exports.NavigationType||(exports.NavigationType={}))[u.Item=0]="Item",u[u.Collapse=1]="Collapse",c(".app-sidebar {\n width: 19rem;\n background-color: #3f4d67;\n box-shadow: 1px 0 20px 0 #3f4d67;\n z-index: 1029;\n color: #a9b7d0;\n}"),c(".MuiButton-root {\n width: auto;\n padding: 0.8rem 1rem !important;\n text-transform: inherit !important;\n line-height: inherit !important;\n box-shadow: none !important;\n}\n.MuiButton-root.btn-login {\n width: 100%;\n}\n.MuiButton-root.btn-modal-cancel {\n background-color: #666666 !important;\n}\n.MuiButton-root:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.MuiButton-root .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-label .MuiCircularProgress-root {\n color: white !important;\n}");var b=function(e){return n.createElement(r.Button,{type:e.type&&e.type,variant:"contained",form:e.form&&e.form,className:"main-background-color "+(e.className?e.className:""),startIcon:!e.loading&&e.startIcon,endIcon:!e.loading&&e.endIcon,onClick:e.onClick,disabled:!e.loading&&e.disabled},e.loading?n.createElement(r.CircularProgress,{size:25}):e.label)};c(".text-field-component .MuiFormLabel-root + .MuiInputBase-formControl {\n margin-top: 22px !important;\n}\n.text-field-component .MuiInputBase-root {\n color: grey !important;\n border: 1px solid grey;\n padding: 0.43rem 0.87rem;\n background-color: white !important;\n border-radius: 3px !important;\n}\n.text-field-component .MuiInputBase-root.Mui-error {\n border: 1px solid #F24726 !important;\n}\n.text-field-component .MuiInputBase-root:not(.Mui-disabled):hover {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root.Mui-focused {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input {\n color: #666666 !important;\n background-color: white !important;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input::placeholder {\n text-overflow: ellipsis !important;\n color: #666666 !important;\n opacity: 1;\n}\n.text-field-component .MuiInputBase-root .Mui-disabled {\n -webkit-text-fill-color: #666666 !important;\n}\n.text-field-component .MuiFormHelperText-root {\n padding: 0 !important;\n font-size: 0.85rem !important;\n}");var E=function(e){return n.createElement(r.Box,{className:"text-field-component",width:"100%"},n.createElement(r.TextField,{error:e.error,id:e.id,label:e.label,defaultValue:e.value,className:e.className,required:e.required,disabled:e.disabled,type:e.type,placeholder:e.placeholder,autoComplete:e.autoComplete,variant:"standard",ref:e.inputRef,InputProps:{disableUnderline:!0,startAdornment:e.startIcon,endAdornment:e.endIcon,inputProps:{max:e.maxNumber,min:e.minNumber,step:e.step}},InputLabelProps:{shrink:!0},helperText:e.helperText,fullWidth:e.fullWidth,multiline:e.multiline,rows:e.rows,onChange:e.onChange,onKeyUp:e.onKeyUp,inputProps:{maxLength:e.maxLength,step:e.step,max:e.maxNumber,min:e.minNumber}}))};E.defaultProps={fullWidth:!0,type:"text"};var C=function(e){return n.createElement(o.Dialog,{open:e.setShow,id:e.idClass,fullWidth:e.fullWidth,fullScreen:e.fullScreen,maxWidth:e.modalSize,className:"modal-component","aria-labelledby":"modal-title","aria-describedby":"modal-description",onClose:e.onHide,scroll:"body",PaperProps:{sx:{overflowY:"unset"}}},n.createElement(o.DialogTitle,{id:"modal-title"},n.createElement(o.Box,{display:"flex",alignItems:"center"},e.title,e.onHide&&n.createElement(o.Box,{sx:{margin:"-1rem -1rem -1rem auto"}},n.createElement(o.IconButton,{"aria-label":"close",onClick:e.onHide},n.createElement(i.Close,null))))),n.createElement(o.DialogContent,{sx:{overflowY:"unset"},id:"modal-description",dividers:e.dividers},e.children),n.createElement(o.DialogActions,null,e.cancelButton&&n.createElement(b,Object.assign({disabled:e.loading,className:"btn-modal-cancel "+(e.cancelButton.className?e.cancelButton.className:""),onClick:e.cancelButton.onClick?e.cancelButton.onClick:e.onHide},e.cancelButton)),e.submitButton&&n.createElement(b,Object.assign({className:"btn-modal-submit main-background-color "+(e.submitButton.className?e.submitButton.className:""),loading:e.loading},e.submitButton))))};C.defaultProps={modalSize:"sm",fullWidth:!0,loading:!1,dividers:!0},exports.AppSidebar=function(e){return n.createElement(o.Box,{height:"100%",className:"app-sidebar"},n.createElement(o.Drawer,{anchor:"left",className:"drawer-nav",open:e.open,onClose:e.onHide,sx:{display:{xs:"block",lg:"none"}}},e.children),n.createElement(o.Box,{position:"sticky",top:"0",sx:{display:{xs:"none",lg:"block"}}},e.children))},exports.ButtonComponent=b,exports.ChangePasswordForm=function(e){var o=l.object().shape({password:l.string().required(e.requiredText.requiredTextPassword),passwordConfirmation:l.string().when("password",(function(t,n){if(t)return n.required(e.requiredText.requiredTextPassword)})).oneOf([l.ref("password"),null],e.requiredText.requiredTextSamePassword)}),a=m.useForm({resolver:s.yupResolver(o)}),c=a.handleSubmit,u=a.control,p=a.formState.errors,d=t.useState(!1),x=d[0],v=d[1],f=function(){v(!x)},g=function(e){e.preventDefault()};return n.createElement(r.Box,null,e.topComponent&&n.createElement(r.Box,{m:2},e.topComponent),n.createElement(r.Box,{m:2},n.createElement(r.Grid,{container:!0,direction:"column",spacing:1},n.createElement(r.Grid,{item:!0},n.createElement(m.Controller,{control:u,name:"password",render:function(t){var o,a=t.field,l=a.onChange;return n.createElement(E,{label:e.valuesText.text1,type:x?"text":"password",error:!!p.password,placeholder:e.valuesText.placeholder1,helperText:null==(o=p.password)?void 0:o.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(r.IconButton,{"aria-label":"toggle password visibility",onClick:f,onMouseDown:g,size:"small"},n.createElement(x?i.Visibility:i.VisibilityOff,null))})}})),n.createElement(r.Grid,{item:!0},n.createElement(m.Controller,{control:u,name:"passwordConfirmation",render:function(t){var o,a=t.field,l=a.onChange;return n.createElement(E,{label:e.valuesText.text2,placeholder:e.valuesText.placeholder2,type:x?"text":"password",error:!!p.passwordConfirmation,helperText:null==(o=p.passwordConfirmation)?void 0:o.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(r.IconButton,{"aria-label":"toggle password visibility",onClick:f,onMouseDown:g,size:"small"},n.createElement(x?i.Visibility:i.VisibilityOff,null))})}})))),n.createElement(r.Box,{m:2},n.createElement(b,{label:e.valuesText.buttonText,className:"btn-login",onClick:c(e.onClick),loading:e.loading})),e.bottomComponent&&n.createElement(r.Box,{m:2},e.bottomComponent))},exports.LoginForm=function(e){var r=l.object().shape({email:l.string().required(e.requiredText.requiredTextMail),password:l.string().required(e.requiredText.requiredTextPassword)}),a=t.useState(!1),c=a[0],u=a[1],p=function(){u(!c)},d=m.useForm({resolver:s.yupResolver(r)}),x=d.control,v=d.handleSubmit,f=d.formState.errors;return n.createElement(o.Box,{m:2},e.topComponent&&n.createElement(o.Box,{m:2},e.topComponent),n.createElement(o.Box,{my:2},n.createElement(o.Grid,{container:!0,direction:"column",spacing:1},n.createElement(o.Grid,{item:!0},n.createElement(m.Controller,{control:x,name:"email",render:function(t){var o,r=t.field,a=r.onChange;return n.createElement(E,{label:e.valuesText.text1,placeholder:e.valuesText.placeholder1,autoComplete:"email",error:!!f.email,helperText:null==(o=f.email)?void 0:o.message,name:r.name,inputRef:r.ref,onChange:function(e){a(e)}})}})),n.createElement(o.Grid,{item:!0},n.createElement(m.Controller,{control:x,name:"password",render:function(t){var r,a=t.field,l=a.onChange;return n.createElement(E,{label:e.valuesText.text2,placeholder:e.valuesText.placeholder2,type:c?"text":"password",error:!!f.password,helperText:null==(r=f.password)?void 0:r.message,name:a.name,inputRef:a.ref,onChange:function(e){l(e)},endIcon:n.createElement(o.IconButton,{"aria-label":"toggle password visibility",onClick:p,size:"small"},n.createElement(c?i.Visibility:i.VisibilityOff,null))})}})))),n.createElement(o.Box,{mb:5},n.createElement(b,{label:e.valuesText.buttonText,loading:e.loading,className:"btn-login",onClick:v(e.onClick)})),e.bottomComponent&&n.createElement(o.Box,{m:2},e.bottomComponent))},exports.MainLayoutSimple=function(e){return n.createElement(r.Box,{display:"flex",flexDirection:"row",className:"main-layout-simple"},e.lateralComponent&&n.createElement(r.Box,{className:"lateral-component"},e.lateralComponent),n.createElement(r.Box,{className:"main-wrapper"},n.createElement(r.Box,{className:e.lateralComponent?"split-container":""},n.createElement(r.Container,{maxWidth:!1},e.mainComponent))))},exports.ModalComponent=C,exports.PublicFormWrapper=function(e){return n.createElement(o.Box,{height:"100%",className:"public-form-wrapper "+(e.className?e.className:""),display:"flex",justifyContent:"center",alignItems:"center"},n.createElement(o.Container,{maxWidth:"xs"},n.createElement(o.Box,{className:"wrapper-box",p:1},e.children)))},exports.ResetPasswordForm=function(e){var t=l.object().shape({email:l.string().required(e.requiredText.requiredTextMail)}),r=m.useForm({resolver:s.yupResolver(t)}),a=r.control,i=r.handleSubmit,c=r.formState.errors;return n.createElement(o.Box,{m:2},e.topComponent&&n.createElement(o.Box,{m:2},e.topComponent),n.createElement(o.Box,{mx:2,my:2},n.createElement(m.Controller,{control:a,name:"email",render:function(t){var o,r=t.field,a=r.onChange;return n.createElement(E,{label:e.valuesText.text,placeholder:e.valuesText.placeholder,autoComplete:"email",error:!!c.email,helperText:null==(o=c.email)?void 0:o.message,name:r.name,inputRef:r.ref,onChange:function(e){a(e)}})}})),n.createElement(o.Box,{mx:2,mb:5},n.createElement(b,{label:e.valuesText.buttonText,className:"btn-login",onClick:i(e.onClick),loading:e.loading})),e.bottomComponent&&n.createElement(o.Box,{m:2},e.bottomComponent))},exports.TextFieldComponent=E,exports.VerticalNav=function(e){return n.createElement(o.Grid,{container:!0,className:"vertical-navigation"},e.items.map((function(t){return n.createElement(o.Grid,{item:!0,key:t.id,xs:12,md:12,className:"grid-item-navigation"},t.type===exports.NavigationType.Collapse&&n.createElement(h,{item:t,userPermisions:e.userPermisions}),t.type===exports.NavigationType.Item&&n.createElement(x,{item:t,userPermisions:e.userPermisions}))})))};
|
|
2
2
|
//# sourceMappingURL=techsbcn-storybook.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"techsbcn-storybook.cjs.production.min.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/fields/ButtonComponent/ButtonComponent.tsx","../src/components/fields/TextFieldComponent/TextFieldComponent.tsx","../src/components/forms/ChangePasswordForm.tsx","../src/components/forms/LoginForm.tsx","../src/components/wrappers/PublicFormWrapper/PublicFormWrapper.tsx","../src/components/forms/ResetPasswordForm.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\r\nimport { Button, CircularProgress } from '@mui/material/';\r\nimport './ButtonComponent.scss';\r\n\r\nexport interface ButtonComponentProps {\r\n className?: string;\r\n label?: string;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n onClick?: () => void;\r\n loading?: boolean;\r\n form?: string;\r\n type?: 'button' | 'submit' | 'reset';\r\n disabled?: boolean;\r\n}\r\n\r\nexport const ButtonComponent: React.FC<ButtonComponentProps> = (props) => {\r\n return (\r\n <Button\r\n type={props.type && props.type}\r\n variant=\"contained\"\r\n form={props.form && props.form}\r\n className={`main-background-color ${props.className ? props.className : ''}`}\r\n startIcon={!props.loading && props.startIcon}\r\n endIcon={!props.loading && props.endIcon}\r\n onClick={props.onClick}\r\n disabled={!props.loading && props.disabled}\r\n >\r\n {props.loading ? <CircularProgress size={25} /> : props.label}\r\n </Button>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { TextField, Box } from '@mui/material/';\r\nimport './TextFieldComponent.scss';\r\n\r\nexport type InputType =\r\n | 'text'\r\n | 'radio'\r\n | 'checkbox'\r\n | 'textarea'\r\n | 'submit'\r\n | 'date'\r\n | 'hidden'\r\n | 'number'\r\n | 'range'\r\n | 'password'\r\n | 'time'\r\n | 'file';\r\n\r\ninterface TextFieldComponentProps {\r\n id?: string;\r\n label?: string;\r\n name?: string;\r\n value?: string | number;\r\n className?: string;\r\n type?: InputType;\r\n placeholder?: string;\r\n required?: boolean;\r\n disabled?: boolean;\r\n minNumber?: number;\r\n maxNumber?: number;\r\n error?: boolean;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n fullWidth?: boolean;\r\n helperText?: string;\r\n textFieldRef?: any;\r\n inputRef?: React.Ref<any>;\r\n autoComplete?: string;\r\n multiline?: boolean;\r\n rows?: number;\r\n maxLength?: number;\r\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\r\n onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n step?: number | string;\r\n}\r\n\r\nexport const TextFieldComponent: React.FC<TextFieldComponentProps> = (props) => {\r\n return (\r\n <Box className=\"text-field-component\" width=\"100%\">\r\n <TextField\r\n error={props.error}\r\n id={props.id}\r\n label={props.label}\r\n defaultValue={props.value}\r\n className={props.className}\r\n required={props.required}\r\n disabled={props.disabled}\r\n type={props.type}\r\n placeholder={props.placeholder}\r\n autoComplete={props.autoComplete}\r\n variant=\"standard\"\r\n ref={props.inputRef}\r\n InputProps={{\r\n disableUnderline: true,\r\n startAdornment: props.startIcon,\r\n endAdornment: props.endIcon,\r\n inputProps: {\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n step: props.step,\r\n },\r\n }}\r\n InputLabelProps={{ shrink: true }}\r\n helperText={props.helperText}\r\n fullWidth={props.fullWidth}\r\n multiline={props.multiline}\r\n rows={props.rows}\r\n onChange={props.onChange}\r\n onKeyUp={props.onKeyUp}\r\n inputProps={{\r\n maxLength: props.maxLength,\r\n step: props.step,\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n }}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nTextFieldComponent.defaultProps = {\r\n fullWidth: true,\r\n type: 'text',\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material/';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport * as yup from 'yup';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface ChangePasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextPassword: string; requiredTextSamePassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const ChangePasswordForm: React.FC<ChangePasswordFormProps> = (props) => {\r\n const validationSchema = yup.object().shape({\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n passwordConfirmation: yup\r\n .string()\r\n .when('password', (password: any, schema: any) => {\r\n if (password) return schema.required(props.requiredText.requiredTextPassword);\r\n })\r\n .oneOf([yup.ref('password'), null], props.requiredText.requiredTextSamePassword),\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(validationSchema),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const handleMouseDownPassword = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n event.preventDefault();\r\n };\r\n\r\n return (\r\n <Box>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box m={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n placeholder={props.valuesText.placeholder1}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'passwordConfirmation'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.passwordConfirmation}\r\n helperText={errors.passwordConfirmation?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box m={2}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface LoginFormProps {\r\n onClick: (data: any) => void;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n loading: boolean;\r\n requiredText: { requiredTextMail: string; requiredTextPassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const LoginForm: React.FC<LoginFormProps> = (props) => {\r\n const LoginSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(LoginSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box my={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n placeholder={props.valuesText.placeholder1}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton aria-label=\"toggle password visibility\" onClick={handleClickShowPassword} size=\"small\">\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n loading={props.loading}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material';\r\nimport './PublicFormWrapper.scss';\r\n\r\ninterface PublicFormWrapperProps {\r\n className?: string;\r\n}\r\n\r\nexport const PublicFormWrapper: React.FC<PublicFormWrapperProps> = (props) => {\r\n return (\r\n <Box\r\n height=\"100%\"\r\n className={`public-form-wrapper ${props.className ? props.className : ''}`}\r\n display=\"flex\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Container maxWidth=\"xs\">\r\n <Box className=\"wrapper-box\" p={1}>\r\n {props.children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface resetPasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextMail: string };\r\n valuesText: { buttonText: string; text: string; placeholder?: string };\r\n}\r\n\r\nexport const ResetPasswordForm: React.FC<resetPasswordFormProps> = (props) => {\r\n const ResetSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n });\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(ResetSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box mx={2} my={2}>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text}\r\n placeholder={props.valuesText.placeholder}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Box>\r\n <Box mx={2} mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","ButtonComponent","props","React","Button","variant","form","className","startIcon","loading","endIcon","onClick","disabled","CircularProgress","size","label","TextFieldComponent","Box","width","TextField","error","id","defaultValue","value","required","placeholder","autoComplete","inputRef","InputProps","disableUnderline","startAdornment","endAdornment","inputProps","max","maxNumber","min","minNumber","step","InputLabelProps","shrink","helperText","fullWidth","multiline","rows","onChange","onKeyUp","maxLength","defaultProps","validationSchema","yup","shape","password","requiredText","requiredTextPassword","passwordConfirmation","when","schema","oneOf","requiredTextSamePassword","useForm","resolver","yupResolver","handleSubmit","control","errors","formState","useState","showPassword","setShownPassword","handleClickShowPassword","handleMouseDownPassword","event","preventDefault","topComponent","m","Grid","container","direction","spacing","item","Controller","name","render","field","valuesText","text1","placeholder1","_errors$password","message","e","IconButton","onMouseDown","Visibility","VisibilityOff","text2","placeholder2","_errors$passwordConfi","buttonText","bottomComponent","LoginSchema","email","requiredTextMail","my","_errors$email","mb","height","display","justifyContent","alignItems","Container","maxWidth","p","children","ResetSchema","mx","text"],"mappings":"+TAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,IAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,I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CACrCkD,MAAOnD,WAAazB,SAAStB,EAAMkD,aAAaiD,sBAO9C1C,UAAQ,CACVC,SAAUC,cAAYoD,KAJtBlD,IAAAA,QACAD,IAAAA,aACaE,IAAbC,UAAaD,cAMb7D,gBAACc,OAAIyD,EAAG,GACLxE,EAAMuE,cAAgBtE,gBAACc,OAAIyD,EAAG,GAAIxE,EAAMuE,cACzCtE,gBAACc,OAAIiG,GAAI,EAAGZ,GAAI,GACdnG,gBAAC6E,cACCjB,QAASA,EACTkB,KAAM,QACNC,OAAQ,sBAAGC,MAASvC,IAAAA,gBAClBzC,gBAACa,GACCD,MAAOb,EAAMkF,WAAW+B,KACxB1F,YAAavB,EAAMkF,WAAW3D,YAC9BC,aAAa,QACbN,QAAS4C,EAAOoC,MAChB5D,oBAAYwB,EAAOoC,cAAPG,EAAcf,QAC1BP,OAP0BA,KAQ1BtD,WARgCxC,IAShCyD,SAAU,SAAC6C,GACT7C,EAAS6C,UAMnBtF,gBAACc,OAAIiG,GAAI,EAAGV,GAAI,GACdrG,gBAACF,GACCc,MAAOb,EAAMkF,WAAWa,WACxB1F,UAAU,YACVI,QAASmD,EAAa5D,EAAMS,SAC5BF,QAASP,EAAMO,WAGlBP,EAAMgG,iBAAmB/F,gBAACc,OAAIyD,EAAG,GAAIxE,EAAMgG"}
|
|
1
|
+
{"version":3,"file":"techsbcn-storybook.cjs.production.min.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/components/navigation/VerticalNav/VerticalNav.tsx","../src/helpers/CheckPermission.tsx","../src/components/navigation/VerticalNav/VerticalNavItem.tsx","../src/components/navigation/VerticalNav/VerticalNavItemCollapse.tsx","../src/components/fields/ButtonComponent/ButtonComponent.tsx","../src/components/fields/TextFieldComponent/TextFieldComponent.tsx","../src/components/modals/ModalComponent.tsx","../src/components/navigation/DrawerLayout/AppSidebar/AppSidebar.tsx","../src/components/forms/ChangePasswordForm.tsx","../src/components/forms/LoginForm.tsx","../src/components/layouts/MainLayoutSimple/MainLayoutSimple.tsx","../src/components/wrappers/PublicFormWrapper/PublicFormWrapper.tsx","../src/components/forms/ResetPasswordForm.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\r\nimport { Grid } from '@mui/material';\r\nimport VerticalNavItem from './VerticalNavItem';\r\nimport VerticalNavItemCollapse from './VerticalNavItemCollapse';\r\nimport './VerticalNav.scss';\r\n\r\nexport enum NavigationType {\r\n Item = 0,\r\n Collapse = 1,\r\n}\r\n\r\nexport interface NavigationProps {\r\n id: string;\r\n title?: string;\r\n route?: string;\r\n type?: NavigationType;\r\n persmisionAvailable?: string | string[];\r\n children?: NavigationProps[] | NavigationProps;\r\n}\r\n\r\ninterface VerticalNavProps {\r\n items: NavigationProps[];\r\n userPermisions?: string[];\r\n}\r\n\r\nexport const VerticalNav: React.FC<VerticalNavProps> = (props) => {\r\n return (\r\n <Grid container className=\"vertical-navigation\">\r\n {props.items.map((item: NavigationProps) => (\r\n <Grid item key={item.id} xs={12} md={12} className=\"grid-item-navigation\">\r\n {item.type === NavigationType.Collapse && (\r\n <VerticalNavItemCollapse item={item} userPermisions={props.userPermisions} />\r\n )}\r\n {item.type === NavigationType.Item && <VerticalNavItem item={item} userPermisions={props.userPermisions} />}\r\n </Grid>\r\n ))}\r\n </Grid>\r\n );\r\n};\r\n","export const checkPermission = (persmisionAvailable?: any, userRoles?: any) => {\r\n if (persmisionAvailable === null || persmisionAvailable === undefined || persmisionAvailable.length === 0) {\r\n return true;\r\n }\r\n\r\n if (userRoles && Array.isArray(userRoles) && Array.isArray(persmisionAvailable)) {\r\n return persmisionAvailable.some((r) => userRoles.indexOf(r) >= 0);\r\n }\r\n\r\n return userRoles.indexOf(persmisionAvailable) >= 0;\r\n};\r\n","import { Box } from '@mui/material';\r\nimport { NavigationProps } from './VerticalNav';\r\nimport React, { useMemo, useState } from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\nimport { checkPermission } from '../../../helpers';\r\n\r\ninterface VerticalNavItemProps {\r\n item: NavigationProps;\r\n userPermisions?: string[];\r\n}\r\n\r\nconst VerticalNavItem: React.FC<VerticalNavItemProps> = (props) => {\r\n const [hover, setHover] = useState(false);\r\n\r\n const hasPermission = useMemo(\r\n () => checkPermission(props.item.persmisionAvailable, props.userPermisions),\r\n [props.item.persmisionAvailable, props.userPermisions]\r\n );\r\n\r\n if (!hasPermission) {\r\n return null;\r\n }\r\n\r\n return (\r\n <NavLink to={props.item.route || ''} className=\"nav-link-item\">\r\n <Box\r\n p={2}\r\n className={`nav-item ${hover ? 'main-color' : ''}`}\r\n onMouseEnter={() => setHover(true)}\r\n onMouseLeave={() => setHover(false)}\r\n >\r\n <Box className={`nav-item-text ${hover ? 'main-color' : ''}`}>{props.item.title}</Box>\r\n </Box>\r\n </NavLink>\r\n );\r\n};\r\n\r\nexport default React.memo(VerticalNavItem);\r\n","import React, { useEffect, useState, useMemo } from 'react';\r\nimport { Box, Collapse, Grid } from '@mui/material';\r\nimport { ChevronRight, ExpandMore } from '@mui/icons-material';\r\nimport { NavigationProps, NavigationType } from './VerticalNav';\r\nimport VerticalNavItem from './VerticalNavItem';\r\nimport { useLocation } from 'react-router-dom';\r\nimport { checkPermission } from '../../../helpers';\r\n\r\nconst needsToBeOpened = (pathname: string, item: NavigationProps): boolean => {\r\n if (pathname) {\r\n return isUrlInChildren(item, pathname);\r\n }\r\n return false;\r\n};\r\n\r\nconst isUrlInChildren = (parent: any, url: string) => {\r\n if (!parent.children) {\r\n return false;\r\n }\r\n\r\n for (let i = 0; i < parent.children.length; i++) {\r\n if (parent.children[i].children) {\r\n if (isUrlInChildren(parent.children[i], url)) {\r\n return true;\r\n }\r\n }\r\n\r\n if (parent.children[i].route === url || url.includes(parent.children[i].route)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n};\r\n\r\ninterface VerticalNavItemCollapseProps {\r\n item: NavigationProps;\r\n userPermisions?: string[];\r\n}\r\n\r\nconst VerticalNavItemCollapse: React.FC<VerticalNavItemCollapseProps> = (props) => {\r\n const { pathname } = useLocation();\r\n const [open, setOpen] = useState(() => needsToBeOpened(pathname, props.item));\r\n const [hover, setHover] = useState(false);\r\n\r\n useEffect(() => {\r\n if (needsToBeOpened(pathname, props.item)) {\r\n setOpen(true);\r\n }\r\n }, [pathname, props]);\r\n\r\n const handleClick = () => {\r\n setOpen(!open);\r\n };\r\n\r\n const hasPermission = useMemo(\r\n () => checkPermission(props.item.persmisionAvailable, props.userPermisions),\r\n [props.item.persmisionAvailable, props.userPermisions]\r\n );\r\n\r\n if (!hasPermission) {\r\n return null;\r\n }\r\n\r\n return (\r\n <Box className=\"nav-item-collapse\">\r\n <Box\r\n p={2}\r\n display=\"flex\"\r\n alignContent=\"flex-end\"\r\n alignItems=\"center\"\r\n className={`nav-item ${hover ? 'main-color' : ''} ${open ? 'open' : ''} ${\r\n needsToBeOpened(pathname, props.item) ? 'active' : ''\r\n }`}\r\n onClick={handleClick}\r\n onMouseEnter={() => setHover(true)}\r\n onMouseLeave={() => setHover(false)}\r\n >\r\n <Box className={`nav-item-text ${hover ? 'main-color' : ''}`}>{props.item.title}</Box>\r\n <Box ml=\"auto\" display=\"flex\">\r\n {open ? <ExpandMore /> : <ChevronRight />}\r\n </Box>\r\n </Box>\r\n {props.item.children && Array.isArray(props.item.children) && (\r\n <Collapse in={open} className=\"collapse-children\">\r\n <Box>\r\n <Grid container>\r\n {props.item.children.map((item: any) => (\r\n <Grid item key={item.id} xs={12}>\r\n {item.type === NavigationType.Collapse && (\r\n <VerticalNavItemCollapse item={item} userPermisions={props.userPermisions} />\r\n )}\r\n {item.type === NavigationType.Item && (\r\n <VerticalNavItem item={item} userPermisions={props.userPermisions} />\r\n )}\r\n </Grid>\r\n ))}\r\n </Grid>\r\n </Box>\r\n </Collapse>\r\n )}\r\n </Box>\r\n );\r\n};\r\n\r\nexport default React.memo(VerticalNavItemCollapse);\r\n","import React from 'react';\r\nimport { Button, CircularProgress } from '@mui/material/';\r\nimport './ButtonComponent.scss';\r\n\r\nexport interface ButtonComponentProps {\r\n className?: string;\r\n label?: string;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n onClick?: () => void;\r\n loading?: boolean;\r\n form?: string;\r\n type?: 'button' | 'submit' | 'reset';\r\n disabled?: boolean;\r\n}\r\n\r\nexport const ButtonComponent: React.FC<ButtonComponentProps> = (props) => {\r\n return (\r\n <Button\r\n type={props.type && props.type}\r\n variant=\"contained\"\r\n form={props.form && props.form}\r\n className={`main-background-color ${props.className ? props.className : ''}`}\r\n startIcon={!props.loading && props.startIcon}\r\n endIcon={!props.loading && props.endIcon}\r\n onClick={props.onClick}\r\n disabled={!props.loading && props.disabled}\r\n >\r\n {props.loading ? <CircularProgress size={25} /> : props.label}\r\n </Button>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { TextField, Box } from '@mui/material/';\r\nimport './TextFieldComponent.scss';\r\n\r\nexport type InputType =\r\n | 'text'\r\n | 'radio'\r\n | 'checkbox'\r\n | 'textarea'\r\n | 'submit'\r\n | 'date'\r\n | 'hidden'\r\n | 'number'\r\n | 'range'\r\n | 'password'\r\n | 'time'\r\n | 'file';\r\n\r\ninterface TextFieldComponentProps {\r\n id?: string;\r\n label?: string;\r\n name?: string;\r\n value?: string | number;\r\n className?: string;\r\n type?: InputType;\r\n placeholder?: string;\r\n required?: boolean;\r\n disabled?: boolean;\r\n minNumber?: number;\r\n maxNumber?: number;\r\n error?: boolean;\r\n startIcon?: React.ReactNode;\r\n endIcon?: React.ReactNode;\r\n fullWidth?: boolean;\r\n helperText?: string;\r\n textFieldRef?: any;\r\n inputRef?: React.Ref<any>;\r\n autoComplete?: string;\r\n multiline?: boolean;\r\n rows?: number;\r\n maxLength?: number;\r\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\r\n onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n step?: number | string;\r\n}\r\n\r\nexport const TextFieldComponent: React.FC<TextFieldComponentProps> = (props) => {\r\n return (\r\n <Box className=\"text-field-component\" width=\"100%\">\r\n <TextField\r\n error={props.error}\r\n id={props.id}\r\n label={props.label}\r\n defaultValue={props.value}\r\n className={props.className}\r\n required={props.required}\r\n disabled={props.disabled}\r\n type={props.type}\r\n placeholder={props.placeholder}\r\n autoComplete={props.autoComplete}\r\n variant=\"standard\"\r\n ref={props.inputRef}\r\n InputProps={{\r\n disableUnderline: true,\r\n startAdornment: props.startIcon,\r\n endAdornment: props.endIcon,\r\n inputProps: {\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n step: props.step,\r\n },\r\n }}\r\n InputLabelProps={{ shrink: true }}\r\n helperText={props.helperText}\r\n fullWidth={props.fullWidth}\r\n multiline={props.multiline}\r\n rows={props.rows}\r\n onChange={props.onChange}\r\n onKeyUp={props.onKeyUp}\r\n inputProps={{\r\n maxLength: props.maxLength,\r\n step: props.step,\r\n max: props.maxNumber,\r\n min: props.minNumber,\r\n }}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nTextFieldComponent.defaultProps = {\r\n fullWidth: true,\r\n type: 'text',\r\n};\r\n","import React from 'react';\r\nimport { Box, Dialog, DialogTitle, DialogContent, DialogActions, IconButton } from '@mui/material';\r\nimport { ButtonComponent, ButtonComponentProps } from '../fields/ButtonComponent/ButtonComponent';\r\nimport { Close } from '@mui/icons-material';\r\n\r\ninterface ModalComponentProps {\r\n idClass?: string;\r\n setShow: boolean;\r\n title?: string;\r\n modalSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;\r\n fullWidth?: boolean;\r\n fullScreen?: boolean;\r\n submitButton?: ButtonComponentProps;\r\n cancelButton?: ButtonComponentProps;\r\n loading?: boolean;\r\n onHide: () => void;\r\n dividers?: boolean;\r\n}\r\n\r\nexport const ModalComponent: React.FC<ModalComponentProps> = (props) => {\r\n return (\r\n <Dialog\r\n open={props.setShow}\r\n id={props.idClass}\r\n fullWidth={props.fullWidth}\r\n fullScreen={props.fullScreen}\r\n maxWidth={props.modalSize}\r\n className=\"modal-component\"\r\n aria-labelledby=\"modal-title\"\r\n aria-describedby=\"modal-description\"\r\n onClose={props.onHide}\r\n scroll=\"body\"\r\n PaperProps={{ sx: { overflowY: 'unset' } }}\r\n >\r\n <DialogTitle id=\"modal-title\">\r\n <Box display=\"flex\" alignItems=\"center\">\r\n {props.title}\r\n {props.onHide && (\r\n <Box\r\n sx={{\r\n margin: '-1rem -1rem -1rem auto',\r\n }}\r\n >\r\n <IconButton aria-label=\"close\" onClick={props.onHide}>\r\n <Close />\r\n </IconButton>\r\n </Box>\r\n )}\r\n </Box>\r\n </DialogTitle>\r\n <DialogContent sx={{ overflowY: 'unset' }} id=\"modal-description\" dividers={props.dividers}>\r\n {props.children}\r\n </DialogContent>\r\n <DialogActions>\r\n {props.cancelButton && (\r\n <ButtonComponent\r\n disabled={props.loading}\r\n className={`btn-modal-cancel ${props.cancelButton.className ? props.cancelButton.className : ''}`}\r\n onClick={props.cancelButton.onClick ? props.cancelButton.onClick : props.onHide}\r\n {...props.cancelButton}\r\n />\r\n )}\r\n {props.submitButton && (\r\n <ButtonComponent\r\n className={`btn-modal-submit main-background-color ${\r\n props.submitButton.className ? props.submitButton.className : ''\r\n }`}\r\n loading={props.loading}\r\n {...props.submitButton}\r\n />\r\n )}\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n};\r\n\r\nModalComponent.defaultProps = {\r\n modalSize: 'sm',\r\n fullWidth: true,\r\n loading: false,\r\n dividers: true,\r\n};\r\n","import React from 'react';\r\nimport { Box, Drawer } from '@mui/material';\r\nimport './AppSidebar.scss';\r\n\r\ninterface AppSidebarProps {\r\n onHide?: () => void;\r\n open?: boolean;\r\n}\r\n\r\nexport const AppSidebar: React.FC<AppSidebarProps> = (props) => {\r\n return (\r\n <Box height=\"100%\" className=\"app-sidebar\">\r\n <Drawer\r\n anchor={'left'}\r\n className=\"drawer-nav\"\r\n open={props.open}\r\n onClose={props.onHide}\r\n sx={{ display: { xs: 'block', lg: 'none' } }}\r\n >\r\n {props.children}\r\n </Drawer>\r\n <Box position=\"sticky\" top=\"0\" sx={{ display: { xs: 'none', lg: 'block' } }}>\r\n {props.children}\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material/';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport * as yup from 'yup';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface ChangePasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextPassword: string; requiredTextSamePassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const ChangePasswordForm: React.FC<ChangePasswordFormProps> = (props) => {\r\n const validationSchema = yup.object().shape({\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n passwordConfirmation: yup\r\n .string()\r\n .when('password', (password: any, schema: any) => {\r\n if (password) return schema.required(props.requiredText.requiredTextPassword);\r\n })\r\n .oneOf([yup.ref('password'), null], props.requiredText.requiredTextSamePassword),\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(validationSchema),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const handleMouseDownPassword = (event: React.MouseEvent<HTMLButtonElement>) => {\r\n event.preventDefault();\r\n };\r\n\r\n return (\r\n <Box>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box m={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n placeholder={props.valuesText.placeholder1}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'passwordConfirmation'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.passwordConfirmation}\r\n helperText={errors.passwordConfirmation?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton\r\n aria-label=\"toggle password visibility\"\r\n onClick={handleClickShowPassword}\r\n onMouseDown={handleMouseDownPassword}\r\n size=\"small\"\r\n >\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box m={2}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Box, Grid, IconButton } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { Visibility, VisibilityOff } from '@mui/icons-material';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface LoginFormProps {\r\n onClick: (data: any) => void;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n loading: boolean;\r\n requiredText: { requiredTextMail: string; requiredTextPassword: string };\r\n valuesText: { buttonText: string; text1: string; placeholder1?: string; text2: string; placeholder2?: string };\r\n}\r\n\r\nexport const LoginForm: React.FC<LoginFormProps> = (props) => {\r\n const LoginSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n password: yup.string().required(props.requiredText.requiredTextPassword),\r\n });\r\n\r\n const [showPassword, setShownPassword] = useState(false);\r\n const handleClickShowPassword = () => {\r\n setShownPassword(!showPassword);\r\n };\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(LoginSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box my={2}>\r\n <Grid container direction=\"column\" spacing={1}>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text1}\r\n placeholder={props.valuesText.placeholder1}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Grid>\r\n <Grid item>\r\n <Controller\r\n control={control}\r\n name={'password'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text2}\r\n placeholder={props.valuesText.placeholder2}\r\n type={showPassword ? 'text' : 'password'}\r\n error={!!errors.password}\r\n helperText={errors.password?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n endIcon={\r\n <IconButton aria-label=\"toggle password visibility\" onClick={handleClickShowPassword} size=\"small\">\r\n {showPassword ? <Visibility /> : <VisibilityOff />}\r\n </IconButton>\r\n }\r\n />\r\n )}\r\n />\r\n </Grid>\r\n </Grid>\r\n </Box>\r\n <Box mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n loading={props.loading}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material/';\r\nimport './MainLayoutSimple.scss';\r\n\r\ninterface MainLayoutSimpleProps {\r\n lateralComponent?: React.ReactNode;\r\n mainComponent: any;\r\n}\r\n\r\nexport const MainLayoutSimple: React.FC<MainLayoutSimpleProps> = (props) => {\r\n return (\r\n <Box display=\"flex\" flexDirection=\"row\" className=\"main-layout-simple\">\r\n {props.lateralComponent && <Box className=\"lateral-component\">{props.lateralComponent}</Box>}\r\n <Box className=\"main-wrapper\">\r\n <Box className={`${props.lateralComponent ? 'split-container' : ''}`}>\r\n <Container maxWidth={false}>{props.mainComponent}</Container>\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box, Container } from '@mui/material';\r\nimport './PublicFormWrapper.scss';\r\n\r\ninterface PublicFormWrapperProps {\r\n className?: string;\r\n}\r\n\r\nexport const PublicFormWrapper: React.FC<PublicFormWrapperProps> = (props) => {\r\n return (\r\n <Box\r\n height=\"100%\"\r\n className={`public-form-wrapper ${props.className ? props.className : ''}`}\r\n display=\"flex\"\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n >\r\n <Container maxWidth=\"xs\">\r\n <Box className=\"wrapper-box\" p={1}>\r\n {props.children}\r\n </Box>\r\n </Container>\r\n </Box>\r\n );\r\n};\r\n","import React from 'react';\r\nimport { Box } from '@mui/material';\r\nimport * as yup from 'yup';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport { yupResolver } from '@hookform/resolvers/yup';\r\nimport { TextFieldComponent } from '../fields/TextFieldComponent/TextFieldComponent';\r\nimport { ButtonComponent } from '../fields/ButtonComponent/ButtonComponent';\r\n\r\ninterface resetPasswordFormProps {\r\n onClick: (data: any) => void;\r\n loading: boolean;\r\n topComponent?: React.ReactNode;\r\n bottomComponent?: React.ReactNode;\r\n requiredText: { requiredTextMail: string };\r\n valuesText: { buttonText: string; text: string; placeholder?: string };\r\n}\r\n\r\nexport const ResetPasswordForm: React.FC<resetPasswordFormProps> = (props) => {\r\n const ResetSchema = yup.object().shape({\r\n email: yup.string().required(props.requiredText.requiredTextMail),\r\n });\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n formState: { errors },\r\n } = useForm({\r\n resolver: yupResolver(ResetSchema),\r\n });\r\n\r\n return (\r\n <Box m={2}>\r\n {props.topComponent && <Box m={2}>{props.topComponent}</Box>}\r\n <Box mx={2} my={2}>\r\n <Controller\r\n control={control}\r\n name={'email'}\r\n render={({ field: { onChange, name, ref } }) => (\r\n <TextFieldComponent\r\n label={props.valuesText.text}\r\n placeholder={props.valuesText.placeholder}\r\n autoComplete=\"email\"\r\n error={!!errors.email}\r\n helperText={errors.email?.message}\r\n name={name}\r\n inputRef={ref}\r\n onChange={(e) => {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n </Box>\r\n <Box mx={2} mb={5}>\r\n <ButtonComponent\r\n label={props.valuesText.buttonText}\r\n className=\"btn-login\"\r\n onClick={handleSubmit(props.onClick)}\r\n loading={props.loading}\r\n />\r\n </Box>\r\n {props.bottomComponent && <Box m={2}>{props.bottomComponent}</Box>}\r\n </Box>\r\n );\r\n};\r\n"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","NavigationType","checkPermission","persmisionAvailable","userRoles","length","Array","isArray","some","r","indexOf","VerticalNavItem","props","useState","hover","setHover","useMemo","item","userPermisions","React","NavLink","to","route","className","Box","p","onMouseEnter","onMouseLeave","title","memo","needsToBeOpened","pathname","isUrlInChildren","parent","url","children","i","includes","VerticalNavItemCollapse","useLocation","open","setOpen","useEffect","display","alignContent","alignItems","onClick","ml","ExpandMore","ChevronRight","Collapse","Grid","container","map","key","id","xs","Item","ButtonComponent","Button","variant","form","startIcon","loading","endIcon","disabled","CircularProgress","size","label","TextFieldComponent","width","TextField","error","defaultValue","value","required","placeholder","autoComplete","inputRef","InputProps","disableUnderline","startAdornment","endAdornment","inputProps","max","maxNumber","min","minNumber","step","InputLabelProps","shrink","helperText","fullWidth","multiline","rows","onChange","onKeyUp","maxLength","defaultProps","ModalComponent","Dialog","setShow","idClass","fullScreen","maxWidth","modalSize","onClose","onHide","scroll","PaperProps","sx","overflowY","DialogTitle","margin","IconButton","Close","DialogContent","dividers","DialogActions","cancelButton","submitButton","height","Drawer","anchor","lg","position","top","validationSchema","yup","shape","password","requiredText","requiredTextPassword","passwordConfirmation","when","schema","oneOf","requiredTextSamePassword","useForm","resolver","yupResolver","handleSubmit","control","errors","formState","showPassword","setShownPassword","handleClickShowPassword","handleMouseDownPassword","event","preventDefault","topComponent","m","direction","spacing","Controller","name","render","field","valuesText","text1","placeholder1","_errors$password","message","e","onMouseDown","Visibility","VisibilityOff","text2","placeholder2","_errors$passwordConfi","buttonText","bottomComponent","LoginSchema","email","requiredTextMail","my","_errors$email","mb","flexDirection","lateralComponent","Container","mainComponent","justifyContent","ResetSchema","mx","text","items","md"],"mappings":"6VAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,IAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,kZCjBlCe,ECNCC,EAAkB,SAACC,EAA2BC,UACrDD,MAAAA,GAAoG,IAA/BA,EAAoBE,SAIzFD,GAAaE,MAAMC,QAAQH,IAAcE,MAAMC,QAAQJ,GAClDA,EAAoBK,MAAK,SAACC,UAAML,EAAUM,QAAQD,IAAM,KAG1DL,EAAUM,QAAQP,IAAwB,ICE7CQ,EAAkD,SAACC,SAC7BC,YAAS,GAA5BC,OAAOC,cAEQC,WACpB,kBAAMd,EAAgBU,EAAMK,KAAKd,oBAAqBS,EAAMM,kBAC5D,CAACN,EAAMK,KAAKd,oBAAqBS,EAAMM,iBAQvCC,gBAACC,WAAQC,GAAIT,EAAMK,KAAKK,OAAS,GAAIC,UAAU,iBAC7CJ,gBAACK,OACCC,EAAG,EACHF,uBAAuBT,EAAQ,aAAe,IAC9CY,aAAc,kBAAMX,GAAS,IAC7BY,aAAc,kBAAMZ,GAAS,KAE7BI,gBAACK,OAAID,4BAA4BT,EAAQ,aAAe,KAAOF,EAAMK,KAAKW,SAXvE,QAiBIT,EAAMU,KAAKlB,GC7BpBmB,EAAkB,SAACC,EAAkBd,WACrCc,GACKC,EAAgBf,EAAMc,IAK3BC,EAAkB,SAAlBA,EAAmBC,EAAa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