argous 1.2.246 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/WebSocket.d.ts +22 -10
- package/dist/api/WebSocket.js +40 -28
- package/dist/api/index.js +154 -132
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +45 -4
- package/dist/components/Alert/Alert.d.ts +19 -5
- package/dist/components/Alert/Alert.js +23 -9
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
- package/dist/components/ArgousAction/ArgousAction.js +25 -11
- package/dist/components/ArgousAction/index.d.ts +1 -2
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
- package/dist/components/ArgousAvatar/ArgousAvatar.js +54 -66
- package/dist/components/ArgousAvatar/index.d.ts +1 -2
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +114 -82
- package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +94 -80
- package/dist/components/ArgousComplexTable/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +126 -100
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableBody/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +3 -73
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +72 -51
- package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +63 -41
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
- package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
- package/dist/components/ArgousInput/ArgousInput.js +27 -13
- package/dist/components/ArgousInput/index.d.ts +1 -2
- package/dist/components/ArgousPagination/ArgousPagination.d.ts +3 -5
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousPagination/index.d.ts +1 -2
- package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +31 -21
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousProgressBar/index.d.ts +1 -2
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +3 -5
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +43 -33
- package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
- package/dist/components/AutoComplete/AutoComplete.js +34 -21
- package/dist/components/AutoComplete/index.d.ts +1 -2
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +241 -185
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
- package/dist/components/BarChart/BarChart.d.ts +29 -5
- package/dist/components/BarChart/BarChart.js +22 -8
- package/dist/components/BarChart/index.d.ts +1 -2
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -25
- package/dist/components/BarraFerramentas/BarraFerramentas.js +163 -131
- package/dist/components/BarraFerramentas/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +54 -5
- package/dist/components/Button/Button.js +25 -11
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
- package/dist/components/Cabecalho/Cabecalho.js +46 -32
- package/dist/components/Cabecalho/index.d.ts +1 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -8
- package/dist/components/Calendar/Calendar.js +35 -48
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Cam/Cam.d.ts +24 -24
- package/dist/components/Cam/Cam.js +34 -20
- package/dist/components/Cam/index.d.ts +1 -2
- package/dist/components/Carousel/Carousel.d.ts +21 -71
- package/dist/components/Carousel/Carousel.js +125 -111
- package/dist/components/Carousel/index.d.ts +1 -2
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
- package/dist/components/CartaoUsuario/CartaoUsuario.js +54 -40
- package/dist/components/CartaoUsuario/index.d.ts +1 -2
- package/dist/components/Collapse/Collapse.d.ts +55 -56
- package/dist/components/Collapse/Collapse.js +133 -79
- package/dist/components/Collapse/index.d.ts +1 -3
- package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
- package/dist/components/Compartilhar/Compartilhar.js +92 -83
- package/dist/components/Compartilhar/index.d.ts +1 -2
- 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 +34 -20
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ConfirmModal/index.d.ts +6 -20
- package/dist/components/ConfirmModal/index.js +5 -1
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
- package/dist/components/ContactValidationInput/ContactValidationInput.js +133 -105
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/ContactValidationInput/index.d.ts +1 -2
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +46 -25
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +44 -24
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +60 -42
- package/dist/components/Document/index.d.ts +3 -3
- package/dist/components/Document/index.js +5 -1
- package/dist/components/DropArea/DropArea.d.ts +8 -21
- package/dist/components/DropArea/DropArea.js +43 -24
- package/dist/components/DropArea/Html5FileSelector.js +8 -9
- package/dist/components/DropArea/index.d.ts +1 -2
- package/dist/components/Editor/Events.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.js +3 -3
- package/dist/components/Editor/Utils.d.ts +4 -4
- package/dist/components/Editor/Utils.js +3 -3
- package/dist/components/Editor/components/Editor.d.ts +2 -2
- package/dist/components/Editor/components/Editor.js +38 -24
- package/dist/components/Editor/components/EditorPropTypes.d.ts +2 -2
- package/dist/components/Editor/components/EditorPropTypes.js +22 -8
- package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
- package/dist/components/FilePreparer/FilePreparer.js +133 -108
- package/dist/components/FilePreparer/index.d.ts +1 -2
- package/dist/components/FileUploader/FileUploader.d.ts +21 -8
- package/dist/components/FileUploader/FileUploader.js +54 -39
- package/dist/components/FileUploader/index.d.ts +1 -2
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
- package/dist/components/FormVisualizer/FormVisualizer.js +119 -80
- package/dist/components/FormVisualizer/index.d.ts +1 -2
- package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
- package/dist/components/HalfGauge/HalfGauge.js +107 -151
- package/dist/components/HalfGauge/index.d.ts +1 -2
- package/dist/components/Highlight/Highlight.d.ts +20 -7
- package/dist/components/Highlight/Highlight.js +28 -13
- package/dist/components/Highlight/index.d.ts +1 -2
- package/dist/components/ImageResize/ImageResize.d.ts +8 -28
- package/dist/components/ImageResize/ImageResize.js +128 -130
- package/dist/components/ImageResize/index.d.ts +1 -2
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
- package/dist/components/ImageResizeButton/ImageResizeButton.js +28 -14
- package/dist/components/ImageResizeButton/index.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +2 -8
- package/dist/components/Input/Input.js +27 -13
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputTags/InputTags.d.ts +2 -8
- package/dist/components/InputTags/InputTags.js +38 -21
- package/dist/components/InputTags/index.d.ts +1 -2
- package/dist/components/ListSelect/ListSelect.d.ts +2 -8
- package/dist/components/ListSelect/ListSelect.js +28 -14
- package/dist/components/ListSelect/index.d.ts +1 -2
- package/dist/components/MaterialButton/MaterialButton.d.ts +30 -12
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MaterialButton/index.d.ts +1 -2
- package/dist/components/MenuBar/MenuBar.d.ts +2 -8
- package/dist/components/MenuBar/MenuBar.js +28 -14
- package/dist/components/MenuBar/index.d.ts +1 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
- package/dist/components/MonthPicker/MonthPicker.js +53 -35
- package/dist/components/MonthPicker/index.d.ts +1 -2
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
- package/dist/components/MultipleSelect/MultipleSelect.js +37 -19
- package/dist/components/MultipleSelect/index.d.ts +1 -2
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +80 -63
- package/dist/components/OtpInput/index.d.ts +1 -2
- package/dist/components/OutputText/OutputText.d.ts +2 -8
- package/dist/components/OutputText/OutputText.js +25 -11
- package/dist/components/OutputText/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +16 -5
- package/dist/components/Pagination/Pagination.js +22 -8
- package/dist/components/Pagination/index.d.ts +1 -2
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
- package/dist/components/PercentageDisplay/PercentageDisplay.js +25 -89
- package/dist/components/PercentageDisplay/index.d.ts +1 -2
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +6 -5
- package/dist/components/Programa/PageCodeEasterEgg.js +49 -36
- package/dist/components/Programa/Programa.d.ts +72 -32
- package/dist/components/Programa/Programa.js +78 -28
- package/dist/components/Programa/Tab.d.ts +7 -0
- package/dist/components/Programa/Tab.js +2 -0
- package/dist/components/Programa/TabNavigationRail.d.ts +12 -0
- package/dist/components/Programa/TabNavigationRail.js +76 -0
- package/dist/components/Programa/index.d.ts +1 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
- package/dist/components/ProgressBar/ProgressBar.js +25 -11
- package/dist/components/ProgressBar/index.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +2 -8
- package/dist/components/Select/Select.js +28 -14
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
- package/dist/components/SimpleTable/SimpleTable.js +47 -33
- package/dist/components/SimpleTable/index.d.ts +1 -2
- package/dist/components/Stepper/Stepper.d.ts +25 -68
- package/dist/components/Stepper/Stepper.js +200 -181
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/TablePicker/TablePicker.d.ts +3 -8
- package/dist/components/TablePicker/TablePicker.js +76 -43
- package/dist/components/TablePicker/index.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +25 -5
- package/dist/components/Tabs/Tabs.js +25 -11
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -8
- package/dist/components/TextArea/TextArea.js +25 -11
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +26 -12
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +57 -46
- package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
- package/dist/components/TextToHtml/TextToHtml.js +76 -56
- package/dist/components/TextToHtml/index.d.ts +1 -2
- package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
- package/dist/components/ThreadLog/ThreadLog.js +34 -20
- package/dist/components/ThreadLog/index.d.ts +1 -2
- package/dist/components/UserCard/UserCard.d.ts +6 -15
- package/dist/components/UserCard/UserCard.js +51 -37
- package/dist/components/UserCard/index.d.ts +1 -2
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +44 -30
- package/dist/components/UtilAutoComplete/index.d.ts +1 -2
- package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
- package/dist/components/UtilTextField/UtilTextField.js +36 -20
- package/dist/components/UtilTextField/index.d.ts +1 -2
- package/dist/components/Zoom/Zoom.d.ts +7 -15
- package/dist/components/Zoom/Zoom.js +32 -29
- package/dist/components/Zoom/index.d.ts +1 -2
- package/dist/components/index.d.ts +118 -180
- package/dist/components/index.js +5 -1
- package/dist/fieldsRedux/createField.d.ts +6 -6
- package/dist/fieldsRedux/createField.js +39 -25
- package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
- package/dist/fieldsRedux/fieldsRedux.js +63 -49
- package/dist/fieldsRedux/index.d.ts +17 -2
- package/dist/fieldsRedux/passFields.d.ts +2 -0
- package/dist/fieldsRedux/passFields.js +33 -19
- package/dist/reducers/index.d.ts +98 -2
- package/dist/reducers/index.js +1 -1
- package/dist/utils/api.d.ts +2 -2
- package/dist/utils/api.js +50 -33
- package/dist/utils/config.js +2 -3
- package/dist/utils/date.js +4 -4
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +108 -162
- package/dist/utils/store.js +2 -3
- package/dist/utils/xmlToJson.js +1 -1
- 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.d.ts +30 -2
- package/lib/components/BarraFerramentas/BarraFerramentas.js +92 -37
- 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/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 +18 -3
- package/lib/components/Programa/Programa.js +60 -7
- package/lib/components/Programa/Tab.ts +8 -0
- package/lib/components/Programa/TabNavigationRail.js +96 -0
- 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 -96
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
- package/dist/components/Cam/cam.css +0 -8
- package/dist/components/ContactValidationInput/style.css +0 -10
- package/dist/components/Document/icons/ai.svg +0 -20
- package/dist/components/Document/icons/audio.svg +0 -16
- package/dist/components/Document/icons/avi.svg +0 -15
- package/dist/components/Document/icons/css.svg +0 -47
- package/dist/components/Document/icons/csv.svg +0 -37
- package/dist/components/Document/icons/dbf.svg +0 -30
- package/dist/components/Document/icons/doc.svg +0 -47
- package/dist/components/Document/icons/dwg.svg +0 -32
- package/dist/components/Document/icons/exe.svg +0 -20
- package/dist/components/Document/icons/file.svg +0 -11
- package/dist/components/Document/icons/fla.svg +0 -23
- package/dist/components/Document/icons/html.svg +0 -23
- package/dist/components/Document/icons/image.svg +0 -16
- package/dist/components/Document/icons/iso.svg +0 -40
- package/dist/components/Document/icons/jpg.svg +0 -33
- package/dist/components/Document/icons/js.svg +0 -40
- package/dist/components/Document/icons/json.svg +0 -45
- package/dist/components/Document/icons/mod.svg +0 -41
- package/dist/components/Document/icons/mp3.svg +0 -36
- package/dist/components/Document/icons/mp4.svg +0 -25
- package/dist/components/Document/icons/pdf.svg +0 -35
- package/dist/components/Document/icons/png.svg +0 -30
- package/dist/components/Document/icons/ppt.svg +0 -31
- package/dist/components/Document/icons/psd.svg +0 -50
- package/dist/components/Document/icons/rtf.svg +0 -35
- package/dist/components/Document/icons/search.svg +0 -20
- package/dist/components/Document/icons/svg.svg +0 -34
- package/dist/components/Document/icons/txt.svg +0 -29
- package/dist/components/Document/icons/video.svg +0 -17
- package/dist/components/Document/icons/xls.svg +0 -31
- package/dist/components/Document/icons/xml.svg +0 -25
- package/dist/components/Document/icons/zip.svg +0 -24
- package/dist/components/Document/icons/zip1.svg +0 -18
- package/dist/components/Editor/skins/content/dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/default/content.min.css +0 -1
- package/dist/components/Editor/skins/content/document/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/writer/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -194
- package/dist/components/Editor/tinymce/icons/default/icons.min.js +0 -1
- package/dist/components/Editor/tinymce/skins/content/dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/default/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/default/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/document/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/document/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/writer/content.css +0 -62
- package/dist/components/Editor/tinymce/skins/content/writer/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/tinymce.d.ts +0 -3238
- package/dist/components/TextToHtml/icons/resize_area.svg +0 -2
- package/dist/components/TextToHtml/style.css +0 -40
- package/dist/components/Zoom/style.css +0 -25
- package/dist/types.d.ts +0 -164
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import clsx from 'clsx';
|
|
1
|
+
import { Box } from '@mui/material';
|
|
3
2
|
import { isNumber } from 'lodash';
|
|
4
3
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
5
4
|
|
|
@@ -9,74 +8,6 @@ const ELLIPSIS_TEXT_STYLE = {
|
|
|
9
8
|
textOverflow: 'ellipsis'
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
const useStyles = makeStyles({
|
|
13
|
-
container: {
|
|
14
|
-
display: 'flex',
|
|
15
|
-
height: ({ size }) => `${size / 2}px`,
|
|
16
|
-
transition: 'all .3s',
|
|
17
|
-
opacity: ({ responsive }) => responsive ? 0 : 1
|
|
18
|
-
},
|
|
19
|
-
gauge: {
|
|
20
|
-
height: ({ size }) => size,
|
|
21
|
-
width: ({ size }) => size,
|
|
22
|
-
backgroundColor: ({ barBackgroundColor }) => barBackgroundColor,
|
|
23
|
-
borderRadius: '50%',
|
|
24
|
-
display: 'grid',
|
|
25
|
-
placeItems: 'center',
|
|
26
|
-
webkitClipPath: 'polygon(0 0, 100% 0, 100% 51%, 0 51%)',
|
|
27
|
-
clipPath: 'polygon(0 0, 100% 0, 100% 51%, 0 51%)',
|
|
28
|
-
'&::before': {
|
|
29
|
-
content: '""',
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
height: ({ gaugeBarWidth }) => gaugeBarWidth,
|
|
32
|
-
width: ({ gaugeBarWidth }) => gaugeBarWidth,
|
|
33
|
-
borderRadius: '50%',
|
|
34
|
-
backgroundColor: ({ backgroundColor }) => backgroundColor
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
valueDiv: {
|
|
38
|
-
position: 'absolute',
|
|
39
|
-
color: ({ color }) => color,
|
|
40
|
-
fontSize: ({ fontSize }) => fontSize,
|
|
41
|
-
maxWidth: ({ size }) => `${size / 2}px`,
|
|
42
|
-
minWidth: ({ size }) => `${size / 2}px`,
|
|
43
|
-
maxHeight: ({ size }) => `${size / 4}px`,
|
|
44
|
-
minHeight: ({ size }) => `${size / 4}px`,
|
|
45
|
-
transform: ({ size }) => `translateY(-${(size / 4) / 2}px)`,
|
|
46
|
-
display: 'flex',
|
|
47
|
-
flexDirection: 'column',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
justifyContent: 'end',
|
|
50
|
-
overflow: 'hidden',
|
|
51
|
-
whiteSpace: 'nowrap',
|
|
52
|
-
padding: 4,
|
|
53
|
-
'&>p': {
|
|
54
|
-
...ELLIPSIS_TEXT_STYLE,
|
|
55
|
-
margin: 0,
|
|
56
|
-
width: '100%',
|
|
57
|
-
textAlign: 'center',
|
|
58
|
-
'&:first-child': {
|
|
59
|
-
fontWeight: 'bold'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
minMax: {
|
|
64
|
-
display: 'flex',
|
|
65
|
-
alignItems: 'end',
|
|
66
|
-
padding: '0 1rem',
|
|
67
|
-
width: ({ minMaxWidth }) => minMaxWidth,
|
|
68
|
-
color: ({ color }) => color,
|
|
69
|
-
fontSize: ({ fontSize }) => fontSize,
|
|
70
|
-
'&>p': {
|
|
71
|
-
margin: 0
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
min: {
|
|
75
|
-
justifyContent: 'end'
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
|
|
80
11
|
const getHand = (percentage, handColor) => {
|
|
81
12
|
if (!isNumber(percentage)) return '';
|
|
82
13
|
|
|
@@ -128,7 +59,6 @@ const HalfGauge = ({
|
|
|
128
59
|
}) => {
|
|
129
60
|
|
|
130
61
|
const gaugeBarWidth = size - (size / 2);
|
|
131
|
-
const classes = useStyles({ color, backgroundColor, barBackgroundColor, size, gaugeBarWidth, fontSize, minMaxWidth, responsive });
|
|
132
62
|
|
|
133
63
|
const halfGaugeId = `${id}-halfGauge`;
|
|
134
64
|
const halfGaugeHandId = `${id}-halfGaugeHand`;
|
|
@@ -231,37 +161,109 @@ const HalfGauge = ({
|
|
|
231
161
|
|
|
232
162
|
setTimeout(() => makeResponsive(), 500);
|
|
233
163
|
}, [halfGaugeContainerId]);
|
|
234
|
-
useEffect(() =>
|
|
164
|
+
useEffect(() => {
|
|
165
|
+
if (responsive) makeResponsive();
|
|
166
|
+
}, [responsive, makeResponsive]);
|
|
235
167
|
|
|
236
168
|
|
|
237
169
|
const displayContainer = useCallback(() => {
|
|
238
170
|
const containerEl = document.getElementById(halfGaugeContainerId);
|
|
239
171
|
if (containerEl) containerEl.style.opacity = 1;
|
|
240
172
|
}, [halfGaugeContainerId]);
|
|
241
|
-
useEffect(() =>
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
if (!responsive) return undefined;
|
|
175
|
+
const timeoutId = setTimeout(() => displayContainer(), 500);
|
|
176
|
+
return () => clearTimeout(timeoutId);
|
|
177
|
+
}, [responsive, displayContainer]);
|
|
242
178
|
|
|
243
179
|
//____________________________________________________________________________________________________
|
|
244
180
|
|
|
245
181
|
|
|
246
|
-
|
|
247
|
-
|
|
182
|
+
const gaugeSx = {
|
|
183
|
+
height: size,
|
|
184
|
+
width: size,
|
|
185
|
+
backgroundColor: barBackgroundColor,
|
|
186
|
+
borderRadius: '50%',
|
|
187
|
+
display: 'grid',
|
|
188
|
+
placeItems: 'center',
|
|
189
|
+
webkitClipPath: 'polygon(0 0, 100% 0, 100% 51%, 0 51%)',
|
|
190
|
+
clipPath: 'polygon(0 0, 100% 0, 100% 51%, 0 51%)',
|
|
191
|
+
'&::before': {
|
|
192
|
+
content: '""',
|
|
193
|
+
position: 'absolute',
|
|
194
|
+
height: gaugeBarWidth,
|
|
195
|
+
width: gaugeBarWidth,
|
|
196
|
+
borderRadius: '50%',
|
|
197
|
+
backgroundColor
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const minMaxSx = {
|
|
202
|
+
display: 'flex',
|
|
203
|
+
alignItems: 'end',
|
|
204
|
+
padding: '0 1rem',
|
|
205
|
+
width: minMaxWidth,
|
|
206
|
+
color,
|
|
207
|
+
fontSize,
|
|
208
|
+
'&>p': {
|
|
209
|
+
margin: 0
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
return <Box
|
|
214
|
+
id={halfGaugeContainerId}
|
|
215
|
+
sx={{
|
|
216
|
+
display: 'flex',
|
|
217
|
+
height: `${size / 2}px`,
|
|
218
|
+
transition: 'all .3s',
|
|
219
|
+
opacity: responsive ? 0 : 1
|
|
220
|
+
}}
|
|
221
|
+
>
|
|
222
|
+
<Box sx={{ ...minMaxSx, justifyContent: 'end' }}>
|
|
248
223
|
<p>
|
|
249
224
|
{min}
|
|
250
225
|
</p>
|
|
251
|
-
</
|
|
252
|
-
<
|
|
253
|
-
<
|
|
254
|
-
<
|
|
226
|
+
</Box>
|
|
227
|
+
<Box id={halfGaugeId} sx={gaugeSx}>
|
|
228
|
+
<Box id={halfGaugeHandId} sx={gaugeSx} />
|
|
229
|
+
<Box
|
|
230
|
+
sx={{
|
|
231
|
+
position: 'absolute',
|
|
232
|
+
color,
|
|
233
|
+
fontSize,
|
|
234
|
+
maxWidth: `${size / 2}px`,
|
|
235
|
+
minWidth: `${size / 2}px`,
|
|
236
|
+
maxHeight: `${size / 4}px`,
|
|
237
|
+
minHeight: `${size / 4}px`,
|
|
238
|
+
transform: `translateY(-${(size / 4) / 2}px)`,
|
|
239
|
+
display: 'flex',
|
|
240
|
+
flexDirection: 'column',
|
|
241
|
+
alignItems: 'center',
|
|
242
|
+
justifyContent: 'end',
|
|
243
|
+
overflow: 'hidden',
|
|
244
|
+
whiteSpace: 'nowrap',
|
|
245
|
+
padding: 4,
|
|
246
|
+
'&>p': {
|
|
247
|
+
...ELLIPSIS_TEXT_STYLE,
|
|
248
|
+
margin: 0,
|
|
249
|
+
width: '100%',
|
|
250
|
+
textAlign: 'center',
|
|
251
|
+
'&:first-of-type': {
|
|
252
|
+
fontWeight: 'bold'
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}}
|
|
256
|
+
>
|
|
255
257
|
{percentageText && <p>{percentageText}</p>}
|
|
256
258
|
{label && <p>{label}</p>}
|
|
257
|
-
</
|
|
258
|
-
</
|
|
259
|
-
<
|
|
259
|
+
</Box>
|
|
260
|
+
</Box>
|
|
261
|
+
<Box sx={minMaxSx}>
|
|
260
262
|
<p>
|
|
261
263
|
{max}
|
|
262
264
|
</p>
|
|
263
|
-
</
|
|
264
|
-
</
|
|
265
|
+
</Box>
|
|
266
|
+
</Box>;
|
|
265
267
|
};
|
|
266
268
|
|
|
267
|
-
export default HalfGauge;
|
|
269
|
+
export default HalfGauge;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import highlight from 'highlight.js';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
|
-
import { findDOMNode } from 'react-dom';
|
|
5
4
|
|
|
6
5
|
class HighLight extends Component {
|
|
6
|
+
codeRef = React.createRef();
|
|
7
7
|
|
|
8
8
|
componentDidMount () {
|
|
9
|
-
highlight.highlightBlock(
|
|
9
|
+
highlight.highlightBlock(this.codeRef.current);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
shouldComponentUpdate(nextProps) {
|
|
@@ -19,7 +19,7 @@ class HighLight extends Component {
|
|
|
19
19
|
|
|
20
20
|
componentDidUpdate () {
|
|
21
21
|
highlight.initHighlighting.called = false;
|
|
22
|
-
highlight.highlightBlock(
|
|
22
|
+
highlight.highlightBlock(this.codeRef.current);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
render () {
|
|
@@ -32,7 +32,7 @@ class HighLight extends Component {
|
|
|
32
32
|
>
|
|
33
33
|
<code
|
|
34
34
|
className={language}
|
|
35
|
-
ref=
|
|
35
|
+
ref={this.codeRef}
|
|
36
36
|
>
|
|
37
37
|
{children}
|
|
38
38
|
</code>
|
|
@@ -1,74 +1,78 @@
|
|
|
1
1
|
|
|
2
2
|
import { useUpdateEffect } from '../../utils';
|
|
3
|
-
import { Button, Dialog, DialogTitle, DialogContent, DialogActions,
|
|
4
|
-
import clsx from 'clsx';
|
|
3
|
+
import { Box, Button, Dialog, DialogTitle, DialogContent, DialogActions, Grid, List, ListItem, ListItemText, Slider } from '@mui/material';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
5
|
import $ from 'jquery';
|
|
6
6
|
import React, { useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { MdCrop } from 'react-icons/md';
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
9
|
+
const componentSx = ({ height = 300, width = 300 }) => ({
|
|
10
|
+
position: 'relative',
|
|
11
|
+
background: 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAAHmWi9wAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMBJREFUeNpinDFjemBgIAMaePv2zX8MwMSADdBKFCCAGF++fIEuBHQEYb3UFAIIIOwBQWzQEOvVwaMOIICwBDoWRZjRQKaNo4rorQgggBiBCVpISJiBGoCJgXpg1KxRs0aiWQABxPj79+93795SbhAwUxNVLo+G/ahZo2aNmjVq1qhZI8wsgADt1zERADAMAsD6t5B4bRHRgeGj4I8FctKPM3ObLp6fk7w1eSwsLCwsLCwsLCwsrE5WvrHdrTLF8wBDaPAHu14WwgAAAABJRU5ErkJggg==") repeat center center',
|
|
12
|
+
padding: '4em',
|
|
13
|
+
height: `calc(${height}px + 200px)`,
|
|
14
|
+
border: '3px solid #49708A',
|
|
15
|
+
maxWidth: `calc(${width}px + 600px)`,
|
|
16
|
+
overflow: 'hidden',
|
|
17
|
+
margin: '0 auto',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const overlaySx = ({ width = 300, height = 300, borderRadius }) => ({
|
|
21
|
+
position: 'absolute',
|
|
22
|
+
left: `calc(50% - ${(width - 300) / 2}px)`,
|
|
23
|
+
top: `calc(50% - ${(height - 300) / 2}px)`,
|
|
24
|
+
marginLeft: '-150px',
|
|
25
|
+
marginTop: '-150px',
|
|
26
|
+
zIndex: 999,
|
|
27
|
+
width: width ?? '300px',
|
|
28
|
+
height: height ?? '300px',
|
|
29
|
+
border: 'solid 2px rgba(222,60,80,.9)',
|
|
30
|
+
borderRadius: borderRadius ?? '50%',
|
|
31
|
+
boxSizing: 'content-box',
|
|
32
|
+
pointerEvents: 'none',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const resizeContainerSx = {
|
|
36
|
+
position: 'relative',
|
|
37
|
+
display: 'inline-block',
|
|
38
|
+
cursor: 'move',
|
|
39
|
+
margin: '0 auto',
|
|
40
|
+
'&:hover, &:active': {
|
|
41
|
+
outline: '2px dashed rgba(222,60,80,.9)'
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const resizeHandleSx = {
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
display: 'block',
|
|
48
|
+
width: '10px',
|
|
49
|
+
height: '10px',
|
|
50
|
+
background: 'rgba(222,60,80,.9)',
|
|
51
|
+
zIndex: 999,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const resizeHandlePositionSx = {
|
|
55
|
+
nw: {
|
|
52
56
|
top: '-5px',
|
|
53
57
|
left: '-5px',
|
|
54
58
|
cursor: 'nw-resize',
|
|
55
59
|
},
|
|
56
|
-
|
|
60
|
+
sw: {
|
|
57
61
|
bottom: '-5px',
|
|
58
62
|
left: '-5px',
|
|
59
63
|
cursor: 'sw-resize',
|
|
60
64
|
},
|
|
61
|
-
|
|
65
|
+
ne: {
|
|
62
66
|
top: '-5px',
|
|
63
67
|
right: '-5px',
|
|
64
68
|
cursor: 'ne-resize',
|
|
65
69
|
},
|
|
66
|
-
|
|
70
|
+
se: {
|
|
67
71
|
bottom: '-5px',
|
|
68
72
|
right: '-5px',
|
|
69
73
|
cursor: 'se-resize',
|
|
70
74
|
}
|
|
71
|
-
}
|
|
75
|
+
};
|
|
72
76
|
|
|
73
77
|
const DEFAULT_OPTIONS = [
|
|
74
78
|
{
|
|
@@ -156,7 +160,6 @@ const DEFAULT_OPTIONS = [
|
|
|
156
160
|
];
|
|
157
161
|
|
|
158
162
|
const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) => {
|
|
159
|
-
const classes = useStyles(finalImageProperties);
|
|
160
163
|
const [urlImagem, setUrlImagem] = useState(undefined);
|
|
161
164
|
|
|
162
165
|
const [key, setKey] = useState(undefined);
|
|
@@ -219,11 +222,11 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
219
222
|
// Save the initial event details and container state
|
|
220
223
|
eventState.container_width = $container.width();
|
|
221
224
|
eventState.container_height = $container.height();
|
|
222
|
-
eventState.container_left = $container.offset().left;
|
|
225
|
+
eventState.container_left = $container.offset().left;
|
|
223
226
|
eventState.container_top = $container.offset().top;
|
|
224
|
-
eventState.mouse_x = (e.clientX || e.pageX || e.originalEvent.touches?.at(0).clientX) + $(window).scrollLeft();
|
|
227
|
+
eventState.mouse_x = (e.clientX || e.pageX || e.originalEvent.touches?.at(0).clientX) + $(window).scrollLeft();
|
|
225
228
|
eventState.mouse_y = (e.clientY || e.pageY || e.originalEvent.touches?.at(0).clientY) + $(window).scrollTop();
|
|
226
|
-
|
|
229
|
+
|
|
227
230
|
// This is a fix for mobile safari
|
|
228
231
|
// For some reason it does not allow a direct copy of the touches property
|
|
229
232
|
if (typeof e.originalEvent.touches !== 'undefined') {
|
|
@@ -239,9 +242,9 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
239
242
|
|
|
240
243
|
const resizing = (e) => {
|
|
241
244
|
let mouse = {}, width, height, left, top;
|
|
242
|
-
mouse.x = (e.clientX || e.pageX || e.originalEvent.touches?.at(0).clientX) + $(window).scrollLeft();
|
|
245
|
+
mouse.x = (e.clientX || e.pageX || e.originalEvent.touches?.at(0).clientX) + $(window).scrollLeft();
|
|
243
246
|
mouse.y = (e.clientY || e.pageY || e.originalEvent.touches?.at(0).clientY) + $(window).scrollTop();
|
|
244
|
-
|
|
247
|
+
|
|
245
248
|
// Position image differently depending on the corner dragged and constraints
|
|
246
249
|
if (eventState.evnt.target.id === `resizeHandleSe_${key}`) {
|
|
247
250
|
width = mouse.x - eventState.container_left;
|
|
@@ -270,7 +273,7 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
270
273
|
top = mouse.y - ((width / origSrc.width * origSrc.height) - height);
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
|
-
|
|
276
|
+
|
|
274
277
|
// Optionally maintain aspect ratio
|
|
275
278
|
if (constrain || !e.shiftKey) {
|
|
276
279
|
height = width / origSrc.width * origSrc.height;
|
|
@@ -278,8 +281,8 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
278
281
|
|
|
279
282
|
if (width > minWidth && height > minHeight) {
|
|
280
283
|
// To improve performance you might limit how often resizeImage() is called
|
|
281
|
-
resizeImage(width, height);
|
|
282
|
-
|
|
284
|
+
resizeImage(width, height);
|
|
285
|
+
|
|
283
286
|
//detecção de colisao para impedir q imagem saia do quadro
|
|
284
287
|
const wantedLeft = left;
|
|
285
288
|
const wantedTop = top;
|
|
@@ -306,9 +309,9 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
306
309
|
const resizeImage = (width, height) => {
|
|
307
310
|
resizeCanvas.width = width;
|
|
308
311
|
resizeCanvas.height = height;
|
|
309
|
-
resizeCanvas.getContext('2d').drawImage(origSrc, 0, 0, width, height);
|
|
312
|
+
resizeCanvas.getContext('2d').drawImage(origSrc, 0, 0, width, height);
|
|
310
313
|
// setUrlImagem(resizeCanvas.toDataURL('image/png'))
|
|
311
|
-
$(imageTarget).attr('src', resizeCanvas.toDataURL('image/png'));
|
|
314
|
+
$(imageTarget).attr('src', resizeCanvas.toDataURL('image/png'));
|
|
312
315
|
resized = true;
|
|
313
316
|
};
|
|
314
317
|
|
|
@@ -330,12 +333,12 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
330
333
|
let mouse = {}, touches;
|
|
331
334
|
e.preventDefault();
|
|
332
335
|
e.stopPropagation();
|
|
333
|
-
|
|
336
|
+
|
|
334
337
|
touches = e.originalEvent.touches;
|
|
335
|
-
|
|
336
|
-
mouse.x = (e.clientX || e.pageX || touches?.at(0).clientX) + $(window).scrollLeft();
|
|
338
|
+
|
|
339
|
+
mouse.x = (e.clientX || e.pageX || touches?.at(0).clientX) + $(window).scrollLeft();
|
|
337
340
|
mouse.y = (e.clientY || e.pageY || touches?.at(0).clientY) + $(window).scrollTop();
|
|
338
|
-
|
|
341
|
+
|
|
339
342
|
//detecção de colisao para impedir q imagem saia do quadro
|
|
340
343
|
const wantedLeft = mouse.x - (eventState.mouse_x - eventState.container_left);
|
|
341
344
|
const wantedTop = mouse.y - (eventState.mouse_y - eventState.container_top);
|
|
@@ -361,15 +364,15 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
361
364
|
if (eventState.touches && eventState.touches.length > 1 && touches.length > 1) {
|
|
362
365
|
let width = eventState.container_width, height = eventState.container_height;
|
|
363
366
|
let a = eventState.touches?.at(0).clientX - eventState.touches?.at(1).clientX;
|
|
364
|
-
a = a * a;
|
|
367
|
+
a = a * a;
|
|
365
368
|
let b = eventState.touches?.at(0).clientY - eventState.touches?.at(1).clientY;
|
|
366
|
-
b = b * b;
|
|
369
|
+
b = b * b;
|
|
367
370
|
let dist1 = Math.sqrt(a + b);
|
|
368
|
-
|
|
371
|
+
|
|
369
372
|
a = e.originalEvent.touches?.at(0).clientX - touches?.at(1).clientX;
|
|
370
|
-
a = a * a;
|
|
373
|
+
a = a * a;
|
|
371
374
|
b = e.originalEvent.touches?.at(0).clientY - touches?.at(1).clientY;
|
|
372
|
-
b = b * b;
|
|
375
|
+
b = b * b;
|
|
373
376
|
let dist2 = Math.sqrt(a + b);
|
|
374
377
|
|
|
375
378
|
let ratio = dist2 / dist1;
|
|
@@ -388,23 +391,23 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
388
391
|
resizeImage(width, height);
|
|
389
392
|
}
|
|
390
393
|
setTimeout(() => {
|
|
391
|
-
|
|
394
|
+
|
|
392
395
|
//Find the part of the image that is inside the crop box
|
|
393
396
|
let cropCanvas,
|
|
394
397
|
left = $(`#overlay_${key}`).offset().left - $container.offset().left,
|
|
395
398
|
top = $(`#overlay_${key}`).offset().top - $container.offset().top,
|
|
396
399
|
width = $(`#overlay_${key}`).width(),
|
|
397
400
|
height = $(`#overlay_${key}`).height();
|
|
398
|
-
|
|
401
|
+
|
|
399
402
|
cropCanvas = document.createElement('canvas');
|
|
400
403
|
cropCanvas.width = width;
|
|
401
404
|
cropCanvas.height = height;
|
|
402
|
-
|
|
403
|
-
const ctx = cropCanvas.getContext('2d');
|
|
405
|
+
|
|
406
|
+
const ctx = cropCanvas.getContext('2d');
|
|
404
407
|
ctx.filter = $(`#resizeImage_${key}`).css('filter');
|
|
405
408
|
ctx.drawImage(imageTarget, left, top, width, height, 0, 0, width, height);
|
|
406
409
|
// window.open(cropCanvas.toDataURL('image/png'));
|
|
407
|
-
|
|
410
|
+
|
|
408
411
|
onImage(cropCanvas.toDataURL('image/png'));
|
|
409
412
|
}, 0);
|
|
410
413
|
};
|
|
@@ -430,50 +433,52 @@ const ImageResize = ({ imagem, onImage, finalImageProperties = {}, ...props }) =
|
|
|
430
433
|
return onlyFilters ? filters : { filter: filters };
|
|
431
434
|
};
|
|
432
435
|
|
|
433
|
-
return
|
|
434
|
-
<
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
<Grid
|
|
439
|
-
<
|
|
440
|
-
<
|
|
441
|
-
|
|
442
|
-
<
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
<
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
<
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
<
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
436
|
+
return (
|
|
437
|
+
<Dialog {...props} maxWidth='lg' fullWidth keepMounted>
|
|
438
|
+
<DialogTitle>Ajustar Imagem</DialogTitle>
|
|
439
|
+
<DialogContent style={{ display: 'block', position: 'relative' }}>
|
|
440
|
+
|
|
441
|
+
<Grid container spacing={2}>
|
|
442
|
+
<Grid size={8}>
|
|
443
|
+
<Box sx={componentSx(finalImageProperties)}>
|
|
444
|
+
<Box id={`overlay_${key}`} sx={overlaySx(finalImageProperties)}></Box>
|
|
445
|
+
<Box id={`container_${key}`} sx={resizeContainerSx}>
|
|
446
|
+
<Box component='span' id={`resizeHandleNw_${key}`} className={clsx(`resize-handle_${key}`)} sx={{ ...resizeHandleSx, ...resizeHandlePositionSx.nw }}></Box>
|
|
447
|
+
<Box component='span' id={`resizeHandleNe_${key}`} className={clsx(`resize-handle_${key}`)} sx={{ ...resizeHandleSx, ...resizeHandlePositionSx.ne }}></Box>
|
|
448
|
+
<img ref={image} id={`resizeImage_${key}`} style={{ display: 'block', minWidth: $(`#overlay_${key}`).width(), minHeight: $(`#overlay_${key}`).height(), ...getImageStyle() }} src={urlImagem} alt='Imagem a ser Redimensionada'/>
|
|
449
|
+
<Box component='span' id={`resizeHandleSw_${key}`} className={clsx(`resize-handle_${key}`)} sx={{ ...resizeHandleSx, ...resizeHandlePositionSx.sw }}></Box>
|
|
450
|
+
<Box component='span' id={`resizeHandleSe_${key}`} className={clsx(`resize-handle_${key}`)} sx={{ ...resizeHandleSx, ...resizeHandlePositionSx.se }}></Box>
|
|
451
|
+
</Box>
|
|
452
|
+
</Box>
|
|
453
|
+
</Grid>
|
|
454
|
+
<Grid style={{ display: 'flex', alignItems: 'center' }} size={2}>
|
|
455
|
+
<Slider
|
|
456
|
+
style={{ height: 'calc(100% - 30px)' }}
|
|
457
|
+
orientation='vertical'
|
|
458
|
+
// getAriaValueText={valuetext}
|
|
459
|
+
step={selectedOption.step}
|
|
460
|
+
min={selectedOption.range.min}
|
|
461
|
+
max={selectedOption.range.max}
|
|
462
|
+
value={selectedOption.value}
|
|
463
|
+
onChange={handleSliderChange}
|
|
464
|
+
/>
|
|
465
|
+
</Grid>
|
|
466
|
+
<Grid size={2}>
|
|
467
|
+
<List>
|
|
468
|
+
{options.map((option, index) => (
|
|
469
|
+
<ListItem button onClick={() => setSelectedOptionIndex(index)} key={index} selected={index === selectedOptionIndex}>
|
|
470
|
+
<ListItemText primary={option.name}/>
|
|
471
|
+
</ListItem>
|
|
472
|
+
))}
|
|
473
|
+
</List>
|
|
474
|
+
</Grid>
|
|
470
475
|
</Grid>
|
|
471
|
-
</
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
</
|
|
476
|
-
|
|
476
|
+
</DialogContent>
|
|
477
|
+
<DialogActions>
|
|
478
|
+
<Button ref={button} id={`js-crop_${key}`} color='primary' variant='contained'>Recortar<MdCrop style={{ marginLeft: 5 }}/></Button>
|
|
479
|
+
</DialogActions>
|
|
480
|
+
</Dialog>
|
|
481
|
+
);
|
|
477
482
|
};
|
|
478
483
|
|
|
479
|
-
export default ImageResize;
|
|
484
|
+
export default ImageResize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageResizeProps } from '../ImageResize/ImageResize';
|
|
2
|
-
import { ButtonClassKey, ExtendButtonBase } from '@material
|
|
2
|
+
import { ButtonClassKey, ExtendButtonBase } from '@mui/material';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export interface ImageResizeButtonTypeMap<P = {}, D extends React.ElementType = 'button'>{
|
|
5
5
|
props: P & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageResize } from '../';
|
|
2
|
-
import { Button } from '@material
|
|
2
|
+
import { Button } from '@mui/material';
|
|
3
3
|
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
|
|
4
4
|
|
|
5
5
|
const ImageResizeButton = forwardRef(({ children, ImageResizeProps, onImage, Component = Button, ...props }, ref) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createField, getField } from '../../fieldsRedux';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
|
-
import MaskedInput from 'react-
|
|
4
|
+
import MaskedInput from '@mona-health/react-input-mask';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated
|
|
@@ -165,7 +165,7 @@ class Input extends Component {
|
|
|
165
165
|
|
|
166
166
|
return !mask
|
|
167
167
|
? (<input {...inputProps} />)
|
|
168
|
-
: (<MaskedInput mask={mask} {...inputProps} />);
|
|
168
|
+
: (<MaskedInput mask={mask.replaceAll('1', '9').replaceAll('#', '*')} {...inputProps} />);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
stateOptions = () => {
|