@m4l/components 1.1.1 → 2.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 +0 -5
- package/@types/types.d.ts +9 -0
- package/components/AccountPopover/{index.dde11a5c.js → index.493dbab5.js} +3 -3
- package/components/AppBar/{index.19b11c19.js → index.4b2c02da.js} +4 -4
- package/components/BaseModule/{index.4b725d16.js → index.dba0d174.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.ce196f96.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d63f6a23.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.0daa98b8.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.1c40d33b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.84b8fd47.js → index.434f4824.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.ea1b882e.js → index.0a3660c0.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.cff633f6.js → index.4b1df4ab.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.d2e656a0.js → index.37f4f359.js} +1 -1
- package/components/DataGrid/formatters/{index.4b65c281.js → index.91129d5e.js} +2 -2
- package/components/DataGrid/{index.9aa088f6.js → index.d538cef8.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.9416e750.js → index.8d2e96e7.js} +11 -11
- 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.17e7059d.js} +50 -37
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.e9ad0f7c.js → dictionary.f471309f.js} +2 -2
- package/components/DynamicFilter/{index.e737845f.js → index.a7e772f7.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.c6d731f1.js → dynamicFilterSlots.1e2dc145.js} +5 -5
- package/components/DynamicFilter/store/{index.7a5e5f6a.js → index.3733c18e.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f714d323.js → index.5b952ba7.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.c4131ff0.js → index.e38ed08e.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.9be8d255.js → index.bbc1b1c0.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5caf5b34.js → index.b0a2c96e.js} +4 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.f5262ca2.js → index.2036b257.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.f48b4af1.js → index.d7559fb2.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.86de8517.js → index.d628de04.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.1ba1cc22.js → index.804bb474.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.8d2e925e.js → index.de33ba0a.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.066a32f4.js → index.c8c90968.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.f3f01ebc.js → index.1b95c167.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.7805f621.js → index.fd8a2421.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d5efe247.js → index.9f07285e.js} +2 -2
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/FieldLabel/{index.a6235bcc.js → index.44f3e099.js} +3 -3
- package/components/GridLayout/{index.14b734d6.js → index.a9f419d8.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.5c8546c8.js → index.c9f8165b.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.6646c077.js → index.ad80dae3.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.1108dd01.js → index.6ebe8790.js} +1 -1
- package/components/HelperText/{index.b1961313.js → index.e9eddfe4.js} +2 -2
- package/components/Icon/{index.e06c693f.js → index.2b591dd6.js} +3 -3
- package/components/Image/{index.8a3d05d3.js → index.fb9e71ba.js} +2 -2
- package/components/LanguagePopover/{index.25266514.js → index.f495b317.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.80f8b74d.js → index.8a0b3615.js} +1 -1
- package/components/LoadingError/{index.81979bb3.js → index.2675dde0.js} +5 -5
- package/components/MFIsolationApp/{index.3125cd12.js → index.359ce9ec.js} +2 -2
- package/components/MFLoader/{index.952a3fee.js → index.49a6bd2c.js} +2 -2
- package/components/ModalDialog/{index.0dba90d3.js → index.3571068b.js} +3 -3
- package/components/NavLink/{index.0c844a30.js → index.82f5f2f4.js} +2 -2
- package/components/NoItemSelected/{index.dd2cee48.js → index.437fb106.js} +1 -1
- package/components/ObjectLogs/{index.f98e884b.js → index.5d260f34.js} +9 -9
- package/components/PDFViewer/{index.1b7068e5.js → index.9f1d12c4.js} +2 -2
- package/components/Page/{index.fa45b3d5.js → index.4e1e1b9b.js} +1 -1
- package/components/PaperForm/{index.f1467e34.js → index.d6293e64.js} +2 -2
- package/components/Period/{index.732248a8.js → index.f0095a0a.js} +4 -4
- package/components/PrintingSystem/{index.7aed44a2.js → index.88fbf9ec.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.3e82f72e.js → index.79cb87c7.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.8d4e4894.js → index.a5d910d6.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.f9343c1f.js → index.350c25de.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.1cdf54cf.js → index.8c2f7536.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.32a2e08a.js → index.b02b56db.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.715f4e49.js → index.462d6322.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.92df744d.js → index.a5e25147.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4316a07a.js → index.430bd242.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.21b9d770.js → index.d76d27d3.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.03e73c9d.js → index.2dcd8991.js} +1 -1
- package/components/PropertyValue/{index.f85c4118.js → index.5d847b88.js} +3 -3
- package/components/Resizeable/{index.305dae8c.js → index.f22bccb6.js} +1 -1
- package/components/ScrollBar/{index.9c677335.js → index.3f1ca3da.js} +1 -1
- package/components/SideBar/{index.d33d87f4.js → index.f15b9904.js} +5 -5
- package/components/SplitLayout/{index.a5414b61.js → index.4b247e0c.js} +1 -1
- package/components/ToastContainer/{index.ce752150.js → index.dec47e74.js} +2 -2
- package/components/animate/LoadingScreen/{index.881ca784.js → index.db36f970.js} +1 -1
- package/components/animate/{index.d6f073fe.js → index.14aa2d3c.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.80da2678.js → index.55c40f0c.js} +14 -14
- package/components/areas/components/AreasViewer/{index.7836a623.js → index.8a568629.js} +13 -13
- package/components/areas/contexts/AreasContext/{index.c4e41ac3.js → index.c677ccfa.js} +4 -4
- package/components/areas/hooks/useAreas/{index.cf3f35fa.js → index.2d10f64c.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.00571293.js → index.85de55bb.js} +1 -1
- package/components/commercial/SectionCommercial/{index.c3f56cb3.js → index.47c0cb0c.js} +1 -1
- package/components/commercial/TopBar/{index.56ade547.js → index.ec7a6cc6.js} +5 -5
- package/components/commercial/{index.788464b6.js → index.90e72726.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.6f664715.js → index.5243a181.js} +2 -2
- package/components/formatters/{index.d1846e98.js → index.1b738709.js} +2 -2
- package/components/hook-form/HelperError/{index.a0faefe4.js → index.c6f8f840.js} +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/{index.dab5e2d6.js → index.c8bcfed8.js} +302 -70
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +17 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.a61e7dda.js → index.2b2ff592.js} +102 -5
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +3 -0
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/types.d.ts +6 -3
- package/components/hook-form/RHFCheckbox/{index.71751a9d.js → index.06c0b776.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.3a8f36b1.js → index.f606dce6.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.2f4ce21c.js → index.fb4867fa.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.acf46fb2.js → index.75e07583.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.a0a28a48.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.06342648.js → index.257c6486.js} +4 -4
- package/components/hook-form/RHFUpload/{index.ef58c607.js → index.a6954d0d.js} +5 -5
- package/components/maps/components/GpsTools/{index.3cc627c5.js → index.30fe41d1.js} +28 -25
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/{index.c50fc538.js → index.14f082d4.js} +30 -26
- package/components/modal/{WindowBase.af49e2e8.js → WindowBase.0dc3b3ea.js} +3 -3
- package/components/modal/{WindowConfirm.141e19a9.js → WindowConfirm.b8a431dd.js} +6 -6
- package/components/mui_extended/Accordion/{index.e76a8701.js → index.bb0cd2ab.js} +4 -4
- package/components/mui_extended/Avatar/{index.fc674f4b.js → index.bcf4d669.js} +1 -1
- package/components/mui_extended/Badge/{index.615959af.js → index.89ca5b23.js} +1 -1
- package/components/mui_extended/Button/{index.a391ee9f.js → index.24b9496b.js} +3 -3
- package/components/mui_extended/{CheckBox.ae30825c.js → CheckBox.4d930bed.js} +2 -2
- package/components/mui_extended/IconButton/{index.97e91dae.js → index.f5dcf537.js} +2 -2
- package/components/mui_extended/MenuActions/{index.1092605e.js → index.540d82fd.js} +5 -5
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Pager/{index.4d510ef5.js → index.f3a6c94b.js} +4 -4
- package/components/mui_extended/Popover/{index.82970357.js → index.6d8fe229.js} +1 -1
- package/components/mui_extended/Stack/{index.e64a379b.js → index.9d6ed8c2.js} +1 -1
- package/components/mui_extended/Tab/{index.f31eb904.js → index.0941bb3a.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4afacb33.js → index.d45c7a60.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.621ff8bc.js → index.c51670d1.js} +1 -1
- package/components/mui_extended/Typography/{index.8a0f958b.js → index.dbc44e77.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.6a175b73.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.be9219c7.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.26017754.js} +1 -1
- package/contexts/RHFormContext/{index.939811b3.js → index.54d30cb2.js} +1 -1
- package/hooks/useFormAddEdit/{index.dfb5570d.js → index.bd4ae2a5.js} +2 -2
- package/hooks/useModal/{index.538e8219.js → index.d3c18b29.js} +1 -1
- package/hooks/useTab/{index.bc8d38fc.js → index.da9b5a24.js} +1 -1
- package/index.js +123 -119
- package/package.json +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.7868464e.js → index.d972f170.js} +101 -11
- 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
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { ImageProps, RHFAutocompleteBaseProps, RHFAutocompleteTypeTextProps } from '../RHFAutocomplete/types';
|
|
2
|
+
export interface RHFAutocompleteAsyncBaseProps {
|
|
3
3
|
endPoint: string;
|
|
4
4
|
timeout?: number;
|
|
5
5
|
parms?: Record<string, any>;
|
|
6
6
|
resultField?: string;
|
|
7
7
|
isRemote?: boolean;
|
|
8
8
|
onChangeFilterParms?: (newValue: string) => Record<string, any>;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
export declare type RHFAutocompleteAsyncProps<T> = (Omit<RHFAutocompleteBaseProps<T>, 'options' | 'onChangeSearchInput'> & ImageProps<T> & RHFAutocompleteAsyncBaseProps) | (Omit<RHFAutocompleteBaseProps<T>, 'options' | 'onChangeSearchInput'> & RHFAutocompleteTypeTextProps & RHFAutocompleteAsyncBaseProps);
|
|
11
|
+
export declare type ComponentImageProps<T> = RHFAutocompleteAsyncBaseProps & Omit<RHFAutocompleteBaseProps<T>, 'options' | 'onChangeSearchInput'> & ImageProps<T>;
|
|
12
|
+
export declare type ComponentTextProps<T> = RHFAutocompleteAsyncBaseProps & Omit<RHFAutocompleteBaseProps<T>, 'options' | 'onChangeSearchInput'> & RHFAutocompleteTypeTextProps;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { aj as RHFCheckboxRoot, ak as ContainerCheckTypography } from "../../../styles/index.
|
|
3
|
+
import { aj as RHFCheckboxRoot, ak as ContainerCheckTypography } from "../../../styles/index.d972f170.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
6
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
9
9
|
import { useModuleSkeleton } from "@m4l/core";
|
|
10
10
|
import { useFormFocus } from "../../../index.js";
|
|
11
|
-
import { C as CheckBox } from "../../mui_extended/CheckBox.
|
|
11
|
+
import { C as CheckBox } from "../../mui_extended/CheckBox.4d930bed.js";
|
|
12
12
|
generateUtilityClasses("M4LRHFCheckbox", [
|
|
13
13
|
"root",
|
|
14
14
|
"checkTypography",
|
|
@@ -3,17 +3,17 @@ import { useState } from "react";
|
|
|
3
3
|
import { useFormContext, useWatch, Controller } from "react-hook-form";
|
|
4
4
|
import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { SketchPicker } from "react-color";
|
|
6
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
6
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
7
7
|
import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { al as RHFColorPickerRoot } from "../../../styles/index.
|
|
9
|
+
import { al as RHFColorPickerRoot } from "../../../styles/index.d972f170.js";
|
|
10
10
|
import { useTheme } from "@mui/material/styles";
|
|
11
11
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
12
12
|
import { useFormFocus } from "../../../index.js";
|
|
13
|
-
import { F as FieldLabel } from "../../FieldLabel/index.
|
|
14
|
-
import { P as Popover } from "../../mui_extended/Popover/index.
|
|
15
|
-
import { I as Icon } from "../../Icon/index.
|
|
16
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
13
|
+
import { F as FieldLabel } from "../../FieldLabel/index.44f3e099.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.6d8fe229.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index.24b9496b.js";
|
|
17
17
|
const componentName = "M4LRHFColorPicker";
|
|
18
18
|
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
19
19
|
"root",
|
|
@@ -7,12 +7,12 @@ import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { am as RHFDateTimeRoot } from "../../../styles/index.
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
10
|
+
import { am as RHFDateTimeRoot } from "../../../styles/index.d972f170.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
12
12
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
13
13
|
import { useFormFocus } from "../../../index.js";
|
|
14
|
-
import { F as FieldLabel } from "../../FieldLabel/index.
|
|
15
|
-
import { I as Icon } from "../../Icon/index.
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index.44f3e099.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.js";
|
|
16
16
|
const SkeletonRHFDateTime = (props) => {
|
|
17
17
|
const { skeletonWidth, skeletonHeight, className, label } = props;
|
|
18
18
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { an as RHFPeriodRoot } from "../../../styles/index.
|
|
2
|
+
import { an as RHFPeriodRoot } from "../../../styles/index.d972f170.js";
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
4
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { useFormFocus } from "../../../index.js";
|
|
9
|
-
import { F as FieldLabel } from "../../FieldLabel/index.
|
|
10
|
-
import { P as Period } from "../../Period/index.
|
|
9
|
+
import { F as FieldLabel } from "../../FieldLabel/index.44f3e099.js";
|
|
10
|
+
import { P as Period } from "../../Period/index.f0095a0a.js";
|
|
11
11
|
const componentName = "M4LRHFPeriod";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
"root",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RadioGroupProps, RadioProps } from '@mui/material';
|
|
2
2
|
import { RHFRadioGroupProps } from './types';
|
|
3
|
-
export declare function RHFRadioGroup<TOption extends RadioProps>({ name, options, getOptionLabel, getOptionValue, ...other }: RHFRadioGroupProps<TOption> & RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function RHFRadioGroup<TOption extends RadioProps>({ name, options, getOptionLabel, getOptionValue, getOptionIconUrl, renderOptionLabel, ControlLabel, ...other }: RHFRadioGroupProps<TOption> & RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import { RadioGroup, FormControlLabel, FormHelperText, Radio } from "@mui/material";
|
|
4
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.js";
|
|
5
|
+
function OptionIconLabelFormatter(option, getOptionLabel, getOptionIconUrl) {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx(
|
|
8
|
+
Icon,
|
|
9
|
+
{
|
|
10
|
+
src: `${getOptionIconUrl(option)}`
|
|
11
|
+
}
|
|
12
|
+
),
|
|
13
|
+
/* @__PURE__ */ jsx("span", { children: getOptionLabel(option) })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
function RHFRadioGroup({
|
|
17
|
+
name,
|
|
18
|
+
options,
|
|
19
|
+
getOptionLabel,
|
|
20
|
+
getOptionValue,
|
|
21
|
+
getOptionIconUrl,
|
|
22
|
+
renderOptionLabel = OptionIconLabelFormatter,
|
|
23
|
+
ControlLabel = Radio,
|
|
24
|
+
...other
|
|
25
|
+
}) {
|
|
26
|
+
const { control } = useFormContext();
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
Controller,
|
|
29
|
+
{
|
|
30
|
+
name,
|
|
31
|
+
control,
|
|
32
|
+
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsxs("div", { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(RadioGroup, { ...field, row: true, ...other, children: options.map((option) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
FormControlLabel,
|
|
36
|
+
{
|
|
37
|
+
defaultValue: field.value,
|
|
38
|
+
value: getOptionValue(option),
|
|
39
|
+
control: /* @__PURE__ */ jsx(ControlLabel, { ...option }),
|
|
40
|
+
label: renderOptionLabel(option, getOptionLabel, getOptionIconUrl)
|
|
41
|
+
},
|
|
42
|
+
getOptionValue(option)
|
|
43
|
+
);
|
|
44
|
+
}) }),
|
|
45
|
+
!!error && /* @__PURE__ */ jsx(FormHelperText, { error: true, sx: { px: 2 }, children: error.message })
|
|
46
|
+
] })
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
RHFRadioGroup as R
|
|
52
|
+
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { RadioProps } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare type GetOptionStringType<T> = (option: T) => string;
|
|
4
|
+
export declare type RenderOptionLabelType<T> = (option: T, getOptionLabel: GetOptionStringType<T>, getOptionIconUrl: GetOptionStringType<T>) => ReactNode;
|
|
5
|
+
export interface RHFRadioGroupProps<T extends RadioProps> {
|
|
3
6
|
name: string;
|
|
4
7
|
defaultValue?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
ControlLabel?: (props: RadioProps) => React.ReactElement<any, any>;
|
|
9
|
+
options: T[];
|
|
10
|
+
getOptionLabel: GetOptionStringType<T>;
|
|
11
|
+
getOptionValue: GetOptionStringType<T>;
|
|
12
|
+
getOptionIconUrl: GetOptionStringType<T>;
|
|
13
|
+
renderOptionLabel: RenderOptionLabelType<T>;
|
|
8
14
|
}
|
|
@@ -2,16 +2,16 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { forwardRef, useState, useEffect } from "react";
|
|
5
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
5
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.f5dcf537.js";
|
|
6
6
|
import { useFormContext, Controller } from "react-hook-form";
|
|
7
|
-
import { ao as SkeletonTextFieldRoot, ap as WrapperSkeletonRHFTextField, aq as RHFTextFieldRoot, ar as RHFTextFieldPasswordRoot } from "../../../styles/index.
|
|
7
|
+
import { ao as SkeletonTextFieldRoot, ap as WrapperSkeletonRHFTextField, aq as RHFTextFieldRoot, ar as RHFTextFieldPasswordRoot } from "../../../styles/index.d972f170.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
10
|
import { g as getComponentUtilityClass } from "../../../utils/index.14912462.js";
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
13
|
import { useFormFocus } from "../../../index.js";
|
|
14
|
-
import { F as FieldLabel } from "../../FieldLabel/index.
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index.44f3e099.js";
|
|
15
15
|
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
16
16
|
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
17
17
|
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|
|
@@ -3,15 +3,15 @@ import { useCallback } from "react";
|
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import isString from "lodash/isString";
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
|
-
import { I as Image } from "../../Image/index.
|
|
6
|
+
import { I as Image } from "../../Image/index.fb9e71ba.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
|
-
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.
|
|
8
|
+
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.d972f170.js";
|
|
9
9
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
13
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
14
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.dbc44e77.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.24b9496b.js";
|
|
14
|
+
import { H as HelperText } from "../../HelperText/index.e9eddfe4.js";
|
|
15
15
|
const ICON_PREFIX = "M4LRHFUploadImage";
|
|
16
16
|
const getNameRHFUploadImageDataTestId = (KEY) => {
|
|
17
17
|
return `${ICON_PREFIX}-${KEY}`;
|
|
@@ -5,42 +5,42 @@ import { shallow } from "zustand/shallow";
|
|
|
5
5
|
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
6
6
|
import "@geoman-io/leaflet-geoman-free";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index.
|
|
9
|
-
import { D as DynamicFilter } from "../../../DynamicFilter/index.
|
|
10
|
-
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.
|
|
8
|
+
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index.d972f170.js";
|
|
9
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index.a7e772f7.js";
|
|
10
|
+
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.91129d5e.js";
|
|
11
11
|
import { C as ColumnDateFormatter } from "../../../DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js";
|
|
12
12
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
13
13
|
import { useFormContext, useWatch, useFormState } from "react-hook-form";
|
|
14
|
-
import { H as HelperError } from "../../../hook-form/HelperError/index.
|
|
15
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
16
|
-
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.
|
|
14
|
+
import { H as HelperError } from "../../../hook-form/HelperError/index.c6f8f840.js";
|
|
15
|
+
import { u as useModal } from "../../../../hooks/useModal/index.d3c18b29.js";
|
|
16
|
+
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.776c62e7.js";
|
|
17
17
|
import { createStore, useStore } from "zustand";
|
|
18
18
|
import { devtools } from "zustand/middleware";
|
|
19
19
|
import { immer } from "zustand/middleware/immer";
|
|
20
20
|
import { enableMapSet } from "immer";
|
|
21
|
-
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.
|
|
22
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
23
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
24
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
21
|
+
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.0daa98b8.js";
|
|
22
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.b8a431dd.js";
|
|
23
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.434f4824.js";
|
|
24
|
+
import { B as Button } from "../../../mui_extended/Button/index.24b9496b.js";
|
|
25
25
|
import { useMap } from "react-leaflet";
|
|
26
26
|
import * as L from "leaflet";
|
|
27
27
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
28
|
-
import { u as useTab } from "../../../../hooks/useTab/index.
|
|
28
|
+
import { u as useTab } from "../../../../hooks/useTab/index.da9b5a24.js";
|
|
29
29
|
import { generateUtilityClasses } from "@mui/material";
|
|
30
30
|
import "@mui/base";
|
|
31
|
-
import { P as PaperForm } from "../../../PaperForm/index.
|
|
32
|
-
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.
|
|
33
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
34
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
35
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
36
|
-
import { P as PropertyValue } from "../../../PropertyValue/index.
|
|
37
|
-
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.
|
|
38
|
-
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.
|
|
39
|
-
import { I as Icon } from "../../../Icon/index.
|
|
31
|
+
import { P as PaperForm } from "../../../PaperForm/index.d6293e64.js";
|
|
32
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.c8bcfed8.js";
|
|
33
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.257c6486.js";
|
|
34
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.9d6ed8c2.js";
|
|
35
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.f5dcf537.js";
|
|
36
|
+
import { P as PropertyValue } from "../../../PropertyValue/index.5d847b88.js";
|
|
37
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.f606dce6.js";
|
|
38
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.0941bb3a.js";
|
|
39
|
+
import { I as Icon } from "../../../Icon/index.2b591dd6.js";
|
|
40
40
|
import * as Yup from "yup";
|
|
41
|
-
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.
|
|
42
|
-
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.
|
|
43
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
41
|
+
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.bd4ae2a5.js";
|
|
42
|
+
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.14f082d4.js";
|
|
43
|
+
import { D as DataGrid } from "../../../DataGrid/index.d538cef8.js";
|
|
44
44
|
const COMPONENT_CLASS_NAME = "M4LMapGpsTools";
|
|
45
45
|
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
46
46
|
const STYLE_OPACITIES = [
|
|
@@ -715,14 +715,13 @@ function GeneralData() {
|
|
|
715
715
|
/* @__PURE__ */ jsx(
|
|
716
716
|
RHFAutocomplete,
|
|
717
717
|
{
|
|
718
|
+
type: "image",
|
|
718
719
|
name: "geofenceType",
|
|
719
720
|
autoComplete: "off",
|
|
720
721
|
options: geofencesTypes,
|
|
721
722
|
getOptionLabel: (option) => option.name,
|
|
722
723
|
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
723
724
|
getOptionUrlImage: (option) => option.url,
|
|
724
|
-
imageHeight: "12px",
|
|
725
|
-
imageWidth: "12px",
|
|
726
725
|
label: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_TYPE)
|
|
727
726
|
}
|
|
728
727
|
),
|
|
@@ -866,6 +865,7 @@ function FillData() {
|
|
|
866
865
|
value: /* @__PURE__ */ jsx(
|
|
867
866
|
RHFAutocomplete,
|
|
868
867
|
{
|
|
868
|
+
type: "text",
|
|
869
869
|
name: "properties.fillOpacity",
|
|
870
870
|
autoComplete: "off",
|
|
871
871
|
options: STYLE_OPACITIES,
|
|
@@ -902,6 +902,7 @@ function StrokeData() {
|
|
|
902
902
|
value: /* @__PURE__ */ jsx(
|
|
903
903
|
RHFAutocomplete,
|
|
904
904
|
{
|
|
905
|
+
type: "text",
|
|
905
906
|
name: "properties.strokeOpacity",
|
|
906
907
|
autoComplete: "off",
|
|
907
908
|
options: STYLE_OPACITIES,
|
|
@@ -921,6 +922,7 @@ function StrokeData() {
|
|
|
921
922
|
value: /* @__PURE__ */ jsx(
|
|
922
923
|
RHFAutocomplete,
|
|
923
924
|
{
|
|
925
|
+
type: "text",
|
|
924
926
|
name: "properties.strokeWeight",
|
|
925
927
|
autoComplete: "off",
|
|
926
928
|
options: STYLE_WHEIGHTS,
|
|
@@ -940,6 +942,7 @@ function StrokeData() {
|
|
|
940
942
|
value: /* @__PURE__ */ jsx(
|
|
941
943
|
RHFAutocomplete,
|
|
942
944
|
{
|
|
945
|
+
type: "text",
|
|
943
946
|
name: "properties.strokeDashArray",
|
|
944
947
|
autoComplete: "off",
|
|
945
948
|
options: STYLE_PATTERNS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ControlProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* @description crea un componente react dentro de un control de leaflet, utilizando una tecnica e
|
|
4
|
+
* @description crea un componente react dentro de un control de leaflet, utilizando una tecnica e portal diferente a createPortal
|
|
5
5
|
* Dependiendo de la posicion del control, este se agrega en la parte correspondiente del mapa, por defecto es topright
|
|
6
6
|
*
|
|
7
7
|
* @param props
|
|
@@ -9,24 +9,24 @@ import { createPortal } from "react-dom";
|
|
|
9
9
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment, useModulePrivileges } from "@m4l/core";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
12
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
13
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
12
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.434f4824.js";
|
|
13
|
+
import { B as Button } from "../../../mui_extended/Button/index.24b9496b.js";
|
|
14
14
|
import * as Yup from "yup";
|
|
15
15
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
16
|
-
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.
|
|
17
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
18
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
19
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
20
|
-
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.
|
|
21
|
-
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.
|
|
22
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
16
|
+
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.2b2ff592.js";
|
|
17
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.9d6ed8c2.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.54d30cb2.js";
|
|
19
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.f5dcf537.js";
|
|
20
|
+
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.776c62e7.js";
|
|
21
|
+
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.c51670d1.js";
|
|
22
|
+
import { D as DataGrid } from "../../../DataGrid/index.d538cef8.js";
|
|
23
23
|
import { generateUtilityClasses, Tooltip, FormControl, RadioGroup, FormControlLabel, Radio, useTheme } from "@mui/material";
|
|
24
24
|
import { C as ColumnSetCheckFormatter } from "../../../DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js";
|
|
25
|
-
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.
|
|
25
|
+
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.2b591dd6.js";
|
|
26
26
|
import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
|
|
27
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox.
|
|
28
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.
|
|
29
|
-
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.
|
|
27
|
+
import { C as CheckBox } from "../../../mui_extended/CheckBox.4d930bed.js";
|
|
28
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.6d8fe229.js";
|
|
29
|
+
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.6a175b73.js";
|
|
30
30
|
import { createPathComponent } from "@react-leaflet/core";
|
|
31
31
|
import "leaflet.markercluster";
|
|
32
32
|
import { cloneDeep, throttle } from "lodash";
|
|
@@ -1140,6 +1140,7 @@ function MeasureData() {
|
|
|
1140
1140
|
/* @__PURE__ */ jsx(
|
|
1141
1141
|
RHFAutocompleteAsync,
|
|
1142
1142
|
{
|
|
1143
|
+
type: "text",
|
|
1143
1144
|
endPoint: "magnitudes/factors?origin_unit_reference_id=m_kilometers",
|
|
1144
1145
|
name: "magnitudFactor",
|
|
1145
1146
|
autoComplete: "off",
|
|
@@ -1708,10 +1709,21 @@ function Controls(props) {
|
|
|
1708
1709
|
L__default.DomEvent.disableScrollPropagation(cContainer);
|
|
1709
1710
|
}
|
|
1710
1711
|
}, [map]);
|
|
1711
|
-
return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP,
|
|
1712
|
+
return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP, containerElement: map.getContainer(), initialPopups: [
|
|
1713
|
+
{
|
|
1714
|
+
popupId: "popup1",
|
|
1715
|
+
status: "init",
|
|
1716
|
+
iconUrl: "`https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/dynamic_filter/assets/icons/edit.svg`,",
|
|
1717
|
+
title: "Popup 1",
|
|
1718
|
+
subTitle: "Subtitulo",
|
|
1719
|
+
zIndex: 1,
|
|
1720
|
+
componentProps: {},
|
|
1721
|
+
functionComponent: () => /* @__PURE__ */ jsx("div", { children: "MyComponent" })
|
|
1722
|
+
}
|
|
1723
|
+
], children: [
|
|
1712
1724
|
/* @__PURE__ */ jsx(TopLeftTools, {}),
|
|
1713
1725
|
/* @__PURE__ */ jsx(TopRightTools, { gpsTools }),
|
|
1714
|
-
controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewer, {
|
|
1726
|
+
controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewer, {}), controlContainer)
|
|
1715
1727
|
] });
|
|
1716
1728
|
}
|
|
1717
1729
|
const MarkerClusterGroup = createPathComponent(({ children: _c, ...props }, ctx) => {
|
|
@@ -1768,10 +1780,8 @@ const MyLayer = (props) => {
|
|
|
1768
1780
|
if (lefaletLayerRef.current.clickCount === 1) {
|
|
1769
1781
|
lefaletLayerRef.current.clickTimeout = setTimeout(() => {
|
|
1770
1782
|
const cluster2 = a.propagatedFrom;
|
|
1771
|
-
if (cluster2 && cluster2 instanceof L__default.MarkerCluster)
|
|
1772
|
-
|
|
1773
|
-
console.log("Markers in this cluster: ", childMarkers);
|
|
1774
|
-
}
|
|
1783
|
+
if (cluster2 && cluster2 instanceof L__default.MarkerCluster)
|
|
1784
|
+
;
|
|
1775
1785
|
if (!popupRef.current) {
|
|
1776
1786
|
popupRef.current = L__default.popup().setLatLng(a.sourceTarget._cLatLng).setContent("Hello, World!");
|
|
1777
1787
|
map.addLayer(popupRef.current);
|
|
@@ -2167,10 +2177,6 @@ const CommonFeatureRender = (props) => {
|
|
|
2167
2177
|
fetchData();
|
|
2168
2178
|
}
|
|
2169
2179
|
}, [feature]);
|
|
2170
|
-
useEffect(() => {
|
|
2171
|
-
return () => {
|
|
2172
|
-
};
|
|
2173
|
-
}, []);
|
|
2174
2180
|
if (!feature) {
|
|
2175
2181
|
return null;
|
|
2176
2182
|
}
|
|
@@ -2229,9 +2235,7 @@ const CommonFeatureRender = (props) => {
|
|
|
2229
2235
|
},
|
|
2230
2236
|
draggable: false,
|
|
2231
2237
|
eventHandlers: {
|
|
2232
|
-
add: onAddPointLayer
|
|
2233
|
-
click: (_e) => {
|
|
2234
|
-
}
|
|
2238
|
+
add: onAddPointLayer
|
|
2235
2239
|
},
|
|
2236
2240
|
...styleProperties,
|
|
2237
2241
|
...propFeature
|
|
@@ -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.2b591dd6.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.f5dcf537.js";
|
|
7
|
+
import { u as useModal } from "../../hooks/useModal/index.d3c18b29.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.434f4824.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.d3c18b29.js";
|
|
6
|
+
import { I as Image } from "../Image/index.fb9e71ba.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.0dc3b3ea.js";
|
|
9
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.ce196f96.js";
|
|
10
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.1c40d33b.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.f5dcf537.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.d972f170.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.2b591dd6.js";
|
|
11
|
+
import { T as Typography } from "../Typography/index.dbc44e77.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.d972f170.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.d972f170.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.d972f170.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.fb9e71ba.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.dbc44e77.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.d972f170.js";
|
|
9
|
+
import { F as FieldLabel } from "../FieldLabel/index.44f3e099.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.2b591dd6.js";
|
|
6
|
+
import { aE as IconButtonRoot } from "../../../styles/index.d972f170.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.6d8fe229.js";
|
|
6
|
+
import { aF as LabelMemuItem } from "../../../styles/index.d972f170.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.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.89ca5b23.js";
|
|
11
|
+
import { I as IconButton } from "../IconButton/index.f5dcf537.js";
|
|
12
12
|
const ICONS = {
|
|
13
13
|
MENU: "menu.svg"
|
|
14
14
|
};
|
|
@@ -4,13 +4,13 @@ export declare function getPagerUtilityClass(slot: string): string;
|
|
|
4
4
|
export declare const pagerUtilityClasses: () => {
|
|
5
5
|
select: string;
|
|
6
6
|
root: string;
|
|
7
|
-
skeletonRoot: string;
|
|
8
7
|
labelRowsPerPageContainer: string;
|
|
9
8
|
selectMenuPopover: string;
|
|
10
9
|
selectMenuItem: string;
|
|
11
10
|
labelDisplayRows: string;
|
|
12
11
|
pagerActions: string;
|
|
13
12
|
customTablePaginationRoot: string;
|
|
13
|
+
skeletonRoot: string;
|
|
14
14
|
skeletonRowsPerPage: string;
|
|
15
15
|
skeletonButtonContainer: string;
|
|
16
16
|
skeletonIconButton: string;
|