@m4l/components 2.0.5 → 2.0.7
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/types.d.ts +7 -4
- package/components/AccountPopover/{index.09362223.js → index.a5747746.js} +3 -3
- package/components/AppBar/{index.ad5dd74a.js → index.2d458607.js} +4 -4
- package/components/BaseModule/{index.0255d08a.js → index.3f266927.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.f0e87113.js → index.c1185f46.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.19e9426c.js → index.7f76a6ba.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.77a6fe72.js → index.8a23ec62.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.f35bee5a.js → index.185199da.js} +2 -2
- package/components/CommonActions/components/Actions/{index.a31243c7.js → index.ea4c273b.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.2dd9a083.js → index.0739f098.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.989012eb.js → index.d524f74c.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.64406a72.js → index.addc6664.js} +1 -1
- package/components/DataGrid/formatters/{index.23ae62ba.js → index.ee269cae.js} +2 -2
- package/components/DataGrid/{index.3b0b896f.js → index.1feaab04.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.862a2ef4.js → index.06306495.js} +11 -11
- package/components/DragResizeWindow/{index.2d36bbda.js → index.44fad985.js} +3 -7
- package/components/DynamicFilter/{dictionary.ad954460.js → dictionary.a55d5bc2.js} +2 -2
- package/components/DynamicFilter/{index.4747acfe.js → index.2033e755.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.345fe83a.js → dynamicFilterSlots.3ef5ec21.js} +5 -5
- package/components/DynamicFilter/store/{index.8e24684e.js → index.3cc06678.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f68c42e6.js → index.db29f2ff.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3508775b.js → index.2de720bc.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.5297577d.js → index.7a9d4d33.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.cce07177.js → index.a4269ba3.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.1fafe2e3.js → index.ebb6606c.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.b0b906a1.js → index.cd343ba0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.1db0c059.js → index.b5c31620.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.7accc2b1.js → index.4c42f140.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.8f88f9d0.js → index.3e15fc1c.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.bf41bca8.js → index.0d687448.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.a2976024.js → index.4c5bb297.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.f247b95a.js → index.6c8c52ae.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.1467729b.js → index.9cf2bc44.js} +2 -2
- package/components/FieldLabel/{index.c35e5984.js → index.972f989e.js} +3 -3
- package/components/GridLayout/{index.991206c1.js → index.2b9bc85c.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.50663f91.js → index.684c3f3c.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.c10c0af7.js → index.dc0a1ce0.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.e4ef4f10.js → index.15d0ca85.js} +1 -1
- package/components/HelperText/{index.c0fc2bfb.js → index.2f4c6655.js} +2 -2
- package/components/Icon/{index.0378f7b8.js → index.0f315ccd.js} +3 -3
- package/components/Image/{index.7df7536b.js → index.32b58ce4.js} +2 -2
- package/components/LanguagePopover/{index.12cbf486.js → index.6ac2473a.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.49e62c03.js → index.6d1605ff.js} +1 -1
- package/components/LoadingError/{index.efecda3d.js → index.c5a70390.js} +5 -5
- package/components/MFIsolationApp/{index.71823b4e.js → index.56a12cde.js} +2 -2
- package/components/MFLoader/{index.2b4b60aa.js → index.cc350d72.js} +2 -2
- package/components/ModalDialog/{index.3cf272e0.js → index.580a88dc.js} +3 -3
- package/components/NavLink/{index.34d04791.js → index.c6fd316b.js} +2 -2
- package/components/NoItemSelected/{index.6d3880da.js → index.7274cdb1.js} +1 -1
- package/components/ObjectLogs/{index.11c77d6c.js → index.1b51e5f2.js} +9 -9
- package/components/PDFViewer/{index.c119e76a.js → index.eed9494a.js} +2 -2
- package/components/Page/{index.8b261573.js → index.f6884847.js} +1 -1
- package/components/PaperForm/{index.1b7bf005.js → index.86c1f1d6.js} +2 -2
- package/components/Period/{index.d08a64dd.js → index.5757802b.js} +4 -4
- package/components/PrintingSystem/{index.64fb8f9e.js → index.47e0ce83.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.58e31c42.js → index.d58660a8.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.cfe2f5ae.js → index.8e010873.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.ec939491.js → index.13330f51.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.9d0d60c7.js → index.05da3e1d.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.1f05914c.js → index.d68b5460.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.9a488ca7.js → index.0ed11227.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.1d4ed8ed.js → index.0a0227e4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.d39efc69.js → index.18931b6e.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.63c25d75.js → index.e80cce87.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.e6e71c65.js → index.7fc92f43.js} +1 -1
- package/components/PropertyValue/{index.4584a224.js → index.ee9cf342.js} +3 -3
- package/components/Resizeable/{index.c48bfe53.js → index.0ffd46bc.js} +1 -1
- package/components/ScrollBar/{index.3168cc7d.js → index.45b8db89.js} +1 -1
- package/components/SideBar/{index.c6664730.js → index.50868466.js} +5 -5
- package/components/SplitLayout/{index.f73f5f71.js → index.c2b8dcb8.js} +1 -1
- package/components/ToastContainer/{index.404d68c0.js → index.ed566312.js} +2 -2
- package/components/animate/LoadingScreen/{index.d494c5f4.js → index.31af02f8.js} +1 -1
- package/components/animate/{index.35e70d72.js → index.160607f3.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.daf5521f.js → index.cb60f940.js} +14 -14
- package/components/areas/components/AreasViewer/{index.dab7e9c9.js → index.350ee032.js} +13 -13
- package/components/areas/contexts/AreasContext/{index.43aadacb.js → index.1a5c5df1.js} +4 -4
- package/components/areas/hooks/useAreas/{index.ed67113b.js → index.ba948f80.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.4ab283a9.js → index.cdc42f41.js} +1 -1
- package/components/commercial/SectionCommercial/{index.5e808beb.js → index.a9265d42.js} +1 -1
- package/components/commercial/TopBar/{index.d5fc459d.js → index.06c1e138.js} +5 -5
- package/components/commercial/{index.b17673f0.js → index.163293c3.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.d792c9f4.js → index.b224ae9b.js} +2 -2
- package/components/formatters/{index.e3314ffd.js → index.373a6ce1.js} +2 -2
- package/components/hook-form/HelperError/{index.d37b96f4.js → index.399e7338.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.e8d47108.js → index.0d32fed5.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.10e23560.js → index.2622450c.js} +6 -4
- package/components/hook-form/RHFCheckbox/{index.ab66cde5.js → index.3229f16c.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.8224d965.js → index.86525787.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.af136c35.js → index.572079c5.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.cdad3414.js → index.1883d9f6.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.a3e56551.js → index.9eea0df1.js} +1 -1
- package/components/hook-form/RHFTextField/{index.03fa7ae0.js → index.5b124af3.js} +4 -4
- package/components/hook-form/RHFUpload/{index.2209f3a8.js → index.cf63abf0.js} +5 -5
- package/components/maps/components/GpsTools/{index.2f9fdb32.js → index.7628172f.js} +23 -23
- package/components/maps/components/Map/{index.1130b9e0.js → index.df953487.js} +41 -34
- package/components/modal/{WindowBase.26cb9e19.js → WindowBase.cb284225.js} +3 -3
- package/components/modal/{WindowConfirm.ffee7475.js → WindowConfirm.193cc75e.js} +6 -6
- package/components/mui_extended/Accordion/{index.56b0bded.js → index.49007a43.js} +4 -4
- package/components/mui_extended/Avatar/{index.9e8c8487.js → index.a2e1ca6d.js} +1 -1
- package/components/mui_extended/Badge/{index.ef803787.js → index.188ffbb4.js} +1 -1
- package/components/mui_extended/Button/{index.67e1ea7f.js → index.ca15c36e.js} +3 -3
- package/components/mui_extended/{CheckBox.71c728f8.js → CheckBox.983e10e6.js} +2 -2
- package/components/mui_extended/IconButton/{index.4a12de37.js → index.caf17392.js} +2 -2
- package/components/mui_extended/MenuActions/{index.b19042b5.js → index.c24bd476.js} +5 -5
- package/components/mui_extended/Pager/{index.8da962a5.js → index.f27033fc.js} +4 -4
- package/components/mui_extended/Popover/{index.71389b6e.js → index.1fafd106.js} +1 -1
- package/components/mui_extended/Stack/{index.27af6301.js → index.b8c3b40b.js} +1 -1
- package/components/mui_extended/Tab/{index.0469b44f.js → index.c2dca6dd.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.96ae2da5.js → index.4b6f9c8e.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.a446e702.js → index.0513d9e6.js} +1 -1
- package/components/mui_extended/Typography/{index.978f5554.js → index.61dd3fc6.js} +1 -1
- package/components/popups/PopupsProvider/{index.776c62e7.js → index.9a23e1d0.js} +6 -1
- package/components/popups/PopupsViewer/{index.a4d6eb40.js → index.c6a0c277.js} +12 -12
- package/components/popups/PopupsViewer/slots/{index.154e4e5f.js → index.37ef2263.js} +1 -1
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.0b92fc90.js +46 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +6 -1
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +3 -4
- package/components/popups/components/PopupsViewer/constants.d.ts +0 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +3 -3
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +1 -1
- package/components/popups/components/PopupsViewer/types.d.ts +1 -1
- package/contexts/ModalContext/{index.49e5d904.js → index.50cc9ba8.js} +1 -1
- package/contexts/RHFormContext/{index.5f9c1c0e.js → index.acc30d9b.js} +1 -1
- package/hooks/useFormAddEdit/{index.000bf636.js → index.daf5d0c8.js} +2 -2
- package/hooks/useModal/{index.3c70915b.js → index.6f5c238d.js} +1 -1
- package/hooks/useTab/{index.0e62c5a7.js → index.8c6646a4.js} +1 -1
- package/index.js +129 -129
- package/package.json +1 -1
- package/styles/{index.b0676d6a.js → index.ccd8acc4.js} +7 -7
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.ff398b8d.js +0 -39
|
@@ -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.ccd8acc4.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.32b58ce4.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.61dd3fc6.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.ccd8acc4.js";
|
|
9
|
+
import { F as FieldLabel } from "../FieldLabel/index.972f989e.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.0f315ccd.js";
|
|
6
|
+
import { aE as IconButtonRoot } from "../../../styles/index.ccd8acc4.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.1fafd106.js";
|
|
6
|
+
import { aF as LabelMemuItem } from "../../../styles/index.ccd8acc4.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.0f315ccd.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.188ffbb4.js";
|
|
11
|
+
import { I as IconButton } from "../IconButton/index.caf17392.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.ccd8acc4.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.caf17392.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.61dd3fc6.js";
|
|
11
|
+
import { I as Icon } from "../../Icon/index.0f315ccd.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.ccd8acc4.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.ccd8acc4.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.ccd8acc4.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.ca15c36e.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.caf17392.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.ccd8acc4.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";
|
|
@@ -22,10 +22,15 @@ const createPopupsStore = (initProps) => {
|
|
|
22
22
|
popupsActions: {
|
|
23
23
|
init: (initialPopups) => {
|
|
24
24
|
set((state) => {
|
|
25
|
+
let maxZindex = state.baseZindex;
|
|
25
26
|
for (let index = 0; index < initialPopups.length; index++) {
|
|
26
27
|
state.hashPopups[initialPopups[index].popupId] = cloneDeep(initialPopups[index]);
|
|
27
28
|
state.popupsIds.push(initialPopups[index].popupId);
|
|
29
|
+
if (initialPopups[index].zIndex > maxZindex) {
|
|
30
|
+
maxZindex = initialPopups[index].zIndex;
|
|
31
|
+
}
|
|
28
32
|
}
|
|
33
|
+
state.currentZindex = maxZindex + 1;
|
|
29
34
|
});
|
|
30
35
|
},
|
|
31
36
|
addPopup: (popupProps, options) => {
|
|
@@ -103,7 +108,7 @@ const createPopupsStore = (initProps) => {
|
|
|
103
108
|
state.hashPopups[popupId].status = "hidden";
|
|
104
109
|
});
|
|
105
110
|
},
|
|
106
|
-
|
|
111
|
+
setPopupOnFront: (popupId) => {
|
|
107
112
|
if (!get().hashPopups[popupId]) {
|
|
108
113
|
return;
|
|
109
114
|
}
|
|
@@ -3,24 +3,21 @@ import { TransitionGroup, CSSTransition } from "react-transition-group";
|
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as usePopupsStore } from "../PopupsProvider/index.
|
|
6
|
+
import { u as usePopupsStore } from "../PopupsProvider/index.9a23e1d0.js";
|
|
7
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.
|
|
9
|
-
import { d as draggableWindowClasses } from "../../DragResizeWindow/index.
|
|
10
|
-
import { I as Icon } from "../../Icon/index.
|
|
11
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
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.0b92fc90.js";
|
|
9
|
+
import { d as draggableWindowClasses } from "../../DragResizeWindow/index.44fad985.js";
|
|
10
|
+
import { I as Icon } from "../../Icon/index.0f315ccd.js";
|
|
11
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.caf17392.js";
|
|
12
12
|
import { u as useSizeContainer } from "../../../hooks/useSizeContainer/index.3c48670c.js";
|
|
13
13
|
const Header = (props) => {
|
|
14
14
|
const { popupId } = props;
|
|
15
15
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
16
16
|
const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
|
|
17
|
-
const {
|
|
18
|
-
status,
|
|
19
|
-
subTitle,
|
|
20
|
-
zIndex
|
|
21
|
-
} = popup || {};
|
|
17
|
+
const { status, subTitle, zIndex, variant } = popup || {};
|
|
22
18
|
const ownerState = {
|
|
23
19
|
status,
|
|
20
|
+
variant,
|
|
24
21
|
subTitle,
|
|
25
22
|
zIndex
|
|
26
23
|
};
|
|
@@ -71,12 +68,13 @@ const EditionInfo = (props) => {
|
|
|
71
68
|
const Popup = forwardRef((props, ref) => {
|
|
72
69
|
const { popupId, containerElement, containerSize, style } = props;
|
|
73
70
|
const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
|
|
74
|
-
const { setPopupOnTop } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
71
|
+
const { setPopupOnFront: setPopupOnTop } = usePopupsStore((state) => state.popupsActions, shallow);
|
|
75
72
|
const {
|
|
76
73
|
status,
|
|
77
74
|
subTitle,
|
|
78
75
|
editionInfo,
|
|
79
76
|
zIndex,
|
|
77
|
+
variant = "normal",
|
|
80
78
|
draggable = true,
|
|
81
79
|
resizable = true,
|
|
82
80
|
defaultPosition,
|
|
@@ -86,11 +84,13 @@ const Popup = forwardRef((props, ref) => {
|
|
|
86
84
|
} = popup || {};
|
|
87
85
|
const ownerState = {
|
|
88
86
|
status,
|
|
87
|
+
variant,
|
|
89
88
|
subTitle,
|
|
90
89
|
editionInfo,
|
|
91
90
|
zIndex
|
|
92
91
|
};
|
|
93
92
|
const onMouseDownLocal = (e) => {
|
|
93
|
+
console.log("onMouseDownLocal", popupId);
|
|
94
94
|
setPopupOnTop(popupId);
|
|
95
95
|
if (onMouseDown) {
|
|
96
96
|
onMouseDown(e);
|
|
@@ -112,7 +112,7 @@ const Popup = forwardRef((props, ref) => {
|
|
|
112
112
|
draggable,
|
|
113
113
|
resizeable: resizable,
|
|
114
114
|
defaultPosition,
|
|
115
|
-
style,
|
|
115
|
+
style: { ...style, zIndex },
|
|
116
116
|
...others,
|
|
117
117
|
children: [
|
|
118
118
|
/* @__PURE__ */ jsx(Header, { popupId: popup.popupId }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var PopupViewerSlots = /* @__PURE__ */ ((PopupViewerSlots2) => {
|
|
2
2
|
PopupViewerSlots2["root"] = "root";
|
|
3
|
-
PopupViewerSlots2["popupDragWindowRoot"] = "
|
|
3
|
+
PopupViewerSlots2["popupDragWindowRoot"] = "popupDragWindowRoot";
|
|
4
4
|
PopupViewerSlots2["pDWHeaderContainer"] = "pDWHeaderContainer";
|
|
5
5
|
PopupViewerSlots2["pDWHeaderTitle"] = "pDWHeaderTitle";
|
|
6
6
|
PopupViewerSlots2["pDWHeaderSubTitle"] = "pDWHeaderSubTitle";
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ccd8acc4.js";
|
|
4
|
+
import { P as PopupViewerSlots } from "./index.37ef2263.js";
|
|
5
|
+
import { D as DragResizeWindow } from "../../../DragResizeWindow/index.44fad985.js";
|
|
6
|
+
const RootStyled = styled("div", { name: POPUPS_VIEWER_KEY_COMPONENT, slot: PopupViewerSlots.root })(
|
|
7
|
+
popupsViewerStyles?.root
|
|
8
|
+
);
|
|
9
|
+
const PopupDragWindowRootStyled = styled(DragResizeWindow, {
|
|
10
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
11
|
+
slot: PopupViewerSlots.popupDragWindowRoot
|
|
12
|
+
})(popupsViewerStyles?.popupDragWindowRoot);
|
|
13
|
+
const PopupHeaderContainerStyled = styled("div", {
|
|
14
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
15
|
+
slot: PopupViewerSlots.pDWHeaderContainer
|
|
16
|
+
})(popupsViewerStyles?.pDWHeaderContainer);
|
|
17
|
+
const PopupHeaderTitleStyled = styled("span", {
|
|
18
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
19
|
+
slot: PopupViewerSlots.pDWHeaderTitle
|
|
20
|
+
})(popupsViewerStyles?.pDWHeaderTitle);
|
|
21
|
+
const PopupHeaderSubTitleStyled = styled("span", {
|
|
22
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
23
|
+
slot: PopupViewerSlots.pDWHeaderSubTitle
|
|
24
|
+
})(popupsViewerStyles?.pDWHeaderSubTitle);
|
|
25
|
+
const PopupContentEditionInfoStyled = styled("div", {
|
|
26
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
27
|
+
slot: PopupViewerSlots.pDWContentEditionInfo
|
|
28
|
+
})(popupsViewerStyles?.pDWContentEditionInfo);
|
|
29
|
+
const PopupContentRootStyled = styled("div", {
|
|
30
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
31
|
+
slot: PopupViewerSlots.pDWContentRoot
|
|
32
|
+
})(popupsViewerStyles?.pDWContentRoot);
|
|
33
|
+
const PopupContentWrapperStyled = styled("div", {
|
|
34
|
+
name: POPUPS_VIEWER_KEY_COMPONENT,
|
|
35
|
+
slot: PopupViewerSlots.pDWContentWrapper
|
|
36
|
+
})(popupsViewerStyles?.pDWContentWrapper);
|
|
37
|
+
export {
|
|
38
|
+
PopupHeaderContainerStyled as P,
|
|
39
|
+
RootStyled as R,
|
|
40
|
+
PopupHeaderTitleStyled as a,
|
|
41
|
+
PopupHeaderSubTitleStyled as b,
|
|
42
|
+
PopupContentEditionInfoStyled as c,
|
|
43
|
+
PopupDragWindowRootStyled as d,
|
|
44
|
+
PopupContentRootStyled as e,
|
|
45
|
+
PopupContentWrapperStyled as f
|
|
46
|
+
};
|
|
@@ -2,6 +2,7 @@ import { GetLabelType } from '@m4l/core';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DraggableWindowProps } from '../../../../../DragResizeWindow/types';
|
|
4
4
|
import { PopupStatus } from '../../../PopupsViewer/types';
|
|
5
|
+
export declare type PopupVariantType = 'normal' | 'small' | 'large';
|
|
5
6
|
export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | 'defaultPosition'> {
|
|
6
7
|
/**
|
|
7
8
|
* "popupId" Indetificador del popupId
|
|
@@ -11,6 +12,10 @@ export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | '
|
|
|
11
12
|
* "status" Estado del popup
|
|
12
13
|
*/
|
|
13
14
|
status: PopupStatus;
|
|
15
|
+
/**
|
|
16
|
+
* "variant" Variante del popup
|
|
17
|
+
*/
|
|
18
|
+
variant?: PopupVariantType;
|
|
14
19
|
/**
|
|
15
20
|
* "iconUrl" Icono de la ventan
|
|
16
21
|
*/
|
|
@@ -128,7 +133,7 @@ export interface PopupsStateWithActions extends PopupsStore {
|
|
|
128
133
|
/**
|
|
129
134
|
* @description Pone el popup con zIndex igual a currentIndex y lo amuneta en uno.
|
|
130
135
|
*/
|
|
131
|
-
|
|
136
|
+
setPopupOnFront: (popupId: string) => void;
|
|
132
137
|
/**
|
|
133
138
|
* @description Actualiza la variable de estado "getLabel"
|
|
134
139
|
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @returns
|
|
2
|
+
* Visor de poups, cuyo funcionamineto depende de PoupsProvider.
|
|
3
|
+
* Utiliza la librería de tranciones para animar la apertura y cierre de los popups que están
|
|
4
|
+
* cargados en el store.
|
|
6
5
|
*/
|
|
7
6
|
export declare const PopupsViewer: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,9 +5,6 @@ export declare const RootStyled: import("@emotion/styled").StyledComponent<impor
|
|
|
5
5
|
export declare const PopupDragWindowRootStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../../DragResizeWindow/types").DraggableWindowProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../../../../DragResizeWindow/types").DraggableWindowProps | keyof import("react").RefAttributes<HTMLDivElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
6
6
|
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
7
7
|
}, {}, {}>;
|
|
8
|
-
export declare const PopupContentEditionInfoStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
9
|
-
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
10
|
-
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
8
|
export declare const PopupHeaderContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
12
9
|
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
13
10
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -17,6 +14,9 @@ export declare const PopupHeaderTitleStyled: import("@emotion/styled").StyledCom
|
|
|
17
14
|
export declare const PopupHeaderSubTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
18
15
|
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
19
16
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("react").ClassAttributes<HTMLSpanElement> | keyof import("react").HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
17
|
+
export declare const PopupContentEditionInfoStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
18
|
+
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
19
|
+
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
20
20
|
export declare const PopupContentRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown> & {
|
|
21
21
|
ownerState: Partial<import("../types").PopupsViewerOwnerState> & Record<string, unknown>;
|
|
22
22
|
}, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -6,7 +6,7 @@ import { PopupStoreProps, PopupsStore } from '../PopupsProvider/contexts/PopupsC
|
|
|
6
6
|
export declare type PopupViewerSlotsType = keyof typeof PopupViewerSlots;
|
|
7
7
|
export declare type PopupsViewerProps = {};
|
|
8
8
|
export declare type PopupStatus = 'init' | 'closing' | 'hidden';
|
|
9
|
-
export interface PopupOwnerState extends Pick<PopupStoreProps, 'status' | 'subTitle' | 'editionInfo' | 'zIndex'> {
|
|
9
|
+
export interface PopupOwnerState extends Pick<PopupStoreProps, 'status' | 'subTitle' | 'editionInfo' | 'zIndex' | 'variant'> {
|
|
10
10
|
/**
|
|
11
11
|
* "isMobile" cuando el navegador está corriendo en dispositivo móvil
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useState } from "react";
|
|
3
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
3
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.580a88dc.js";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({ children }) {
|
|
6
6
|
const [modalOptions, setModalOptions] = useState({
|
|
@@ -3,7 +3,7 @@ import { useEffect } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useForm, FormProvider } from "react-hook-form";
|
|
5
5
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
6
|
-
import { aP as FormProviderRoot } from "../../styles/index.
|
|
6
|
+
import { aP as FormProviderRoot } from "../../styles/index.ccd8acc4.js";
|
|
7
7
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
const componentName = "M4LRHFormProvider";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork, useFlagsStore, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { u as useModal } from "../useModal/index.
|
|
5
|
-
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.
|
|
4
|
+
import { u as useModal } from "../useModal/index.6f5c238d.js";
|
|
5
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.193cc75e.js";
|
|
6
6
|
function useFormAddEdit(props) {
|
|
7
7
|
const {
|
|
8
8
|
initialValues,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { a as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { a as ModalContext } from "../../contexts/ModalContext/index.50cc9ba8.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { d as TabContext } from "../../components/mui_extended/Tab/index.
|
|
2
|
+
import { d as TabContext } from "../../components/mui_extended/Tab/index.c2dca6dd.js";
|
|
3
3
|
const useTab = () => {
|
|
4
4
|
const context = useContext(TabContext);
|
|
5
5
|
if (context === null) {
|