@m4l/components 1.1.1 → 1.1.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/@types/export.d.ts +269 -274
- package/@types/types.d.ts +34 -25
- package/components/AccountPopover/{index.dde11a5c.js → index.84049a50.js} +3 -3
- package/components/AppBar/{index.19b11c19.js → index.22ed1a0e.js} +4 -4
- package/components/BaseModule/{index.4b725d16.js → index.0fc648c5.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.33cf608e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d1359a38.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.415de2bb.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.0893587b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.84b8fd47.js → index.2342a37e.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.ea1b882e.js → index.9d6f8597.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.cff633f6.js → index.9bcaba12.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.d2e656a0.js → index.a58a8712.js} +1 -1
- package/components/DataGrid/formatters/{index.4b65c281.js → index.6698b419.js} +2 -2
- package/components/DataGrid/{index.9aa088f6.js → index.b1cac6af.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.9416e750.js → index.a60b17d5.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/helpers/index.d.ts +3 -0
- package/components/DragResizeWindow/{index.8f5a2e3e.js → index.46048367.js} +52 -39
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.e9ad0f7c.js → dictionary.da256925.js} +2 -2
- package/components/DynamicFilter/{index.e737845f.js → index.08abfc2c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.c6d731f1.js → dynamicFilterSlots.b02bff6a.js} +6 -6
- package/components/DynamicFilter/store/{index.7a5e5f6a.js → index.1e4af8b4.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f714d323.js → index.37bcd016.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.c4131ff0.js → index.2740f285.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.9be8d255.js → index.63102514.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5caf5b34.js → index.3824d701.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.f5262ca2.js → index.57ddf344.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.f48b4af1.js → index.7beac9f0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.86de8517.js → index.e9e1af93.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.1ba1cc22.js → index.d27a8bcc.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.8d2e925e.js → index.e8f1d8e5.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.066a32f4.js → index.35014c15.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.f3f01ebc.js → index.f42e9571.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.7805f621.js → index.ada7eb0c.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d5efe247.js → index.144885cf.js} +2 -2
- package/components/FieldLabel/{index.a6235bcc.js → index.59b9b63a.js} +4 -4
- package/components/GridLayout/{index.14b734d6.js → index.56c3f4fa.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.5c8546c8.js → index.02bcb3b3.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.6646c077.js → index.65aeef5e.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.1108dd01.js → index.0aad6f90.js} +1 -1
- package/components/HelperText/{index.b1961313.js → index.5c72277a.js} +2 -2
- package/components/Icon/{index.e06c693f.js → index.13aaae3c.js} +3 -3
- package/components/Image/{index.8a3d05d3.js → index.4b51d4ba.js} +2 -2
- package/components/LanguagePopover/{index.25266514.js → index.7605fda8.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.80f8b74d.js → index.292a4af8.js} +2 -2
- package/components/LoadingError/{index.81979bb3.js → index.b129b573.js} +5 -5
- package/components/MFIsolationApp/{index.3125cd12.js → index.9f718621.js} +2 -2
- package/components/MFLoader/{index.952a3fee.js → index.5d340e32.js} +2 -2
- package/components/ModalDialog/{index.0dba90d3.js → index.ff275011.js} +4 -4
- package/components/NavLink/{index.0c844a30.js → index.506c7827.js} +2 -2
- package/components/NoItemSelected/{index.dd2cee48.js → index.1d7d5a9d.js} +1 -1
- package/components/ObjectLogs/{index.f98e884b.js → index.473ebd65.js} +9 -9
- package/components/PDFViewer/{index.1b7068e5.js → index.4e7ffac8.js} +2 -2
- package/components/Page/{index.fa45b3d5.js → index.b75c74e3.js} +1 -1
- package/components/PaperForm/{index.f1467e34.js → index.8289409f.js} +2 -2
- package/components/Period/{index.732248a8.js → index.13e4c351.js} +4 -4
- package/components/PrintingSystem/{index.7aed44a2.js → index.e1535b80.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.3e82f72e.js → index.6b36842d.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.8d4e4894.js → index.4aab9d2c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.f9343c1f.js → index.23a9dc95.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.1cdf54cf.js → index.d0e8fd15.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.32a2e08a.js → index.35ff7dab.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.715f4e49.js → index.9547c826.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.92df744d.js → index.71afe03e.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4316a07a.js → index.abbb154c.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.21b9d770.js → index.b3f2ba6c.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.03e73c9d.js → index.809aaad2.js} +1 -1
- package/components/PropertyValue/{index.f85c4118.js → index.36555931.js} +3 -3
- package/components/Resizeable/{index.305dae8c.js → index.57363836.js} +1 -1
- package/components/ScrollBar/{index.9c677335.js → index.236e2aa3.js} +1 -1
- package/components/SideBar/{index.d33d87f4.js → index.bb6c2c7b.js} +6 -6
- package/components/SplitLayout/{index.a5414b61.js → index.75953afb.js} +1 -1
- package/components/ToastContainer/{index.ce752150.js → index.bb972338.js} +3 -3
- package/components/animate/LoadingScreen/{index.881ca784.js → index.09915798.js} +1 -1
- package/components/animate/{index.d6f073fe.js → index.5c545243.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.80da2678.js → index.42d40964.js} +15 -15
- package/components/areas/components/AreasViewer/{index.7836a623.js → index.266a3815.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.c4e41ac3.js → index.c2289888.js} +4 -4
- package/components/areas/hooks/useAreas/{index.cf3f35fa.js → index.509c1703.js} +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/{index.00571293.js → index.3fd10868.js} +2 -2
- package/components/commercial/SectionCommercial/{index.c3f56cb3.js → index.bd45c64e.js} +2 -2
- package/components/commercial/TopBar/{index.56ade547.js → index.4e55cffa.js} +6 -6
- package/components/commercial/{index.788464b6.js → index.4bdbb8fe.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.6f664715.js → index.ac870381.js} +2 -2
- package/components/formatters/{index.d1846e98.js → index.53ad2f51.js} +2 -2
- package/components/hook-form/HelperError/{index.a0faefe4.js → index.9f93c627.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.dab5e2d6.js → index.b8347185.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.a61e7dda.js → index.aeb3bf66.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.71751a9d.js → index.c3b7ce0f.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.3a8f36b1.js → index.c259b8ac.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.2f4ce21c.js → index.4efe48ce.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.acf46fb2.js → index.0f912e3e.js} +4 -4
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/index.96c94958.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.06342648.js → index.828b30f5.js} +5 -5
- package/components/hook-form/RHFUpload/{index.ef58c607.js → index.b664c68b.js} +5 -5
- package/components/maps/components/GpsTools/{index.3cc627c5.js → index.e759163d.js} +23 -23
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.c50fc538.js → index.c568e68d.js} +30 -27
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.af49e2e8.js → WindowBase.58f9e2b0.js} +3 -3
- package/components/modal/{WindowConfirm.141e19a9.js → WindowConfirm.60955735.js} +6 -6
- package/components/mui_extended/Accordion/{index.e76a8701.js → index.e6971e30.js} +4 -4
- package/components/mui_extended/Avatar/{index.fc674f4b.js → index.8cc99f13.js} +1 -1
- package/components/mui_extended/Badge/{index.615959af.js → index.07fb40c0.js} +1 -1
- package/components/mui_extended/Button/{index.a391ee9f.js → index.111f830e.js} +3 -3
- package/components/mui_extended/{CheckBox.ae30825c.js → CheckBox.a8958eb8.js} +2 -2
- package/components/mui_extended/IconButton/{index.97e91dae.js → index.9425bdc5.js} +2 -2
- package/components/mui_extended/MenuActions/{index.1092605e.js → index.8b0d69b7.js} +5 -5
- package/components/mui_extended/Pager/{index.4d510ef5.js → index.cb749e65.js} +4 -4
- package/components/mui_extended/Popover/{index.82970357.js → index.5e78a637.js} +1 -1
- package/components/mui_extended/Stack/{index.e64a379b.js → index.3674daf7.js} +1 -1
- package/components/mui_extended/Tab/{index.f31eb904.js → index.a94a92c1.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4afacb33.js → index.a55def3b.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.621ff8bc.js → index.cd20de81.js} +1 -1
- package/components/mui_extended/Typography/{index.8a0f958b.js → index.45e97bdd.js} +1 -1
- package/components/popups/PopupsProvider/{index.6591c56e.js → index.776c62e7.js} +8 -34
- package/components/popups/PopupsViewer/constants.29247547.js +4 -0
- package/components/popups/PopupsViewer/icons.066abd43.js +7 -0
- package/components/popups/PopupsViewer/{index.caf23a5d.js → index.8fe4aa5d.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.aaf546e2.js +39 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +27 -47
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +1 -2
- package/components/popups/components/PopupsViewer/constants.d.ts +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +25 -0
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +10 -0
- package/components/popups/components/PopupsViewer/types.d.ts +17 -3
- package/contexts/ModalContext/{index.8281527d.js → index.a5c622d6.js} +1 -1
- package/contexts/RHFormContext/{index.939811b3.js → index.40a9547e.js} +1 -1
- package/hooks/useFormAddEdit/{index.dfb5570d.js → index.b6a3cf63.js} +2 -2
- package/hooks/useModal/{index.538e8219.js → index.3ad1e014.js} +1 -1
- package/hooks/useTab/{index.bc8d38fc.js → index.4081b113.js} +1 -1
- package/index.js +126 -122
- package/package.json +1 -1
- package/{react-draggable.1c1ba224.js → react-draggable.310e3387.js} +1 -1
- package/{react-resizable.a59c14f4.js → react-resizable.3755959b.js} +2 -2
- package/styles/{DynamicFilter.27c16026.js → DynamicFilter.557ee3a7.js} +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.7868464e.js → index.239f949e.js} +99 -9
- package/vite-env.d.ts +4 -4
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
- package/components/popups/components/PopupsViewer/classes/index.d.ts +0 -17
- package/components/popups/components/PopupsViewer/classes/types.d.ts +0 -15
- package/components/popups/components/PopupsViewer/styled.d.ts +0 -2
- /package/utils/{index.14912462.js → index.78d1638f.js} +0 -0
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { m as modalUtilityClasses } from "./index.81eb6def.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { I as Icon } from "../Icon/index.
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
5
|
+
import { I as Icon } from "../Icon/index.13aaae3c.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9425bdc5.js";
|
|
7
|
+
import { u as useModal } from "../../hooks/useModal/index.3ad1e014.js";
|
|
8
8
|
const Header = (props) => {
|
|
9
9
|
const { title, onClickCancel, urlIcon, classes } = props;
|
|
10
10
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { A as Actions } from "../CommonActions/components/Actions/index.
|
|
2
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.2342a37e.js";
|
|
3
3
|
import { Typography } from "@mui/material";
|
|
4
4
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
5
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
6
|
-
import { I as Image } from "../Image/index.
|
|
5
|
+
import { u as useModal } from "../../hooks/useModal/index.3ad1e014.js";
|
|
6
|
+
import { I as Image } from "../Image/index.4b51d4ba.js";
|
|
7
7
|
import { m as modalUtilityClasses } from "./index.81eb6def.js";
|
|
8
|
-
import { W as WindowBase } from "./WindowBase.
|
|
9
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
10
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
8
|
+
import { W as WindowBase } from "./WindowBase.58f9e2b0.js";
|
|
9
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.33cf608e.js";
|
|
10
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.0893587b.js";
|
|
11
11
|
const dictionary = {
|
|
12
12
|
MESSAGE: "common_actions.confirm_quit_msg"
|
|
13
13
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
3
|
-
import { I as IconButton } from "../IconButton/index.
|
|
3
|
+
import { I as IconButton } from "../IconButton/index.9425bdc5.js";
|
|
4
4
|
import { useEnvironment } from "@m4l/core";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { ax as AccordionRoot } from "../../../styles/index.
|
|
6
|
+
import { ax as AccordionRoot } from "../../../styles/index.239f949e.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
9
|
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
|
|
10
|
-
import { I as Icon } from "../../Icon/index.
|
|
11
|
-
import { T as Typography } from "../Typography/index.
|
|
10
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
11
|
+
import { T as Typography } from "../Typography/index.45e97bdd.js";
|
|
12
12
|
const componentName = "M4LAccordion";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
14
14
|
"root",
|
|
@@ -4,7 +4,7 @@ import { Skeleton, generateUtilityClasses, generateUtilityClass, Avatar as Avata
|
|
|
4
4
|
import { useModuleSkeleton } from "@m4l/core";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { ay as AvatarRoot } from "../../../styles/index.
|
|
7
|
+
import { ay as AvatarRoot } from "../../../styles/index.239f949e.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
const AVATAR_PREFIX = "M4LAvatar";
|
|
10
10
|
const getNameAvatarDataTestId = (KEY) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses, Badge as Badge$1 } from "@mui/material";
|
|
3
3
|
import "@mui/base";
|
|
4
|
-
import { az as BadgeRoot } from "../../../styles/index.
|
|
4
|
+
import { az as BadgeRoot } from "../../../styles/index.239f949e.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
const componentName = "M4LBadge";
|
|
7
7
|
const badgeClasses = generateUtilityClasses(componentName, [
|
|
@@ -2,14 +2,14 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, Skeleton, IconButton, Tooltip } from "@mui/material";
|
|
4
4
|
import MuiButton from "@mui/material/Button";
|
|
5
|
-
import { aA as ButtonRoot, aB as WrapperImageButton, aC as LoadingButtonRoot } from "../../../styles/index.
|
|
5
|
+
import { aA as ButtonRoot, aB as WrapperImageButton, aC as LoadingButtonRoot } from "../../../styles/index.239f949e.js";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
|
-
import { I as Image } from "../../Image/index.
|
|
9
|
+
import { I as Image } from "../../Image/index.4b51d4ba.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
12
|
-
import { T as Typography } from "../Typography/index.
|
|
12
|
+
import { T as Typography } from "../Typography/index.45e97bdd.js";
|
|
13
13
|
const componentName$2 = "M4LButton";
|
|
14
14
|
const buttonClasses = generateUtilityClasses(componentName$2, [
|
|
15
15
|
"root",
|
|
@@ -5,8 +5,8 @@ import { useResponsiveDesktop } from "@m4l/graphics";
|
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { useModuleSkeleton } from "@m4l/core";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
|
-
import { aD as CheckBoxRoot } from "../../styles/index.
|
|
9
|
-
import { F as FieldLabel } from "../FieldLabel/index.
|
|
8
|
+
import { aD as CheckBoxRoot } from "../../styles/index.239f949e.js";
|
|
9
|
+
import { F as FieldLabel } from "../FieldLabel/index.59b9b63a.js";
|
|
10
10
|
const COMPONENT_CLASS_NAME = "M4LCheckBox";
|
|
11
11
|
generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
12
12
|
"root",
|
|
@@ -2,8 +2,8 @@ import { jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
3
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
5
|
-
import { I as Icon } from "../../Icon/index.
|
|
6
|
-
import { aE as IconButtonRoot } from "../../../styles/index.
|
|
5
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
6
|
+
import { aE as IconButtonRoot } from "../../../styles/index.239f949e.js";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -2,13 +2,13 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default, { useState, useEffect, useMemo } from "react";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
|
|
5
|
-
import { P as Popover } from "../Popover/index.
|
|
6
|
-
import { aF as LabelMemuItem } from "../../../styles/index.
|
|
7
|
-
import { I as Icon } from "../../Icon/index.
|
|
5
|
+
import { P as Popover } from "../Popover/index.5e78a637.js";
|
|
6
|
+
import { aF as LabelMemuItem } from "../../../styles/index.239f949e.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import { B as Badge } from "../Badge/index.
|
|
11
|
-
import { I as IconButton } from "../IconButton/index.
|
|
10
|
+
import { B as Badge } from "../Badge/index.07fb40c0.js";
|
|
11
|
+
import { I as IconButton } from "../IconButton/index.9425bdc5.js";
|
|
12
12
|
const ICONS = {
|
|
13
13
|
MENU: "menu.svg"
|
|
14
14
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { aG as PagerRoot } from "../../../styles/index.
|
|
3
|
+
import { aG as PagerRoot } from "../../../styles/index.239f949e.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { I as IconButton } from "../IconButton/index.
|
|
6
|
+
import { I as IconButton } from "../IconButton/index.9425bdc5.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { useResponsiveContainerStore } from "@m4l/graphics";
|
|
9
9
|
import { shallow } from "zustand/shallow";
|
|
10
|
-
import { T as Typography } from "../Typography/index.
|
|
11
|
-
import { I as Icon } from "../../Icon/index.
|
|
10
|
+
import { T as Typography } from "../Typography/index.45e97bdd.js";
|
|
11
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
12
12
|
const componentName = "M4LPager";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
14
14
|
"root",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { aH as PopoverRoot } from "../../../styles/index.
|
|
2
|
+
import { aH as PopoverRoot } from "../../../styles/index.239f949e.js";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { aI as MUISTack } from "../../../styles/index.
|
|
4
|
+
import { aI as MUISTack } from "../../../styles/index.239f949e.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
const componentName = "M4LStack";
|
|
7
7
|
generateUtilityClasses(componentName, [
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass, Tab as Tab$1, Skeleton } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { aJ as MUITabs, aK as TabContentRoot, aL as TabRoot, aM as SKTTabWrapper } from "../../../styles/index.
|
|
5
|
+
import { aJ as MUITabs, aK as TabContentRoot, aL as TabRoot, aM as SKTTabWrapper } from "../../../styles/index.239f949e.js";
|
|
6
6
|
import { useModuleSkeleton } from "@m4l/core";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { B as Button, b as buttonClasses } from "../Button/index.
|
|
3
|
+
import { B as Button, b as buttonClasses } from "../Button/index.111f830e.js";
|
|
4
4
|
import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
|
|
5
5
|
const ToggleAbleButton = ({ onToggle, isToggled, ...props }) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.
|
|
3
|
+
import { I as IconButton, i as iconButtonClasses } from "../IconButton/index.9425bdc5.js";
|
|
4
4
|
import { w as withToggle } from "../../../hocs/withToggle/index.548aeace.js";
|
|
5
5
|
const ToggleAbleIconButton = ({
|
|
6
6
|
onToggle,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, Typography as Typography$1 } from "@mui/material";
|
|
4
|
-
import { aN as WarpperTypography } from "../../../styles/index.
|
|
4
|
+
import { aN as WarpperTypography } from "../../../styles/index.239f949e.js";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
@@ -2,21 +2,17 @@ import React__default, { createContext, useRef, useEffect, useContext } from "re
|
|
|
2
2
|
import { createStore, useStore } from "zustand";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { shallow } from "zustand/shallow";
|
|
5
|
-
import {
|
|
6
|
-
import { useModuleDictionary
|
|
5
|
+
import { useFirstRender } from "@m4l/graphics";
|
|
6
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import { p as popupsUtilityClasses } from "../PopupsViewer/index.caf23a5d.js";
|
|
10
9
|
import { cloneDeep } from "lodash";
|
|
11
|
-
const updateOwnerStateClasses = (state) => {
|
|
12
|
-
state.classes = popupsUtilityClasses(state.ownerState);
|
|
13
|
-
};
|
|
14
10
|
const createPopupsStore = (initProps) => {
|
|
15
11
|
const startProps = {
|
|
16
|
-
classes: popupsUtilityClasses(initProps.ownerState),
|
|
17
12
|
currentZindex: initProps.baseZindex,
|
|
18
13
|
popupsIds: [],
|
|
19
14
|
hashPopups: {},
|
|
15
|
+
getContainer: () => initProps.containerElement,
|
|
20
16
|
...initProps
|
|
21
17
|
};
|
|
22
18
|
return createStore(
|
|
@@ -32,11 +28,6 @@ const createPopupsStore = (initProps) => {
|
|
|
32
28
|
}
|
|
33
29
|
});
|
|
34
30
|
},
|
|
35
|
-
setState: (status) => {
|
|
36
|
-
set((state) => {
|
|
37
|
-
state.ownerState.status = status;
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
31
|
addPopup: (popupProps, options) => {
|
|
41
32
|
if (get().hashPopups[popupProps.popupId]) {
|
|
42
33
|
throw new Error(`Poupup with id ${popupProps.popupId} already exists`);
|
|
@@ -130,40 +121,29 @@ const createPopupsStore = (initProps) => {
|
|
|
130
121
|
set((state) => {
|
|
131
122
|
state.getLabel = newHandler;
|
|
132
123
|
});
|
|
133
|
-
},
|
|
134
|
-
setExternalState: (newExternalState) => {
|
|
135
|
-
set((state) => {
|
|
136
|
-
state.ownerState = { ...state.ownerState, ...newExternalState };
|
|
137
|
-
updateOwnerStateClasses(state);
|
|
138
|
-
});
|
|
139
124
|
}
|
|
140
125
|
}
|
|
141
126
|
})),
|
|
142
|
-
{ name: `Popups store` }
|
|
127
|
+
{ name: `Popups store: ${initProps.storeId}` }
|
|
143
128
|
)
|
|
144
129
|
);
|
|
145
130
|
};
|
|
146
131
|
const PopupsContext = createContext(null);
|
|
147
132
|
function PopupsProvider(props) {
|
|
148
|
-
const { children, initialPopups, baseZindex = 0 } = props;
|
|
133
|
+
const { children, initialPopups, baseZindex = 0, storeId, containerElement } = props;
|
|
149
134
|
const { getLabel } = useModuleDictionary();
|
|
150
|
-
const isDesktop = useResponsiveDesktop();
|
|
151
|
-
const isSkeleton = useModuleSkeleton();
|
|
152
135
|
const isFirstRender = useFirstRender([getLabel]);
|
|
153
136
|
const popupsStoreRef = useRef();
|
|
154
137
|
if (!popupsStoreRef.current) {
|
|
155
138
|
popupsStoreRef.current = createPopupsStore({
|
|
156
139
|
getLabel,
|
|
157
140
|
baseZindex,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
isMobile: !isDesktop,
|
|
161
|
-
isSkeleton
|
|
162
|
-
}
|
|
141
|
+
storeId,
|
|
142
|
+
containerElement
|
|
163
143
|
});
|
|
164
144
|
popupsStoreRef.current?.getState().popupsActions.init(initialPopups || []);
|
|
165
145
|
}
|
|
166
|
-
const { setHandlerGetLabel
|
|
146
|
+
const { setHandlerGetLabel } = useStore(
|
|
167
147
|
popupsStoreRef.current,
|
|
168
148
|
(state) => state.popupsActions,
|
|
169
149
|
shallow
|
|
@@ -173,12 +153,6 @@ function PopupsProvider(props) {
|
|
|
173
153
|
setHandlerGetLabel(getLabel);
|
|
174
154
|
}
|
|
175
155
|
}, [getLabel]);
|
|
176
|
-
useEffect(() => {
|
|
177
|
-
if (isFirstRender) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
setExternalState({ isMobile: !isDesktop, isSkeleton });
|
|
181
|
-
}, [isDesktop, isSkeleton]);
|
|
182
156
|
return /* @__PURE__ */ jsx(PopupsContext.Provider, { value: popupsStoreRef.current, children: /* @__PURE__ */ jsx(React__default.Fragment, { children }) });
|
|
183
157
|
}
|
|
184
158
|
function usePopupsStore(selector, equalityFn) {
|
|
@@ -2,59 +2,28 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { TransitionGroup, CSSTransition } from "react-transition-group";
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import clsx from "clsx";
|
|
6
5
|
import { useEnvironment } from "@m4l/core";
|
|
7
|
-
import { u as usePopupsStore } from "../PopupsProvider/index.
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { d as draggableWindowClasses
|
|
11
|
-
import { I as Icon } from "../../Icon/index.
|
|
12
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
6
|
+
import { u as usePopupsStore } from "../PopupsProvider/index.776c62e7.js";
|
|
7
|
+
import { P as POPUPS_ICONS } from "./icons.066abd43.js";
|
|
8
|
+
import { P as PopupHeaderContainerStyled, a as PopupHeaderTitleStyled, b as PopupHeaderSubTitleStyled, c as PopupContentEditionInfoStyled, d as PopupDragWindowRootStyled, e as PopupContentRootStyled, f as PopupContentWrapperStyled, R as RootStyled } from "./slots/popupsViewerSlots.aaf546e2.js";
|
|
9
|
+
import { d as draggableWindowClasses } from "../../DragResizeWindow/index.46048367.js";
|
|
10
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
11
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.9425bdc5.js";
|
|
13
12
|
import { u as useSizeContainer } from "../../../hooks/useSizeContainer/index.3c48670c.js";
|
|
14
|
-
import { styled } from "@mui/material/styles";
|
|
15
|
-
const COMPONENT_CLASS_NAME = "M4LPopupsViewer";
|
|
16
|
-
const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
17
|
-
"containerRoot",
|
|
18
|
-
"popupRoot",
|
|
19
|
-
"popupHeaderContainer",
|
|
20
|
-
"popupHeaderTitle",
|
|
21
|
-
"popupHeaderSubTitle",
|
|
22
|
-
"popupContentRoot",
|
|
23
|
-
"popupContentEditionInfo",
|
|
24
|
-
"popupContentWrapper",
|
|
25
|
-
"popupHidden",
|
|
26
|
-
"popupWithSubTitle"
|
|
27
|
-
]);
|
|
28
|
-
function getPopupsUtilityClass(slot) {
|
|
29
|
-
return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
|
|
30
|
-
}
|
|
31
|
-
const popupsUtilityClasses = (_ownerState) => {
|
|
32
|
-
const slots = {
|
|
33
|
-
containerRoot: ["containerRoot"],
|
|
34
|
-
popupsContainer: ["popupsContainer"],
|
|
35
|
-
popupRoot: ["popupRoot"],
|
|
36
|
-
popupHeaderContainer: ["popupHeaderContainer"],
|
|
37
|
-
popupHeaderTitle: ["popupHeaderTitle"],
|
|
38
|
-
popupHeaderSubTitle: ["popupHeaderSubTitle"],
|
|
39
|
-
popupContentRoot: ["popupContentRoot"],
|
|
40
|
-
popupContentEditionInfo: ["popupContentEditionInfo"],
|
|
41
|
-
popupContentWrapper: ["popupContentWrapper"],
|
|
42
|
-
popupHidden: ["popupHidden"],
|
|
43
|
-
popupWithSubTitle: ["popupWithSubTitle"]
|
|
44
|
-
};
|
|
45
|
-
const composedClasses = unstable_composeClasses(slots, getPopupsUtilityClass, {});
|
|
46
|
-
return {
|
|
47
|
-
...composedClasses
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
const POPUPS_ICONS = {
|
|
51
|
-
CLOSE: "close.svg",
|
|
52
|
-
EDITION_INFO: "edition_info.svg"
|
|
53
|
-
};
|
|
54
13
|
const Header = (props) => {
|
|
55
14
|
const { popupId } = props;
|
|
56
15
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
57
16
|
const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
|
|
17
|
+
const {
|
|
18
|
+
status,
|
|
19
|
+
subTitle,
|
|
20
|
+
zIndex
|
|
21
|
+
} = popup || {};
|
|
22
|
+
const ownerState = {
|
|
23
|
+
status,
|
|
24
|
+
subTitle,
|
|
25
|
+
zIndex
|
|
26
|
+
};
|
|
58
27
|
const { closePopup } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
59
28
|
const { iconUrl } = popup || {};
|
|
60
29
|
const onClose = () => {
|
|
@@ -64,22 +33,14 @@ const Header = (props) => {
|
|
|
64
33
|
return null;
|
|
65
34
|
}
|
|
66
35
|
return /* @__PURE__ */ jsxs(
|
|
67
|
-
|
|
36
|
+
PopupHeaderContainerStyled,
|
|
68
37
|
{
|
|
69
|
-
|
|
38
|
+
ownerState,
|
|
39
|
+
className: draggableWindowClasses.draggableHandle,
|
|
70
40
|
children: [
|
|
71
41
|
/* @__PURE__ */ jsx(Icon, { src: iconUrl, size: "small" }),
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
className: clsx(
|
|
76
|
-
popupsClasses.popupHeaderTitle,
|
|
77
|
-
popup.subTitle ? popupsClasses.popupWithSubTitle : null
|
|
78
|
-
),
|
|
79
|
-
children: popup.title
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
popup.subTitle && /* @__PURE__ */ jsx("span", { className: popupsClasses.popupHeaderSubTitle, children: popup.subTitle }),
|
|
42
|
+
/* @__PURE__ */ jsx(PopupHeaderTitleStyled, { ownerState: { ...popup }, children: popup.title }),
|
|
43
|
+
popup.subTitle && /* @__PURE__ */ jsx(PopupHeaderSubTitleStyled, { ownerState, children: popup.subTitle }),
|
|
83
44
|
/* @__PURE__ */ jsx(
|
|
84
45
|
IconButton,
|
|
85
46
|
{
|
|
@@ -96,7 +57,7 @@ const Header = (props) => {
|
|
|
96
57
|
const EditionInfo = (props) => {
|
|
97
58
|
const { editionInfo } = props;
|
|
98
59
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
99
|
-
return /* @__PURE__ */ jsxs(
|
|
60
|
+
return /* @__PURE__ */ jsxs(PopupContentEditionInfoStyled, { ownerState: { editionInfo }, children: [
|
|
100
61
|
/* @__PURE__ */ jsx(
|
|
101
62
|
Icon,
|
|
102
63
|
{
|
|
@@ -112,6 +73,10 @@ const Popup = forwardRef((props, ref) => {
|
|
|
112
73
|
const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
|
|
113
74
|
const { setPopupOnTop } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
114
75
|
const {
|
|
76
|
+
status,
|
|
77
|
+
subTitle,
|
|
78
|
+
editionInfo,
|
|
79
|
+
zIndex,
|
|
115
80
|
draggable = true,
|
|
116
81
|
resizable = true,
|
|
117
82
|
defaultPosition,
|
|
@@ -119,6 +84,12 @@ const Popup = forwardRef((props, ref) => {
|
|
|
119
84
|
onMouseDown,
|
|
120
85
|
...others
|
|
121
86
|
} = popup || {};
|
|
87
|
+
const ownerState = {
|
|
88
|
+
status,
|
|
89
|
+
subTitle,
|
|
90
|
+
editionInfo,
|
|
91
|
+
zIndex
|
|
92
|
+
};
|
|
122
93
|
const onMouseDownLocal = (e) => {
|
|
123
94
|
setPopupOnTop(popupId);
|
|
124
95
|
if (onMouseDown) {
|
|
@@ -129,13 +100,11 @@ const Popup = forwardRef((props, ref) => {
|
|
|
129
100
|
return null;
|
|
130
101
|
}
|
|
131
102
|
return /* @__PURE__ */ jsxs(
|
|
132
|
-
|
|
103
|
+
PopupDragWindowRootStyled,
|
|
133
104
|
{
|
|
105
|
+
ownerState,
|
|
134
106
|
ref,
|
|
135
|
-
|
|
136
|
-
popupsClasses.popupRoot,
|
|
137
|
-
popup.status === "hidden" && popupsClasses.popupHidden
|
|
138
|
-
),
|
|
107
|
+
hidden: popup.status === "hidden",
|
|
139
108
|
onMouseDown: onMouseDownLocal,
|
|
140
109
|
containerElement,
|
|
141
110
|
containerSize,
|
|
@@ -147,30 +116,27 @@ const Popup = forwardRef((props, ref) => {
|
|
|
147
116
|
...others,
|
|
148
117
|
children: [
|
|
149
118
|
/* @__PURE__ */ jsx(Header, { popupId: popup.popupId }),
|
|
150
|
-
/* @__PURE__ */ jsxs(
|
|
119
|
+
/* @__PURE__ */ jsxs(PopupContentRootStyled, { ownerState, children: [
|
|
151
120
|
popup.editionInfo && /* @__PURE__ */ jsx(EditionInfo, { editionInfo: popup.editionInfo }),
|
|
152
|
-
/* @__PURE__ */ jsx(
|
|
121
|
+
/* @__PURE__ */ jsx(PopupContentWrapperStyled, { ownerState, children: popup.functionComponent && popup.functionComponent({ ...popup.componentProps }) })
|
|
153
122
|
] })
|
|
154
123
|
]
|
|
155
124
|
}
|
|
156
125
|
);
|
|
157
126
|
});
|
|
158
|
-
const
|
|
159
|
-
${(props) => props.theme.components?.M4LPopupsViewer?.styleOverrides}
|
|
160
|
-
`;
|
|
161
|
-
const PopupsViewer = (props) => {
|
|
162
|
-
const { containerElement } = props;
|
|
127
|
+
const PopupsViewer = () => {
|
|
163
128
|
const popupsIds = usePopupsStore(
|
|
164
129
|
(state) => state.popupsIds.filter((pId) => state.hashPopups[pId].status !== "closing"),
|
|
165
130
|
shallow
|
|
166
131
|
);
|
|
132
|
+
const baseZindex = usePopupsStore((state) => state.baseZindex, shallow);
|
|
133
|
+
const containerElement = usePopupsStore((state) => state.getContainer, shallow)();
|
|
167
134
|
const { removePopup } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
168
135
|
const containerSize = useSizeContainer(containerElement);
|
|
169
|
-
if (!containerElement) {
|
|
136
|
+
if (!containerElement || !containerSize) {
|
|
170
137
|
return null;
|
|
171
138
|
}
|
|
172
|
-
return /* @__PURE__ */ jsx(
|
|
173
|
-
console.log(`${new Date().toLocaleString()}: Render`);
|
|
139
|
+
return /* @__PURE__ */ jsx(RootStyled, { ownerState: { baseZindex }, children: /* @__PURE__ */ jsx(TransitionGroup, { children: popupsIds.map((id) => {
|
|
174
140
|
return /* @__PURE__ */ jsx(
|
|
175
141
|
CSSTransition,
|
|
176
142
|
{
|
|
@@ -199,6 +165,5 @@ const PopupsViewer = (props) => {
|
|
|
199
165
|
}) }) });
|
|
200
166
|
};
|
|
201
167
|
export {
|
|
202
|
-
PopupsViewer as P
|
|
203
|
-
popupsUtilityClasses as p
|
|
168
|
+
PopupsViewer as P
|
|
204
169
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var PopupViewerSlots = /* @__PURE__ */ ((PopupViewerSlots2) => {
|
|
2
|
+
PopupViewerSlots2["root"] = "root";
|
|
3
|
+
PopupViewerSlots2["popupDragWindowRoot"] = "popupRoot";
|
|
4
|
+
PopupViewerSlots2["pDWHeaderContainer"] = "pDWHeaderContainer";
|
|
5
|
+
PopupViewerSlots2["pDWHeaderTitle"] = "pDWHeaderTitle";
|
|
6
|
+
PopupViewerSlots2["pDWHeaderSubTitle"] = "pDWHeaderSubTitle";
|
|
7
|
+
PopupViewerSlots2["pDWContentRoot"] = "pDWContentRoot";
|
|
8
|
+
PopupViewerSlots2["pDWContentEditionInfo"] = "pDWContentEditionInfo";
|
|
9
|
+
PopupViewerSlots2["pDWContentWrapper"] = "pDWContentWrapper";
|
|
10
|
+
return PopupViewerSlots2;
|
|
11
|
+
})(PopupViewerSlots || {});
|
|
12
|
+
export {
|
|
13
|
+
PopupViewerSlots as P
|
|
14
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { P as POPUPS_VIEWER_KEY_COMPONENT } from "../constants.29247547.js";
|
|
3
|
+
import { aO as popupsViewerStyles } from "../../../../styles/index.239f949e.js";
|
|
4
|
+
import { P as PopupViewerSlots } from "./index.154e4e5f.js";
|
|
5
|
+
import { D as DragResizeWindow } from "../../../DragResizeWindow/index.46048367.js";
|
|
6
|
+
const RootStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
7
|
+
popupsViewerStyles?.root
|
|
8
|
+
);
|
|
9
|
+
const PopupDragWindowRootStyled = styled(DragResizeWindow, { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
10
|
+
popupsViewerStyles?.popupDragWindowRoot
|
|
11
|
+
);
|
|
12
|
+
const PopupContentEditionInfoStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
13
|
+
popupsViewerStyles?.pDWContentEditionInfo
|
|
14
|
+
);
|
|
15
|
+
const PopupHeaderContainerStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
16
|
+
popupsViewerStyles?.pDWHeaderContainer
|
|
17
|
+
);
|
|
18
|
+
const PopupHeaderTitleStyled = styled("span", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
19
|
+
popupsViewerStyles?.pDWHeaderTitle
|
|
20
|
+
);
|
|
21
|
+
const PopupHeaderSubTitleStyled = styled("span", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
22
|
+
popupsViewerStyles?.pDWHeaderSubTitle
|
|
23
|
+
);
|
|
24
|
+
const PopupContentRootStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
25
|
+
popupsViewerStyles?.pDWContentRoot
|
|
26
|
+
);
|
|
27
|
+
const PopupContentWrapperStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
28
|
+
popupsViewerStyles?.pDWContentWrapper
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
PopupHeaderContainerStyled as P,
|
|
32
|
+
RootStyled as R,
|
|
33
|
+
PopupHeaderTitleStyled as a,
|
|
34
|
+
PopupHeaderSubTitleStyled as b,
|
|
35
|
+
PopupContentEditionInfoStyled as c,
|
|
36
|
+
PopupDragWindowRootStyled as d,
|
|
37
|
+
PopupContentRootStyled as e,
|
|
38
|
+
PopupContentWrapperStyled as f
|
|
39
|
+
};
|
|
@@ -13,4 +13,4 @@ export declare const createPopupsStore: (initProps: InitialPopupsStoreProps) =>
|
|
|
13
13
|
type: unknown;
|
|
14
14
|
} | undefined): void;
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type PopupsStoreWithActionsType = ReturnType<typeof createPopupsStore>;
|