argous 1.2.247 → 1.3.3
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/api/WebSocket.d.ts +18 -10
- package/dist/api/WebSocket.js +26 -18
- package/dist/api/index.js +54 -43
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +44 -3
- package/dist/components/Alert/Alert.js +17 -7
- package/dist/components/ArgousAction/ArgousAction.js +17 -7
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
- package/dist/components/ArgousInput/ArgousInput.js +19 -9
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
- package/dist/components/AutoComplete/AutoComplete.js +18 -9
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
- package/dist/components/BarChart/BarChart.js +17 -7
- package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
- package/dist/components/Button/Button.js +17 -7
- package/dist/components/Cabecalho/Cabecalho.js +17 -7
- package/dist/components/Calendar/Calendar.js +24 -41
- package/dist/components/Cam/Cam.js +19 -9
- package/dist/components/Carousel/Carousel.js +113 -103
- package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
- package/dist/components/Collapse/Collapse.d.ts +3 -3
- package/dist/components/Collapse/Collapse.js +121 -71
- package/dist/components/Compartilhar/Compartilhar.js +70 -65
- package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
- package/dist/components/ConfirmModal/BasicModal.js +8 -8
- package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
- package/dist/components/ConfirmModal/ModalProvider.js +17 -7
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +33 -16
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +48 -34
- package/dist/components/DropArea/DropArea.js +27 -12
- package/dist/components/DropArea/Html5FileSelector.js +6 -7
- package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
- package/dist/components/Editor/ScriptLoader2.js +2 -2
- package/dist/components/Editor/Utils.d.ts +3 -3
- package/dist/components/Editor/Utils.js +2 -2
- package/dist/components/Editor/components/Editor.d.ts +1 -1
- package/dist/components/Editor/components/Editor.js +18 -9
- package/dist/components/Editor/components/EditorPropTypes.js +17 -7
- package/dist/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/dist/components/FilePreparer/FilePreparer.js +105 -88
- package/dist/components/FileUploader/FileUploader.js +33 -22
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
- package/dist/components/HalfGauge/HalfGauge.js +87 -135
- package/dist/components/Highlight/Highlight.js +23 -12
- package/dist/components/ImageResize/ImageResize.d.ts +1 -1
- package/dist/components/ImageResize/ImageResize.js +79 -85
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
- package/dist/components/Input/Input.js +19 -9
- package/dist/components/InputTags/InputTags.js +22 -13
- package/dist/components/ListSelect/ListSelect.js +17 -7
- package/dist/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MenuBar/MenuBar.js +17 -7
- package/dist/components/MonthPicker/MonthPicker.js +20 -10
- package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +71 -58
- package/dist/components/OutputText/OutputText.js +17 -7
- package/dist/components/Pagination/Pagination.js +17 -7
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
- package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
- package/dist/components/Programa/Programa.d.ts +2 -2
- package/dist/components/Programa/Programa.js +50 -28
- package/dist/components/Programa/Tab.d.ts +2 -2
- package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
- package/dist/components/Programa/TabNavigationRail.js +13 -55
- package/dist/components/ProgressBar/ProgressBar.js +17 -7
- package/dist/components/Select/Select.js +17 -7
- package/dist/components/SimpleTable/SimpleTable.js +17 -7
- package/dist/components/Stepper/Stepper.d.ts +1 -1
- package/dist/components/Stepper/Stepper.js +194 -179
- package/dist/components/TablePicker/TablePicker.js +37 -12
- package/dist/components/Tabs/Tabs.js +17 -7
- package/dist/components/TextArea/TextArea.js +17 -7
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +17 -7
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +51 -44
- package/dist/components/TextToHtml/TextToHtml.js +37 -17
- package/dist/components/ThreadLog/ThreadLog.js +19 -9
- package/dist/components/UserCard/UserCard.js +36 -26
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
- package/dist/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/dist/components/UtilTextField/UtilTextField.js +26 -14
- package/dist/components/Zoom/Zoom.js +23 -24
- package/dist/fieldsRedux/createField.js +17 -7
- package/dist/fieldsRedux/fieldsRedux.js +19 -9
- package/dist/fieldsRedux/passFields.js +17 -7
- package/dist/reducers/index.d.ts +98 -2
- package/dist/utils/api.js +32 -15
- package/dist/utils/config.js +2 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +68 -54
- package/dist/utils/store.js +2 -3
- package/lib/api/WebSocket.js +11 -12
- package/lib/api/index.js +14 -14
- package/lib/api/ws.js +48 -4
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
- package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
- package/lib/components/ArgousInput/ArgousInput.js +2 -2
- package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
- package/lib/components/AutoComplete/AutoComplete.js +2 -3
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
- package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
- package/lib/components/Calendar/Calendar.js +7 -42
- package/lib/components/Carousel/Carousel.js +42 -27
- package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
- package/lib/components/Collapse/Collapse.d.ts +3 -3
- package/lib/components/Collapse/Collapse.js +92 -57
- package/lib/components/Compartilhar/Compartilhar.js +47 -46
- package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
- package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
- package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
- package/lib/components/ContactValidationInput/SealModal.js +38 -32
- package/lib/components/Document/Icons.js +14 -6
- package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
- package/lib/components/Document/Visualizacao.js +31 -25
- package/lib/components/DropArea/DropArea.js +9 -3
- package/lib/components/Editor/ScriptLoader2.ts +3 -3
- package/lib/components/Editor/Utils.ts +3 -3
- package/lib/components/Editor/components/Editor.tsx +1 -1
- package/lib/components/Editor/tinymce/README.md +73 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
- package/lib/components/Editor/tinymce/tinymce.js +12 -12
- package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
- package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/lib/components/FilePreparer/FilePreparer.js +112 -108
- package/lib/components/FileUploader/FileUploader.js +8 -7
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
- package/lib/components/HalfGauge/HalfGauge.js +87 -85
- package/lib/components/Highlight/Highlight.js +4 -4
- package/lib/components/ImageResize/ImageResize.d.ts +1 -1
- package/lib/components/ImageResize/ImageResize.js +123 -118
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/InputTags/InputTags.js +6 -7
- package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/lib/components/MaterialButton/MaterialButton.js +50 -125
- package/lib/components/MonthPicker/MonthPicker.js +2 -2
- package/lib/components/OtpInput/OtpInput.tsx +77 -69
- package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
- package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
- package/lib/components/Programa/Programa.d.ts +2 -2
- package/lib/components/Programa/Programa.js +21 -5
- package/lib/components/Programa/Tab.ts +4 -2
- package/lib/components/Programa/TabNavigationRail.js +9 -31
- package/lib/components/Stepper/Stepper.d.ts +1 -1
- package/lib/components/Stepper/Stepper.js +222 -190
- package/lib/components/TablePicker/TablePicker.js +11 -6
- package/lib/components/TextToHtml/TextStyles.js +42 -42
- package/lib/components/TextToHtml/TextToHtml.js +102 -92
- package/lib/components/ThreadLog/ThreadLog.js +1 -1
- package/lib/components/UserCard/UserCard.js +6 -6
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
- package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/lib/components/UtilTextField/UtilTextField.js +18 -16
- package/lib/components/Zoom/Zoom.js +6 -3
- package/lib/utils/api.ts +1 -1
- package/lib/utils/index.ts +10 -8
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { numbersLettersOnly, numbersOnly } from '../../utils';
|
|
2
|
-
import { TextField } from '@material
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
|
-
import MaskedInput from 'react-
|
|
4
|
+
import MaskedInput from '@mona-health/react-input-mask';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
const cepMaskedInput = { inputComponent: (props) => <MaskedInput mask='
|
|
8
|
-
const cpfMaskedInput = { inputComponent: (props) => <MaskedInput mask='
|
|
9
|
-
const cnpjMaskedInput = { inputComponent: (props) => <MaskedInput mask='
|
|
10
|
-
const telephoneMaskedInput = { inputComponent: (props) => <MaskedInput mask='(
|
|
7
|
+
const cepMaskedInput = { inputComponent: (props) => <MaskedInput mask='99999-999' {...props} /> };
|
|
8
|
+
const cpfMaskedInput = { inputComponent: (props) => <MaskedInput mask='999.999.999-99' {...props} /> };
|
|
9
|
+
const cnpjMaskedInput = { inputComponent: (props) => <MaskedInput mask='**.***.***/****-**' {...props} /> };
|
|
10
|
+
const telephoneMaskedInput = { inputComponent: (props) => <MaskedInput mask='(99) 999999999' {...props} /> };
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
const UtilTextField = ({ type, onChange, ...props }) => {
|
|
14
14
|
|
|
15
15
|
const standard = useMemo(() => {
|
|
16
16
|
|
|
17
|
-
let standardObject = {
|
|
18
|
-
valueHandler: (value) => value,
|
|
19
|
-
InputProps: {},
|
|
20
|
-
label: ''
|
|
17
|
+
let standardObject = {
|
|
18
|
+
valueHandler: (value) => value,
|
|
19
|
+
InputProps: {},
|
|
20
|
+
label: ''
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
switch (type) {
|
|
@@ -56,14 +56,16 @@ const UtilTextField = ({ type, onChange, ...props }) => {
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
|
-
<TextField
|
|
60
|
-
{...props}
|
|
61
|
-
label={(props?.label === false) ? '' : (props?.label) ? props?.label : standard.label}
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
<TextField
|
|
60
|
+
{...props}
|
|
61
|
+
label={(props?.label === false) ? '' : (props?.label) ? props?.label : standard.label}
|
|
62
|
+
onChange={handleOnChange}
|
|
63
|
+
slotProps={{
|
|
64
|
+
input: { ...standard.InputProps, ...(props?.InputProps || {}) }
|
|
65
|
+
}}
|
|
64
66
|
/>
|
|
65
67
|
);
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
|
|
69
|
-
export default UtilTextField;
|
|
71
|
+
export default UtilTextField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
2
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import './style.css';
|
|
4
4
|
|
|
@@ -13,7 +13,10 @@ const Zoom = ({ id, style, children }) => {
|
|
|
13
13
|
const mediaElement = figureElement.children?.[0];
|
|
14
14
|
if (mediaElement) figureElement.style.backgroundImage = "url('" + mediaElement.src + "')";
|
|
15
15
|
}, [figureId]);
|
|
16
|
-
useEffect(() =>
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const timeoutId = setTimeout(() => copyMediaUrl(), 500);
|
|
18
|
+
return () => clearTimeout(timeoutId);
|
|
19
|
+
}, [copyMediaUrl]);
|
|
17
20
|
|
|
18
21
|
function zoom(e, activeParameter) {
|
|
19
22
|
if (active || activeParameter) {
|
|
@@ -54,4 +57,4 @@ const Zoom = ({ id, style, children }) => {
|
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
|
|
57
|
-
export default Zoom;
|
|
60
|
+
export default Zoom;
|
package/lib/utils/api.ts
CHANGED
|
@@ -61,7 +61,7 @@ export const serverAction = async (metodo:string, dados = {}, pgCode?:string|boo
|
|
|
61
61
|
const code = typeof pgCode === 'string' ? pgCode : typeof tratarErro === 'string' ? tratarErro : undefined;
|
|
62
62
|
const tErro = typeof tratarErro === 'boolean' ? tratarErro : typeof pgCode === 'boolean' ? pgCode : false;
|
|
63
63
|
|
|
64
|
-
const currentProgram = code || await getCurrentProgram();
|
|
64
|
+
const currentProgram = code || (await getCurrentProgram());
|
|
65
65
|
|
|
66
66
|
const data = {
|
|
67
67
|
pgCode: currentProgram,
|
package/lib/utils/index.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { serverAction } from './api';
|
|
2
2
|
import { getStore } from './store';
|
|
3
3
|
import { getFileFromLink, headers } from '../api';
|
|
4
|
+
import { BasicModalProps } from '../components';
|
|
4
5
|
import { ModalProviderContext } from '../components/ConfirmModal/ModalProvider';
|
|
5
6
|
import { setAnotherProgramField, setField } from '../fieldsRedux';
|
|
7
|
+
// The legacy ESLint resolver does not resolve declaration-only modules.
|
|
8
|
+
// eslint-disable-next-line import/no-unresolved
|
|
6
9
|
import { ActionType, ArgousType } from '../types';
|
|
7
|
-
import { useTheme } from '@material
|
|
8
|
-
import * as colors from '@material
|
|
10
|
+
import { useTheme } from '@mui/material';
|
|
11
|
+
import * as colors from '@mui/material/colors';
|
|
9
12
|
import { ChartOptions } from 'chart.js';
|
|
10
13
|
import DomToImage from 'dom-to-image';
|
|
11
|
-
import { BasicModalProps } from 'lib/components';
|
|
12
14
|
import { isNumber } from 'lodash';
|
|
13
15
|
import moment from 'moment';
|
|
14
16
|
import React, { useRef, useEffect, useContext, useState } from 'react';
|
|
@@ -36,7 +38,7 @@ export const getCookie = (cName: string) => {
|
|
|
36
38
|
return '';
|
|
37
39
|
};
|
|
38
40
|
|
|
39
|
-
export const addExtraZero = (vl: number|string) => (vl < 10) ? `0${typeof vl === 'string' ? parseInt(vl) : vl}` : vl;
|
|
41
|
+
export const addExtraZero = (vl: number|string) => (Number(vl) < 10) ? `0${typeof vl === 'string' ? parseInt(vl) : vl}` : vl;
|
|
40
42
|
|
|
41
43
|
export const formataNome = (value:string) => {
|
|
42
44
|
if (value) {
|
|
@@ -101,14 +103,12 @@ export const getRandomColor = () => {
|
|
|
101
103
|
return color;
|
|
102
104
|
};
|
|
103
105
|
|
|
104
|
-
|
|
106
|
+
class RNG { //pseudo random
|
|
105
107
|
state:any;
|
|
106
108
|
m:number;
|
|
107
109
|
a:number;
|
|
108
110
|
c:number;
|
|
109
|
-
}
|
|
110
111
|
|
|
111
|
-
class RNG { //pseudo random
|
|
112
112
|
constructor(seed:number) {
|
|
113
113
|
// LCG using GCC's constants
|
|
114
114
|
this.m = 0x80000000; // 2**31;
|
|
@@ -139,7 +139,7 @@ export const getInitials = (nome = '') => `${nome.split(' ')[0].substring(0, 1).
|
|
|
139
139
|
export const getNumeroFromInitials = (initials: string, length: number) => Math.ceil(new RNG((initials.charCodeAt(0) + initials.charCodeAt(1) - 130) * length / 5).nextFloat() * 10) - 1;
|
|
140
140
|
|
|
141
141
|
export const usePrevious = (value:any) => {
|
|
142
|
-
const ref = useRef();
|
|
142
|
+
const ref = useRef<any>(undefined);
|
|
143
143
|
useEffect(() => {
|
|
144
144
|
ref.current = value;
|
|
145
145
|
});
|
|
@@ -159,6 +159,8 @@ export function useUpdateEffect(effect: React.EffectCallback, dependencies: Reac
|
|
|
159
159
|
useEffect(() => {
|
|
160
160
|
if (isInitialMount.current) isInitialMount.current = false;
|
|
161
161
|
else effect();
|
|
162
|
+
// This compatibility hook deliberately forwards the caller's dependency list.
|
|
163
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
162
164
|
}, dependencies);
|
|
163
165
|
}
|
|
164
166
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "argous",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Argous.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Carlos Schneider",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"lib",
|
|
10
|
+
"index.js"
|
|
11
|
+
],
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20"
|
|
14
|
+
},
|
|
7
15
|
"scripts": {
|
|
8
16
|
"build": "tsc && node ./scripts/copy-files.js",
|
|
9
17
|
"lint": "eslint ./lib",
|
|
@@ -12,99 +20,91 @@
|
|
|
12
20
|
"devDependencies": {
|
|
13
21
|
"@date-io/core": "^1.3.6",
|
|
14
22
|
"@date-io/moment": "^1.3.13",
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
17
|
-
"@material
|
|
18
|
-
"@
|
|
23
|
+
"@emotion/react": "^11.11.4",
|
|
24
|
+
"@emotion/styled": "^11.11.5",
|
|
25
|
+
"@mui/material": "^9.2.0",
|
|
26
|
+
"@mui/x-date-pickers": "^9.10.1",
|
|
19
27
|
"@types/chart.js": "^2.9.31",
|
|
20
28
|
"@types/glob": "^7",
|
|
21
29
|
"@types/jquery": "^3.5.5",
|
|
22
|
-
"@types/lodash": "4.17.
|
|
23
|
-
"@types/node": "^
|
|
24
|
-
"@types/react": "^
|
|
25
|
-
"@types/react-custom-scrollbars": "^4",
|
|
30
|
+
"@types/lodash": "^4.17.27",
|
|
31
|
+
"@types/node": "^24.10.0",
|
|
32
|
+
"@types/react": "^19.3.0",
|
|
26
33
|
"@types/react-date-range": "^1.1.4",
|
|
27
|
-
"@types/react-dom": "^
|
|
28
|
-
"@types/react-maskedinput": "^4",
|
|
29
|
-
"@types/react-redux": "^7.1.16",
|
|
34
|
+
"@types/react-dom": "^19.3.0",
|
|
30
35
|
"@types/react-spinkit": "^3",
|
|
31
36
|
"@types/redux-actions": "^2.6.1",
|
|
32
37
|
"@types/redux-logger": "^3.0.8",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
34
|
-
"@typescript-eslint/parser": "^
|
|
35
|
-
"@yarnpkg/pnpify": "^2.4.0",
|
|
36
|
-
"babel-eslint": "^10.1.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
37
40
|
"chart.js": "^2.9.4",
|
|
38
41
|
"clsx": "^1.1.1",
|
|
39
|
-
"date-fns": "^
|
|
42
|
+
"date-fns": "^3.6.0",
|
|
40
43
|
"dom-to-image": "^2.6.0",
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint-config-react-app": "^
|
|
43
|
-
"eslint-
|
|
44
|
-
"eslint-plugin-
|
|
45
|
-
"eslint-plugin-
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"eslint-plugin-react
|
|
44
|
+
"eslint": "^8.57.1",
|
|
45
|
+
"eslint-config-react-app": "^7.0.1",
|
|
46
|
+
"eslint-import-resolver-typescript": "2.7.1",
|
|
47
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
48
|
+
"eslint-plugin-import": "^2.32.0",
|
|
49
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
+
"eslint-plugin-react": "^7.37.5",
|
|
48
51
|
"fs-extra": "^9.1.0",
|
|
49
52
|
"glob": "^7.1.6",
|
|
50
|
-
"immer": "^
|
|
51
|
-
"lodash": "4.
|
|
52
|
-
"moment": "^2.
|
|
53
|
+
"immer": "^11.2.9",
|
|
54
|
+
"lodash": "^4.18.1",
|
|
55
|
+
"moment": "^2.31.0",
|
|
53
56
|
"path": "^0.12.7",
|
|
54
57
|
"prop-types": "^15.7.2",
|
|
55
|
-
"react": "^
|
|
56
|
-
"react-
|
|
57
|
-
"react-dom": "^17.0.1",
|
|
58
|
+
"react": "^19.3.1",
|
|
59
|
+
"react-dom": "^19.3.1",
|
|
58
60
|
"react-icons": "^4.2.0",
|
|
59
|
-
"react-is": "^
|
|
60
|
-
"react-
|
|
61
|
-
"react-redux": "^
|
|
61
|
+
"react-is": "^19.3.1",
|
|
62
|
+
"@mona-health/react-input-mask": "^3.0.3",
|
|
63
|
+
"react-redux": "^9.2.0",
|
|
62
64
|
"react-spinkit": "^3.0.0",
|
|
63
|
-
"react-test-renderer": "^
|
|
64
|
-
"
|
|
65
|
-
"redux": "^4.0.5",
|
|
65
|
+
"react-test-renderer": "^19.3.1",
|
|
66
|
+
"redux": "^5.0.1",
|
|
66
67
|
"redux-actions": "^2.6.5",
|
|
67
68
|
"redux-logger": "^3.0.6",
|
|
68
69
|
"styled-components": "^5.2.1",
|
|
69
|
-
"use-immer": "^0.
|
|
70
|
+
"use-immer": "^0.11.0"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@date-io/core": "*",
|
|
73
74
|
"@date-io/moment": "*",
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@material
|
|
75
|
+
"@emotion/react": ">=11.11.4 <12",
|
|
76
|
+
"@emotion/styled": ">=11.11.5 <12",
|
|
77
|
+
"@mui/material": ">=9.2.0 <10",
|
|
78
|
+
"@mui/x-date-pickers": ">=9.10.1 <10",
|
|
77
79
|
"chart.js": "*",
|
|
78
80
|
"clsx": "*",
|
|
79
81
|
"date-fns": "*",
|
|
80
82
|
"dom-to-image": "*",
|
|
81
|
-
"immer": "
|
|
82
|
-
"lodash": "
|
|
83
|
-
"moment": "
|
|
83
|
+
"immer": ">=9.0.6 <12",
|
|
84
|
+
"lodash": ">=4.18.1 <5",
|
|
85
|
+
"moment": ">=2.31.0 <3",
|
|
84
86
|
"prop-types": "*",
|
|
85
|
-
"react": "
|
|
86
|
-
"react-
|
|
87
|
-
"react-dom": "*",
|
|
87
|
+
"react": ">=17 <20",
|
|
88
|
+
"react-dom": ">=17 <20",
|
|
88
89
|
"react-icons": "*",
|
|
89
90
|
"react-is": "*",
|
|
90
|
-
"react-
|
|
91
|
-
"react-redux": "
|
|
91
|
+
"@mona-health/react-input-mask": ">=3.0.3 <4",
|
|
92
|
+
"react-redux": ">=9.2.0 <10",
|
|
92
93
|
"react-spinkit": "*",
|
|
93
|
-
"
|
|
94
|
-
"redux": "*",
|
|
94
|
+
"redux": ">=5.0.1 <6",
|
|
95
95
|
"redux-actions": "*",
|
|
96
96
|
"redux-logger": "*",
|
|
97
97
|
"styled-components": "*",
|
|
98
|
-
"use-immer": "
|
|
98
|
+
"use-immer": ">=0.11.0 <1"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"highlight.js": "^10.7.1",
|
|
102
102
|
"jquery": "^3.6.0",
|
|
103
103
|
"react-colorful": "^5.6.1",
|
|
104
|
-
"react-date-range": "0.
|
|
105
|
-
"react-paginate": "^
|
|
104
|
+
"react-date-range": "^2.0.1",
|
|
105
|
+
"react-paginate": "^8.3.0",
|
|
106
106
|
"react-transition-group": "^4.4.1",
|
|
107
|
-
"smooth-dnd": "
|
|
108
|
-
"typescript": "4.
|
|
107
|
+
"trello-smooth-dnd": "1.0.0",
|
|
108
|
+
"typescript": "^5.4.5"
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
}
|
package/.gitlab-ci.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# cache:
|
|
2
|
-
# paths:
|
|
3
|
-
# - node_modules/
|
|
4
|
-
|
|
5
|
-
# publish:
|
|
6
|
-
# stage: deploy
|
|
7
|
-
# before_script:
|
|
8
|
-
# - npm config set '//registry.npmjs.org/:_authToken' $AUTH_KEY
|
|
9
|
-
# - if ! git config user.name; then
|
|
10
|
-
# - git config user.email "gitlab-runner@unimedvaledocai.com.br"
|
|
11
|
-
# - git config user.name "gitlab-runner"
|
|
12
|
-
# - fi
|
|
13
|
-
# script:
|
|
14
|
-
# - yarn
|
|
15
|
-
# - yarn build
|
|
16
|
-
# - npm version patch
|
|
17
|
-
# - npm publish
|
|
18
|
-
# after_script:
|
|
19
|
-
# - git push origin HEAD:$CI_COMMIT_BRANCH
|
|
20
|
-
# rules:
|
|
21
|
-
# - if: '$CI_PROJECT_NAMESPACE == "quatro" && $CI_COMMIT_BRANCH == "master"'
|