@m4l/components 2.0.7 → 3.0.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/@types/export.d.ts +266 -269
- package/@types/types.d.ts +47 -37
- package/components/AccountPopover/{index.a5747746.js → index.af5aae0e.js} +3 -3
- package/components/AppBar/{index.2d458607.js → index.b8f22046.js} +4 -4
- package/components/BaseModule/{index.3f266927.js → index.f7a04fe7.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c1185f46.js → index.e67885bc.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.7f76a6ba.js → index.92988013.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.8a23ec62.js → index.f8867ae9.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.185199da.js → index.e58eb0c4.js} +2 -2
- package/components/CommonActions/components/Actions/{index.ea4c273b.js → index.f674be30.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.0739f098.js → index.89a59c52.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d524f74c.js → index.d619d1db.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.addc6664.js → index.557bc8a5.js} +1 -1
- package/components/DataGrid/formatters/{index.ee269cae.js → index.06c18753.js} +2 -2
- package/components/DataGrid/{index.1feaab04.js → index.b37d6cab.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.06306495.js → index.c3b1c1e2.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.44fad985.js → index.a4bcaab8.js} +2 -2
- package/components/DynamicFilter/{dictionary.a55d5bc2.js → dictionary.94a74eb3.js} +2 -2
- package/components/DynamicFilter/{index.2033e755.js → index.b07b567a.js} +4 -4
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/{dynamicFilterSlots.3ef5ec21.js → dynamicFilterSlots.dd5824d5.js} +6 -6
- package/components/DynamicFilter/store/{index.3cc06678.js → index.49d1b77f.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.db29f2ff.js → index.9e8fcc8c.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.2de720bc.js → index.3e52c5d7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.7a9d4d33.js → index.68d855e9.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.a4269ba3.js → index.11f588b4.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.ebb6606c.js → index.77555163.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.cd343ba0.js → index.1c8454db.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.b5c31620.js → index.cb31333a.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.4c42f140.js → index.0ae3d439.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.3e15fc1c.js → index.5a0c7b12.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.0d687448.js → index.50c175e7.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.4c5bb297.js → index.82d4ac5a.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.6c8c52ae.js → index.fa62a6c3.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.9cf2bc44.js → index.e5e439f1.js} +2 -2
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/FieldLabel/{index.972f989e.js → index.9a979def.js} +4 -4
- package/components/GridLayout/{index.2b9bc85c.js → index.dd291886.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.684c3f3c.js → index.10278655.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.dc0a1ce0.js → index.24857a52.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.15d0ca85.js → index.2f762118.js} +1 -1
- package/components/HelperText/{index.2f4c6655.js → index.6818980e.js} +2 -2
- package/components/Icon/{index.0f315ccd.js → index.c06685f4.js} +3 -3
- package/components/Image/{index.32b58ce4.js → index.ae542f70.js} +2 -2
- package/components/LanguagePopover/{index.6ac2473a.js → index.2a7e40fc.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.6d1605ff.js → index.ca78fd37.js} +2 -2
- package/components/LoadingError/{index.c5a70390.js → index.765ff885.js} +6 -6
- package/components/MFIsolationApp/constants.d.ts +1 -0
- package/components/MFIsolationApp/{index.56a12cde.js → index.677d9e93.js} +46 -44
- package/components/MFLoader/{index.cc350d72.js → index.6af7729c.js} +2 -2
- package/components/ModalDialog/{index.580a88dc.js → index.a57ee020.js} +4 -4
- package/components/NavLink/{index.c6fd316b.js → index.dd723dfd.js} +2 -2
- package/components/NoItemSelected/{index.7274cdb1.js → index.b3e365b1.js} +1 -1
- package/components/ObjectLogs/{index.1b51e5f2.js → index.54fdee14.js} +9 -9
- package/components/PDFViewer/{index.eed9494a.js → index.7932d07b.js} +2 -2
- package/components/Page/{index.f6884847.js → index.5f2963f3.js} +1 -1
- package/components/PaperForm/{index.86c1f1d6.js → index.cdb1f846.js} +2 -2
- package/components/Period/{index.5757802b.js → index.b0b2a03b.js} +4 -4
- package/components/PrintingSystem/{index.47e0ce83.js → index.800a7957.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.d58660a8.js → index.60ad80bd.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.8e010873.js → index.d4aa116e.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.13330f51.js → index.142bbf1a.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.05da3e1d.js → index.d16d2c5e.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.d68b5460.js → index.044363bf.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.0ed11227.js → index.5581a84d.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.0a0227e4.js → index.2994c128.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.18931b6e.js → index.166d7264.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.e80cce87.js → index.642ab1b7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.7fc92f43.js → index.d8a2a0af.js} +1 -1
- package/components/PropertyValue/{index.ee9cf342.js → index.d81eae0a.js} +3 -3
- package/components/Resizeable/{index.0ffd46bc.js → index.df2f3bb8.js} +1 -1
- package/components/ScrollBar/{index.45b8db89.js → index.11feff65.js} +1 -1
- package/components/SideBar/{index.50868466.js → index.990e8667.js} +6 -6
- package/components/SplitLayout/{index.c2b8dcb8.js → index.b247de95.js} +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +1 -1
- package/components/ToastContainer/constants.d.ts +3 -0
- package/components/ToastContainer/helpers/toaster.d.ts +4 -0
- package/components/ToastContainer/icons.d.ts +9 -0
- package/components/ToastContainer/index.c1657bde.js +191 -0
- package/components/ToastContainer/index.d.ts +1 -0
- package/components/ToastContainer/slots/ToastContainerEnum.d.ts +13 -0
- package/components/ToastContainer/slots/index.d.ts +2 -0
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +34 -0
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +1 -2
- package/components/ToastContainer/types.d.ts +39 -3
- package/components/animate/LoadingScreen/{index.31af02f8.js → index.36a63311.js} +1 -1
- package/components/animate/{index.160607f3.js → index.ceb7669a.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.cb60f940.js → index.b232384d.js} +16 -16
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +0 -8
- package/components/areas/components/AreasViewer/{index.350ee032.js → index.d45bfcd2.js} +19 -97
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -5
- package/components/areas/contexts/AreasContext/{index.1a5c5df1.js → index.9edd84c3.js} +5 -119
- package/components/areas/contexts/AreasContext/types.d.ts +1 -4
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +3 -2
- package/components/areas/hooks/useAreas/{index.ba948f80.js → index.5a57ab76.js} +1 -1
- package/components/areas/{icons.8266ccc8.js → icons.01fa3bcc.js} +0 -2
- package/components/areas/icons.d.ts +0 -2
- package/components/areas/index.d.ts +1 -1
- package/components/areas/types.d.ts +0 -40
- package/components/commercial/AppBarCommercial/{index.cdc42f41.js → index.b4f6147e.js} +2 -2
- package/components/commercial/SectionCommercial/{index.a9265d42.js → index.a250338c.js} +2 -2
- package/components/commercial/TopBar/{index.06c1e138.js → index.4fdd66e5.js} +6 -6
- package/components/commercial/{index.163293c3.js → index.be1af158.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.b224ae9b.js → index.91435984.js} +2 -2
- package/components/formatters/{index.373a6ce1.js → index.64017cc1.js} +2 -2
- package/components/hook-form/HelperError/{index.399e7338.js → index.360f8fb7.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.0d32fed5.js → index.089af1b8.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.2622450c.js → index.f05b6fe3.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.3229f16c.js → index.4cefbad2.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.86525787.js → index.ed380b30.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.572079c5.js → index.118ebe6d.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.1883d9f6.js → index.404ba4c6.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.9eea0df1.js → index.591f779d.js} +1 -1
- package/components/hook-form/RHFTextField/{index.5b124af3.js → index.80b98b98.js} +5 -5
- package/components/hook-form/RHFUpload/{index.cf63abf0.js → index.7b7ee732.js} +5 -5
- package/components/maps/components/GpsTools/{index.7628172f.js → index.c1198f79.js} +24 -24
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.df953487.js → index.8c947175.js} +13 -13
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.cb284225.js → WindowBase.00b9e5f1.js} +3 -3
- package/components/modal/{WindowConfirm.193cc75e.js → WindowConfirm.abf49573.js} +6 -6
- package/components/mui_extended/Accordion/{index.49007a43.js → index.26524ecd.js} +4 -4
- package/components/mui_extended/Avatar/{index.a2e1ca6d.js → index.e7bcc850.js} +1 -1
- package/components/mui_extended/Badge/{index.188ffbb4.js → index.48948839.js} +1 -1
- package/components/mui_extended/Button/{index.ca15c36e.js → index.3d14e3e9.js} +3 -3
- package/components/mui_extended/{CheckBox.983e10e6.js → CheckBox.5dc01b37.js} +2 -2
- package/components/mui_extended/IconButton/{index.caf17392.js → index.7b6c1ee3.js} +2 -2
- package/components/mui_extended/MenuActions/{index.c24bd476.js → index.11d777bb.js} +5 -5
- package/components/mui_extended/Pager/{index.f27033fc.js → index.b28a2103.js} +4 -4
- package/components/mui_extended/Popover/{index.1fafd106.js → index.a7da93f1.js} +1 -1
- package/components/mui_extended/Stack/{index.b8c3b40b.js → index.99de8138.js} +1 -1
- package/components/mui_extended/Tab/{index.c2dca6dd.js → index.5c6a6801.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4b6f9c8e.js → index.86098567.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.0513d9e6.js → index.cbfe1cad.js} +1 -1
- package/components/mui_extended/Typography/{index.61dd3fc6.js → index.8c0801e4.js} +1 -1
- package/components/popups/PopupsViewer/{index.c6a0c277.js → index.52653047.js} +4 -4
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.0b92fc90.js → popupsViewerSlots.69dd2614.js} +2 -2
- package/contexts/ModalContext/{index.50cc9ba8.js → index.799110fe.js} +1 -1
- package/contexts/RHFormContext/{index.acc30d9b.js → index.f9d41b99.js} +1 -1
- package/hooks/useFormAddEdit/{index.daf5d0c8.js → index.8947ee59.js} +2 -2
- package/hooks/useModal/{index.6f5c238d.js → index.eb857f6e.js} +1 -1
- package/hooks/useTab/{index.8c6646a4.js → index.9ad15247.js} +1 -1
- package/index.js +158 -156
- package/package.json +2 -2
- package/{react-draggable.df62ccbd.js → react-draggable.079122b0.js} +1 -1
- package/{react-resizable.c746880c.js → react-resizable.330f1499.js} +2 -2
- package/styles/{DynamicFilter.f317726e.js → DynamicFilter.0713a406.js} +1 -1
- package/styles/ToastContainer.styles.d.ts +2 -0
- package/styles/{index.ccd8acc4.js → index.db9e7ddb.js} +201 -43
- package/test/getNameDataTestId.d.ts +1 -1
- package/utils/index.d.ts +1 -1
- package/vite-env.d.ts +4 -4
- package/components/ToastContainer/classes/constants.d.ts +0 -1
- package/components/ToastContainer/classes/index.d.ts +0 -8
- package/components/ToastContainer/classes/types.d.ts +0 -9
- package/components/ToastContainer/index.ed566312.js +0 -69
- package/components/ToastContainer/styles.d.ts +0 -2
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/index.d.ts +0 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Toasties/subcomponents/Toasty/index.d.ts +0 -6
- /package/utils/{index.ebfbb70f.js → index.f77cc2ab.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { styled, alpha, Skeleton, Popover, IconButton, Stack, Tabs, Dialog, ListItemText, ListItemButton } from "@mui/material";
|
|
2
2
|
import { styled as styled$1, alpha as alpha$1 } from "@mui/material/styles";
|
|
3
3
|
import SimpleBarReact from "simplebar-react";
|
|
4
|
-
import { h as gridLayoutClasses } from "../components/GridLayout/index.
|
|
5
|
-
import { a as ResizableBox } from "../react-resizable.
|
|
6
|
-
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index.
|
|
7
|
-
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index.
|
|
8
|
-
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index.
|
|
9
|
-
import { R as RHFormProvider } from "../contexts/RHFormContext/index.
|
|
10
|
-
import { S as Stack$1 } from "../components/mui_extended/Stack/index.
|
|
11
|
-
import { I as Image } from "../components/Image/index.
|
|
4
|
+
import { h as gridLayoutClasses } from "../components/GridLayout/index.dd291886.js";
|
|
5
|
+
import { a as ResizableBox } from "../react-resizable.330f1499.js";
|
|
6
|
+
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index.b232384d.js";
|
|
7
|
+
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index.d45bfcd2.js";
|
|
8
|
+
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index.c1198f79.js";
|
|
9
|
+
import { R as RHFormProvider } from "../contexts/RHFormContext/index.f9d41b99.js";
|
|
10
|
+
import { S as Stack$1 } from "../components/mui_extended/Stack/index.99de8138.js";
|
|
11
|
+
import { I as Image } from "../components/Image/index.ae542f70.js";
|
|
12
12
|
const RootStyle$1 = styled("div", {
|
|
13
13
|
shouldForwardProp: (props) => props !== "variant"
|
|
14
14
|
})(({ theme, variant }) => ({
|
|
@@ -839,9 +839,9 @@ const WindowRoot = styled("div")`
|
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
// windowHeader
|
|
842
|
-
/*
|
|
842
|
+
/*
|
|
843
843
|
&.${areasViewerClasses.loading} .${areasViewerClasses.windowHeader} {
|
|
844
|
-
border-bottom: 2px solid red !important;
|
|
844
|
+
border-bottom: 2px solid red !important;
|
|
845
845
|
}
|
|
846
846
|
*/
|
|
847
847
|
// windowHeaderTitle
|
|
@@ -880,41 +880,202 @@ const WindowRoot = styled("div")`
|
|
|
880
880
|
padding: 16px;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
// windowToastiesContainer
|
|
884
|
-
& .${areasViewerClasses.windowToastiesContainer} {
|
|
885
|
-
padding: 4px;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
// windowToastyContainer
|
|
889
|
-
& .${areasViewerClasses.windowToastyContainer} {
|
|
890
|
-
display: flex;
|
|
891
|
-
flex-direction: column;
|
|
892
|
-
}
|
|
893
|
-
// windowToastyContainer
|
|
894
|
-
& .${areasViewerClasses.windowToastyContainer}.${areasViewerClasses.success} {
|
|
895
|
-
background-color: ${(props) => props.theme.vars.palette.success.main};
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
// windowToastyMeesageButtonsContainer
|
|
899
|
-
& .${areasViewerClasses.windowToastyMeesageButtonsContainer} {
|
|
900
|
-
display: flex;
|
|
901
|
-
}
|
|
902
883
|
& .MuiLinearProgress-root {
|
|
903
884
|
width: 100%;
|
|
904
885
|
}
|
|
905
886
|
|
|
906
|
-
// windowToastyMessage
|
|
907
|
-
& .${areasViewerClasses.windowToastyMessage} {
|
|
908
|
-
flex-grow: 1;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
// windowToastyContainer
|
|
912
|
-
& .${areasViewerClasses.windowToastyPin}.${areasViewerClasses.pinIn} {
|
|
913
|
-
border: 1px solid red;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
887
|
${(props) => props.theme.components?.M4LAreasViewerWindow?.styleOverrides}
|
|
917
888
|
`;
|
|
889
|
+
const toastStyles = {
|
|
890
|
+
root: ({ theme, ownerState }) => ({
|
|
891
|
+
"--toastify-color-light": theme.vars.palette.background.default,
|
|
892
|
+
"--toastify-color-dark": theme.vars.palette.background.default,
|
|
893
|
+
"--toastify-color-info": theme.vars.palette.info.main,
|
|
894
|
+
"--toastify-color-success": theme.vars.palette.success.main,
|
|
895
|
+
"--toastify-color-warning": theme.vars.palette.warning.main,
|
|
896
|
+
"--toastify-color-error": theme.vars.palette.error.main,
|
|
897
|
+
"--toastify-color-transparent": "rgba(255, 255, 255, 0.7)",
|
|
898
|
+
"--toastify-icon-color-info": "var(--toastify-color-info)",
|
|
899
|
+
"--toastify-icon-color-success": "var(--toastify-color-success)",
|
|
900
|
+
"--toastify-icon-color-warning": "var(--toastify-color-warning)",
|
|
901
|
+
"--toastify-icon-color-error": "var(--toastify-color-error)",
|
|
902
|
+
"--toastify-toast-width": "320px",
|
|
903
|
+
"--toastify-toast-background": "#fff",
|
|
904
|
+
"--toastify-toast-min-height": "64px",
|
|
905
|
+
"--toastify-toast-max-height": "800px",
|
|
906
|
+
"--toastify-font-family": "sans-serif",
|
|
907
|
+
"--toastify-z-index": "9999",
|
|
908
|
+
"--toastify-text-color-light": "#757575",
|
|
909
|
+
"--toastify-text-color-dark": "#fff",
|
|
910
|
+
"--toastify-text-color-info": "#fff",
|
|
911
|
+
"--toastify-text-color-success": "#fff",
|
|
912
|
+
"--toastify-text-color-warning": "#fff",
|
|
913
|
+
"--toastify-text-color-error": "#fff",
|
|
914
|
+
"--toastify-spinner-color": "#616161",
|
|
915
|
+
"--toastify-spinner-color-empty-area": "#e0e0e0",
|
|
916
|
+
"--toastify-color-progress-light": "var(--toastify-color-info)",
|
|
917
|
+
"--toastify-color-progress-dark": "var(--toastify-color-info)",
|
|
918
|
+
"--toastify-color-progress-info": "var(--toastify-color-info)",
|
|
919
|
+
"--toastify-color-progress-success": "var(--toastify-color-success)",
|
|
920
|
+
"--toastify-color-progress-warning": "var(--toastify-color-warning)",
|
|
921
|
+
"--toastify-color-progress-error": "var(--toastify-color-error)",
|
|
922
|
+
"--toastify-toast-bd-radius": "8px",
|
|
923
|
+
"--toastify-color-progress-bgo": ".2",
|
|
924
|
+
...ownerState?.fixed === false ? {
|
|
925
|
+
top: 0,
|
|
926
|
+
position: "absolute",
|
|
927
|
+
zIndex: theme.vars.zIndex.snackbar,
|
|
928
|
+
"@supports (position: sticky)": {
|
|
929
|
+
position: "sticky"
|
|
930
|
+
}
|
|
931
|
+
} : {},
|
|
932
|
+
"& .Toastify": {
|
|
933
|
+
margin: 0,
|
|
934
|
+
padding: 0,
|
|
935
|
+
height: 0
|
|
936
|
+
},
|
|
937
|
+
"& .Toastify__toast-container": {
|
|
938
|
+
display: "flex",
|
|
939
|
+
flexDirection: "column",
|
|
940
|
+
gap: "16px",
|
|
941
|
+
...ownerState?.fixed === false ? {
|
|
942
|
+
top: "4px",
|
|
943
|
+
position: "absolute"
|
|
944
|
+
} : {},
|
|
945
|
+
[theme.breakpoints.down(480)]: {
|
|
946
|
+
width: "100%",
|
|
947
|
+
minWidth: "100%",
|
|
948
|
+
padding: "0"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
".Toastify__toast-container--top-left": {},
|
|
952
|
+
".Toastify__toast-container--top-center": {},
|
|
953
|
+
".Toastify__toast-container--top-right": {},
|
|
954
|
+
".Toastify__toast-container--bottom-left": {},
|
|
955
|
+
".Toastify__toast-container--bottom-center": {},
|
|
956
|
+
".Toastify__toast-container--bottom-right": {},
|
|
957
|
+
"& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
|
|
958
|
+
opacity: 0.2
|
|
959
|
+
},
|
|
960
|
+
"& .Toastify__toast": {
|
|
961
|
+
minHeight: "min-content",
|
|
962
|
+
margin: "0",
|
|
963
|
+
padding: "0",
|
|
964
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
965
|
+
boxShadow: theme.customShadows?.z3,
|
|
966
|
+
borderRadius: "4px",
|
|
967
|
+
[theme.breakpoints.down(480)]: {
|
|
968
|
+
margin: "1%",
|
|
969
|
+
width: "98% !important"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
".Toastify__toast--rtl": {},
|
|
973
|
+
"& .Toastify__toast-body": {
|
|
974
|
+
margin: "0px",
|
|
975
|
+
padding: "0px"
|
|
976
|
+
},
|
|
977
|
+
"& .Toastify__toast-icon": {},
|
|
978
|
+
"& .Toastify__toast-theme--dark": {},
|
|
979
|
+
"& .Toastify__toast-theme--light": {},
|
|
980
|
+
"& .Toastify__toast-theme--colored.Toastify__toast--default": {},
|
|
981
|
+
"& .Toastify__toast-theme--colored.Toastify__toast--info": {},
|
|
982
|
+
"& .Toastify__toast-theme--colored.Toastify__toast--success": {},
|
|
983
|
+
"& .Toastify__toast-theme--colored.Toastify__toast--warning": {},
|
|
984
|
+
"& .Toastify__toast-theme--colored.Toastify__toast--error": {},
|
|
985
|
+
"& .Toastify__progress-bar--wrp": {
|
|
986
|
+
position: "absolute",
|
|
987
|
+
top: 0,
|
|
988
|
+
height: "2px",
|
|
989
|
+
borderTopLeftRadius: "2px",
|
|
990
|
+
borderTopRightRadius: "2px",
|
|
991
|
+
borderBottomLeftRadius: "0",
|
|
992
|
+
borderBottomRightRadius: "0",
|
|
993
|
+
overflow: "hidden"
|
|
994
|
+
},
|
|
995
|
+
"& .Toastify__progress-bar": {
|
|
996
|
+
borderTopLeftRadius: "2px",
|
|
997
|
+
borderBottomLeftRadius: "0",
|
|
998
|
+
borderBottomRightRadius: "0"
|
|
999
|
+
},
|
|
1000
|
+
"& .Toastify__progress-bar--rtl": {},
|
|
1001
|
+
"& .Toastify__progress-bar-theme--light": {},
|
|
1002
|
+
"& .Toastify__progress-bar-theme--dark": {},
|
|
1003
|
+
"& .Toastify__progress-bar--info": {},
|
|
1004
|
+
"& .Toastify__progress-bar--success": {},
|
|
1005
|
+
"& .Toastify__progress-bar--warning": {},
|
|
1006
|
+
"& .Toastify__progress-bar--error": {}
|
|
1007
|
+
}),
|
|
1008
|
+
messageRoot: {
|
|
1009
|
+
display: "flex",
|
|
1010
|
+
flexDirection: "column",
|
|
1011
|
+
width: "100%",
|
|
1012
|
+
padding: "4px"
|
|
1013
|
+
},
|
|
1014
|
+
messageHeader: {
|
|
1015
|
+
width: "100%",
|
|
1016
|
+
display: "flex",
|
|
1017
|
+
justifyContent: "space-between",
|
|
1018
|
+
alignItems: "center",
|
|
1019
|
+
height: "24px",
|
|
1020
|
+
minHeight: "24px",
|
|
1021
|
+
gap: "4px"
|
|
1022
|
+
},
|
|
1023
|
+
messageIconRoot: {},
|
|
1024
|
+
messageIcon: ({ theme, ownerState }) => ({
|
|
1025
|
+
"&.M4LIcon-root": {
|
|
1026
|
+
height: "24px",
|
|
1027
|
+
width: "24px",
|
|
1028
|
+
"& > .M4LIcon-icon": {
|
|
1029
|
+
backgroundColor: ownerState?.type === "info" ? theme.vars.palette.info.main : ownerState?.type === "success" ? theme.vars.palette.success.main : ownerState?.type === "warning" ? theme.vars.palette.warning.main : ownerState?.type === "error" ? theme.vars.palette.error.main : theme.vars.palette.info.main
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}),
|
|
1033
|
+
messageTitle: ({ theme }) => ({
|
|
1034
|
+
flex: 1,
|
|
1035
|
+
paddingLeft: "4px",
|
|
1036
|
+
...theme.colorSchemes.finalTheme.typography.bodyDens,
|
|
1037
|
+
fontWeight: theme.colorSchemes.finalTheme.typography.fontWeightMedium,
|
|
1038
|
+
color: theme.vars.palette.text.primary
|
|
1039
|
+
}),
|
|
1040
|
+
messageDescription: ({ theme }) => ({
|
|
1041
|
+
...theme.colorSchemes.finalTheme.typography.bodyDens,
|
|
1042
|
+
fontWeight: theme.colorSchemes.finalTheme.typography.fontWeightRegular,
|
|
1043
|
+
color: theme.vars.palette.text.primary,
|
|
1044
|
+
padding: "0 4px 4px 30px"
|
|
1045
|
+
}),
|
|
1046
|
+
messageCloseButton: {
|
|
1047
|
+
border: "none",
|
|
1048
|
+
backgroundColor: "transparent",
|
|
1049
|
+
margin: 0,
|
|
1050
|
+
padding: 0
|
|
1051
|
+
},
|
|
1052
|
+
messageCloseButtonIcon: ({ theme }) => ({
|
|
1053
|
+
"&.M4LIcon-root": {
|
|
1054
|
+
height: "24px",
|
|
1055
|
+
width: "24px",
|
|
1056
|
+
"& > .M4LIcon-icon": {
|
|
1057
|
+
backgroundColor: theme.vars.palette.text.primary,
|
|
1058
|
+
fontsize: "16px"
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}),
|
|
1062
|
+
messagePinButton: {
|
|
1063
|
+
border: "none",
|
|
1064
|
+
backgroundColor: "transparent",
|
|
1065
|
+
margin: 0,
|
|
1066
|
+
padding: 0
|
|
1067
|
+
},
|
|
1068
|
+
messagePinButtonIcon: ({ theme }) => ({
|
|
1069
|
+
"&.M4LIcon-root": {
|
|
1070
|
+
height: "24px",
|
|
1071
|
+
width: "24px",
|
|
1072
|
+
"& > .M4LIcon-icon": {
|
|
1073
|
+
backgroundColor: theme.vars.palette.text.primary,
|
|
1074
|
+
fontsize: "16px"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
})
|
|
1078
|
+
};
|
|
918
1079
|
styled$1("div")(({ theme }) => ({
|
|
919
1080
|
display: "flex",
|
|
920
1081
|
flexDirection: "column",
|
|
@@ -1252,9 +1413,6 @@ const SplitDetail = styled("div")(() => ({
|
|
|
1252
1413
|
top: "0px",
|
|
1253
1414
|
bottom: "0px"
|
|
1254
1415
|
}));
|
|
1255
|
-
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
1256
|
-
...theme.components?.M4LToastContainer?.styleOverrides
|
|
1257
|
-
}));
|
|
1258
1416
|
const SideBarRoot = styled$1("div")(({ theme }) => ({
|
|
1259
1417
|
...theme.components?.M4LSideBar?.styleOverrides
|
|
1260
1418
|
}));
|
|
@@ -1432,7 +1590,7 @@ export {
|
|
|
1432
1590
|
SplitLayoutRoot as a0,
|
|
1433
1591
|
SplitMaster as a1,
|
|
1434
1592
|
SplitDetail as a2,
|
|
1435
|
-
|
|
1593
|
+
toastStyles as a3,
|
|
1436
1594
|
RootStyle$1 as a4,
|
|
1437
1595
|
AnimatedScrollRoot as a5,
|
|
1438
1596
|
EditAreaHeader as a6,
|
|
@@ -4,7 +4,7 @@ export declare const getNameDataTestId: <T>(ELEMENT_PREFIX: string, ELEMENT_KEY:
|
|
|
4
4
|
* @param prefix -
|
|
5
5
|
* @param keyName
|
|
6
6
|
*/
|
|
7
|
-
export declare function getPropDataTestId(prefix: string, keyName: string): {
|
|
7
|
+
export declare function getPropDataTestId(prefix: string | undefined, keyName: string | undefined): {
|
|
8
8
|
"data-testid": string;
|
|
9
9
|
} | {
|
|
10
10
|
"data-testid"?: undefined;
|
package/utils/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { Palette, Theme } from '@mui/material/styles';
|
|
|
3
3
|
import { VariantColor } from './types';
|
|
4
4
|
export declare function isValidDate(d: Date): boolean;
|
|
5
5
|
export declare const getPaletteColor: (palette: Palette, s: string) => any;
|
|
6
|
-
export declare const getVariantColor: (variant: VariantColor | undefined) => "error" | "
|
|
6
|
+
export declare const getVariantColor: (variant: VariantColor | undefined) => "error" | "info" | "warning" | "primary";
|
|
7
7
|
export declare const getThemeVariantColor: (theme: Theme, variant: VariantColor | undefined) => string;
|
|
8
8
|
export declare function getComponentUtilityClass(componentName: string): (slot: string) => string;
|
package/vite-env.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vitest/globals" />
|
|
4
|
-
/// <reference types="vitest/importMeta" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vitest" />
|
|
3
|
+
/// <reference types="vitest/globals" />
|
|
4
|
+
/// <reference types="vitest/importMeta" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LToastContainer";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getToastClassesByState } from '.';
|
|
2
|
-
export interface ToastClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
toastMessageContainer: string;
|
|
5
|
-
toastMessageIcon: string;
|
|
6
|
-
toastMessageInfo: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type ToastClassesKey = keyof ToastClassesType;
|
|
9
|
-
export declare type Classes = ReturnType<typeof getToastClassesByState>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a3 as ToastContainerRoot } from "../../styles/index.ccd8acc4.js";
|
|
3
|
-
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
4
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
5
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { g as getComponentUtilityClass } from "../../utils/index.ebfbb70f.js";
|
|
7
|
-
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { I as Icon } from "../Icon/index.0f315ccd.js";
|
|
10
|
-
const componentName = "M4LToastContainer";
|
|
11
|
-
const toastClasses = generateUtilityClasses(
|
|
12
|
-
componentName,
|
|
13
|
-
[
|
|
14
|
-
"root",
|
|
15
|
-
"toastMessageContainer",
|
|
16
|
-
"toastMessageIcon",
|
|
17
|
-
"toastMessageInfo"
|
|
18
|
-
]
|
|
19
|
-
);
|
|
20
|
-
const getToastClassesByState = () => {
|
|
21
|
-
const slots = {
|
|
22
|
-
root: ["root"],
|
|
23
|
-
toastMessageContainer: ["toastMessageContainer"],
|
|
24
|
-
toastMessageIcon: ["toastMessageIcon"],
|
|
25
|
-
toastMessageInfo: ["toastMessageInfo"]
|
|
26
|
-
};
|
|
27
|
-
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
28
|
-
return {
|
|
29
|
-
...composedClasses
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
const ToastContainer = (props) => {
|
|
33
|
-
const { children } = props;
|
|
34
|
-
const classes = getToastClassesByState();
|
|
35
|
-
return /* @__PURE__ */ jsxs(ToastContainerRoot, { className: classes.root, children: [
|
|
36
|
-
/* @__PURE__ */ jsx(ToastContainer$1, {}),
|
|
37
|
-
children
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
40
|
-
const ToastMessage = (props) => {
|
|
41
|
-
const { messageType, children } = props;
|
|
42
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
43
|
-
const iconSuccess = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/success.svg`;
|
|
44
|
-
const iconInfo = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/info.svg`;
|
|
45
|
-
const iconWarning = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/warning.svg`;
|
|
46
|
-
const iconError = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/error.svg`;
|
|
47
|
-
const finalIcon = useMemo(() => {
|
|
48
|
-
switch (messageType) {
|
|
49
|
-
case "info":
|
|
50
|
-
return iconInfo;
|
|
51
|
-
case "success":
|
|
52
|
-
return iconSuccess;
|
|
53
|
-
case "warning":
|
|
54
|
-
return iconWarning;
|
|
55
|
-
case "error":
|
|
56
|
-
return iconError;
|
|
57
|
-
default:
|
|
58
|
-
return "";
|
|
59
|
-
}
|
|
60
|
-
}, [messageType]);
|
|
61
|
-
return /* @__PURE__ */ jsxs("div", { className: toastClasses.toastMessageContainer, children: [
|
|
62
|
-
/* @__PURE__ */ jsx("div", { className: toastClasses.toastMessageIcon, children: /* @__PURE__ */ jsx(Icon, { src: finalIcon }) }),
|
|
63
|
-
/* @__PURE__ */ jsx("div", { className: toastClasses.toastMessageInfo, children })
|
|
64
|
-
] });
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
ToastContainer as T,
|
|
68
|
-
ToastMessage as a
|
|
69
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ToastContainerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
File without changes
|