@m4l/components 1.0.1 → 1.0.3
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/components/AccountPopover/{index.efc74d5c.js → index.ec031003.js} +5 -3
- package/components/AppBar/{index.fc126a22.js → index.1499770b.js} +4 -4
- package/components/DragResizeWindow/{index.46b380e1.js → index.5e316291.js} +3 -3
- package/components/DynamicFilter/{index.d9168c12.js → index.05e15fb8.js} +28 -211
- package/components/FieldLabel/{index.f9cdcc27.js → index.400a46e0.js} +4 -4
- package/components/GridLayout/{index.bb3b7769.js → index.7156fbc9.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.bb23f651.js → index.8946f18e.js} +4 -4
- package/components/GridLayout/subcomponents/Responsive/{index.b8a2a121.js → index.3c68f0cb.js} +2 -2
- package/components/GridLayout/subcomponents/SizeProvider/{index.094bc6b5.js → index.a5b2190d.js} +1 -1
- package/components/HamburgerMenu/{index.5997af31.js → index.d57bca4c.js} +3 -3
- package/components/HelperText/{index.be949cdf.js → index.651a9b4b.js} +1 -1
- package/components/Icon/index.2e8ec5a1.js +209 -0
- package/components/Image/index.0d32558e.js +168 -0
- package/components/LoadingError/{index.9f00c83c.js → index.d137be81.js} +5 -4
- package/components/MFLoader/{index.402c1acc.js → index.2038aa6c.js} +3 -3
- package/components/ModalDialog/{index.ea9189c3.js → index.85d30f10.js} +4 -4
- package/components/NavLink/{index.4e548cee.js → index.badec599.js} +2 -2
- package/components/NoItemSelected/{index.418c8316.js → index.008154ce.js} +2 -2
- package/components/ObjectLogs/{index.bfa7dad3.js → index.65a6b1bc.js} +8 -7
- package/components/PDFViewer/{index.bb2eca5a.js → index.9677b02a.js} +2 -2
- package/components/Page/index.7482cf60.js +98 -0
- package/components/PaperForm/{index.8121e3da.js → index.e04f9f1f.js} +2 -2
- package/components/Period/{index.5233694b.js → index.3d695534.js} +8 -103
- package/components/PrintingSystem/{index.fb176a93.js → index.89493ad6.js} +15 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.c1d61038.js → index.fdd8cebb.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.18bd9bad.js → index.12293a60.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.67d9f1b4.js → index.7fdad1df.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.eaee152a.js → index.fcaf9b2f.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f5f63a2a.js → index.03148990.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.7de4e411.js → index.691b5c38.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.f9ccf22b.js → index.3699b685.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.f2f2e903.js → index.bcc87da8.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.540a4b19.js → index.659f28e5.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.41e7fcb0.js → index.137ebb7a.js} +1 -1
- package/components/PropertyValue/{index.9572c347.js → index.e31d4282.js} +3 -3
- package/components/Resizeable/{index.1f0c1359.js → index.8c72e36a.js} +1 -1
- package/components/ScrollBar/{index.adf0eade.js → index.9bfcc74f.js} +1 -1
- package/components/SideBar/{index.629ba840.js → index.004a2de1.js} +7 -31
- package/components/SplitLayout/{index.74091a81.js → index.aed78a1f.js} +1 -1
- package/components/ToastContainer/{index.f9b507b9.js → index.586b1194.js} +3 -3
- package/components/areas/constants.630a4f42.js +293 -0
- package/components/areas/contexts/AreasContext/{index.bb316000.js → index.81b748ec.js} +4 -4
- package/components/areas/{dictionary.7e74022a.js → dictionary.19b25583.js} +26 -34
- package/components/areas/hooks/useAreas/{index.e24bd74d.js → index.b02d5bdc.js} +1 -1
- package/components/hook-form/HelperError/index.fd10c3ab.js +19 -0
- package/components/hook-form/RHFAutocompleteAsync/index.ea3ba7a7.js +160 -0
- package/components/hook-form/RHFCheckbox/index.9ac452cc.js +143 -0
- package/components/hook-form/RHFColorPicker/index.25e4e643.js +191 -0
- package/components/hook-form/RHFDateTime/index.31a0537d.js +190 -0
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +34 -0
- package/components/hook-form/RHFPeriod/index.c8868100.js +105 -0
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +35 -0
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +29 -0
- package/components/hook-form/RHFTextField/index.2ae1f130.js +326 -0
- package/components/{Image/index.36a3d440.js → hook-form/RHFUpload/index.9eeaee0f.js} +32 -232
- package/components/maps/components/GpsTools/index.ef751d28.js +251 -0
- package/components/maps/{index.8ec46ce4.js → index.ba1ccfad.js} +21 -555
- package/components/modal/{WindowBase.a3ac7adc.js → WindowBase.c1e879e4.js} +4 -3
- package/components/modal/{WindowConfirm.e35da619.js → WindowConfirm.1a123368.js} +6 -6
- package/components/modal/{index.a0e30c8b.js → index.7ca17f55.js} +1 -1
- package/components/mui_extended/Accordion/index.391679d1.js +143 -0
- package/components/mui_extended/Avatar/index.3ba36655.js +63 -0
- package/components/mui_extended/Badge/index.3465d7fb.js +31 -0
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +22 -0
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +87 -0
- package/components/mui_extended/Button/index.a7dc6ef0.js +289 -0
- package/components/mui_extended/CheckBox/index.c5c8721c.js +76 -0
- package/components/mui_extended/CircularProgress/index.967e70b7.js +8 -0
- package/components/mui_extended/IconButton/index.87f4726c.js +120 -0
- package/components/{LinearProgressIndeterminate/index.de9d447c.js → mui_extended/LinearProgress/index.52edc848.js} +11 -4
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +15 -0
- package/components/{Page/index.fdf04592.js → mui_extended/Pager/index.46aec921.js} +9 -98
- package/components/mui_extended/Popover/index.8e5ac765.js +1041 -0
- package/components/mui_extended/Stack/index.fe363ca5.js +31 -0
- package/components/{maps/components/GpsTools/index.75880ce0.js → mui_extended/Tab/index.ad88441e.js} +674 -239
- package/components/mui_extended/ToggleButton/index.38ca2330.js +18 -0
- package/components/mui_extended/ToggleIconButton/index.7fbece74.js +24 -0
- package/components/mui_extended/Tooltip/index.49bb5ee1.js +40 -0
- package/components/mui_extended/Typography/index.2a1c68f8.js +55 -0
- package/components/popups/PopupsProvider/{index.18669fb4.js → index.3b43e55f.js} +1 -1
- package/components/popups/PopupsViewer/{index.ba354267.js → index.fb3f0c48.js} +5 -4
- package/contexts/ModalContext/{index.cf02e6bd.js → index.82f61407.js} +1 -1
- package/contexts/RHFormContext/{index.dc955a09.js → index.e942a298.js} +1 -1
- package/hooks/useFormAddEdit/{index.f156a2cd.js → index.fa430551.js} +2 -2
- package/hooks/useModal/{index.ef54bcf2.js → index.9fe41bde.js} +3 -3
- package/index.js +266 -239
- package/package.json +3 -3
- package/{react-draggable.5331add7.js → react-draggable.2df3b71a.js} +1 -1
- package/{react-resizable.37bfb965.js → react-resizable.c60f3843.js} +2 -2
- package/utils/{index.9ee4c99a.js → index.0660ee9c.js} +9 -62
- package/{vendor.a1ce6777.js → vendor.3eadfa16.js} +746 -3011
- package/components/Icon/index.d5fed418.js +0 -420
- package/components/LanguagePopover/index.e6fa2336.js +0 -184
- package/components/areas/constants.5387d83e.js +0 -412
- package/hooks/useTab/index.bce8b99e.js +0 -12
|
@@ -3,9 +3,11 @@ import { useEnvironment, useModuleDictionary, useNetwork } from "@m4l/core";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { T as TEST_PROP_ID } from "../areas/constants.
|
|
7
|
-
import { A as Avatar
|
|
8
|
-
import {
|
|
6
|
+
import { T as TEST_PROP_ID } from "../areas/constants.630a4f42.js";
|
|
7
|
+
import { A as Avatar } from "../mui_extended/Avatar/index.3ba36655.js";
|
|
8
|
+
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.967e70b7.js";
|
|
9
|
+
import { P as Popover } from "../mui_extended/Popover/index.8e5ac765.js";
|
|
10
|
+
import { I as Icon } from "../Icon/index.2e8ec5a1.js";
|
|
9
11
|
import clsx from "clsx";
|
|
10
12
|
const componentName = "M4LAccountPopover";
|
|
11
13
|
generateUtilityClasses(
|
|
@@ -2,12 +2,12 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { useResponsiveContainerStore } from "@m4l/graphics";
|
|
4
4
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
|
-
import { T as TEST_PROP_ID } from "../areas/constants.
|
|
5
|
+
import { T as TEST_PROP_ID } from "../areas/constants.630a4f42.js";
|
|
6
6
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import { I as Image } from "../Image/index.
|
|
9
|
-
import { T as Typography } from "
|
|
10
|
-
import {
|
|
8
|
+
import { I as Image } from "../Image/index.0d32558e.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.2a1c68f8.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.87f4726c.js";
|
|
11
11
|
const AppBarRoot = styled("header")(({ theme }) => ({
|
|
12
12
|
...theme.components?.M4LAppBar?.styleOverrides
|
|
13
13
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { D as DraggableCore_1 } from "../../react-draggable.
|
|
3
|
+
import { D as DraggableCore_1 } from "../../react-draggable.2df3b71a.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
6
|
-
import { M as MAP_ZINDEX_OVER_MAP, C as COMPONENT_CLASS_NAME, D as DEFAULT_TRANSFORM_SCALE, a as MAP_ZINDEX_OVER_MAP$1 } from "../areas/constants.
|
|
6
|
+
import { M as MAP_ZINDEX_OVER_MAP, C as COMPONENT_CLASS_NAME, D as DEFAULT_TRANSFORM_SCALE, a as MAP_ZINDEX_OVER_MAP$1 } from "../areas/constants.630a4f42.js";
|
|
7
7
|
import "@mui/base";
|
|
8
|
-
import { R as Resizable } from "../../react-resizable.
|
|
8
|
+
import { R as Resizable } from "../../react-resizable.c60f3843.js";
|
|
9
9
|
const WrapperWindowRoot = styled("div")`
|
|
10
10
|
position: absolute;
|
|
11
11
|
left: 0px;
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useContext, createContext, useRef, useEffect, useState } from "react";
|
|
3
|
+
import { useFormContext, useWatch } from "react-hook-form";
|
|
2
4
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
3
|
-
import { useMemo, useContext, createContext, useRef, useEffect, useState, useCallback } from "react";
|
|
4
5
|
import { useStore, createStore } from "zustand";
|
|
5
6
|
import { shallow } from "zustand/shallow";
|
|
6
7
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
8
|
import { devtools } from "zustand/middleware";
|
|
8
9
|
import { immer } from "zustand/middleware/immer";
|
|
9
10
|
import * as Yup from "yup";
|
|
10
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../areas/dictionary.
|
|
11
|
-
import { B as BOOLEAN_OPERATORS, S as STRING_OPERATORS, b as DATE_TIME_OPERATORS, N as NUMBER_OPERATORS, c as SELECT_OPERATORS, A as ALL_FIELD, d as DYNAMIC_FILTER_KEY_COMPONENT } from "../areas/constants.
|
|
12
|
-
import { R as RHFAutocomplete,
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../areas/dictionary.19b25583.js";
|
|
12
|
+
import { B as BOOLEAN_OPERATORS, S as STRING_OPERATORS, b as DATE_TIME_OPERATORS, N as NUMBER_OPERATORS, c as SELECT_OPERATORS, A as ALL_FIELD, d as DYNAMIC_FILTER_KEY_COMPONENT } from "../areas/constants.630a4f42.js";
|
|
13
|
+
import { R as RHFAutocomplete, A as Actions } from "../../vendor.3eadfa16.js";
|
|
14
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.2ae1f130.js";
|
|
15
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.31a0537d.js";
|
|
16
|
+
import { i as isValidDate, c as containerQuery } from "../../utils/index.0660ee9c.js";
|
|
17
|
+
import { R as RHFAutocompleteAsync } from "../hook-form/RHFAutocompleteAsync/index.ea3ba7a7.js";
|
|
15
18
|
import { styled } from "@mui/material/styles";
|
|
16
19
|
import { Skeleton, alpha, MenuItem } from "@mui/material";
|
|
17
|
-
import { I as Icon
|
|
20
|
+
import { I as Icon } from "../Icon/index.2e8ec5a1.js";
|
|
21
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.87f4726c.js";
|
|
22
|
+
import { P as Popover, a as PopoverMenuFields, b as PopoverFilter } from "../mui_extended/Popover/index.8e5ac765.js";
|
|
23
|
+
import { T as Typography } from "../mui_extended/Typography/index.2a1c68f8.js";
|
|
18
24
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.aee44365.js";
|
|
19
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
20
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.dc955a09.js";
|
|
25
|
+
import { S as ScrollBar } from "../ScrollBar/index.9bfcc74f.js";
|
|
21
26
|
function BooleanFilter() {
|
|
22
27
|
const { getLabel } = useModuleDictionary();
|
|
23
28
|
const operators = useMemo(
|
|
@@ -1588,62 +1593,6 @@ const PopoverHeaderActionsStyled = styled(Actions, {
|
|
|
1588
1593
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
1589
1594
|
slot: DynamicFilterSlots.popoverFilterActions
|
|
1590
1595
|
})(dynamicFilterStyles?.popoverFilterActions);
|
|
1591
|
-
function usePopoverMenuFields() {
|
|
1592
|
-
const { getLabel } = useModuleDictionary();
|
|
1593
|
-
const fnAnchorEl = useDynamicFilterStore((state) => state.fnAnchorEl);
|
|
1594
|
-
const { showPopoverFilterForAdd, closePopoverMenuFields } = useDynamicFilterStore(
|
|
1595
|
-
(state) => state.actions
|
|
1596
|
-
);
|
|
1597
|
-
function handleOpenPopUpClickItem(_event, field) {
|
|
1598
|
-
if (fnAnchorEl) {
|
|
1599
|
-
showPopoverFilterForAdd(fnAnchorEl(), field);
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
function handleClosePopover() {
|
|
1603
|
-
closePopoverMenuFields(false);
|
|
1604
|
-
}
|
|
1605
|
-
function getItemLabel(field) {
|
|
1606
|
-
return field.label ?? getLabel(field.dictionaryId);
|
|
1607
|
-
}
|
|
1608
|
-
return {
|
|
1609
|
-
fnAnchorEl,
|
|
1610
|
-
getItemLabel,
|
|
1611
|
-
handleClosePopover,
|
|
1612
|
-
handleOpenPopUpClickItem
|
|
1613
|
-
};
|
|
1614
|
-
}
|
|
1615
|
-
function PopoverMenuFields(props) {
|
|
1616
|
-
const { fields, selectFieldIndex } = props;
|
|
1617
|
-
const { fnAnchorEl, handleOpenPopUpClickItem, handleClosePopover, getItemLabel } = usePopoverMenuFields();
|
|
1618
|
-
return /* @__PURE__ */ jsx(
|
|
1619
|
-
PopoverMenuStyled,
|
|
1620
|
-
{
|
|
1621
|
-
disableAutoFocus: true,
|
|
1622
|
-
disableRestoreFocus: true,
|
|
1623
|
-
arrowType: "top-left",
|
|
1624
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
1625
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
1626
|
-
open: Boolean(fnAnchorEl),
|
|
1627
|
-
onClose: handleClosePopover,
|
|
1628
|
-
anchorEl: fnAnchorEl?.(),
|
|
1629
|
-
ownerState: {},
|
|
1630
|
-
children: Boolean(fnAnchorEl) && fields.map((field, index) => /* @__PURE__ */ jsxs(
|
|
1631
|
-
PopoverMenuItemStyled,
|
|
1632
|
-
{
|
|
1633
|
-
dense: true,
|
|
1634
|
-
selected: index === selectFieldIndex,
|
|
1635
|
-
onClick: (event) => handleOpenPopUpClickItem(event, field),
|
|
1636
|
-
ownerState: {},
|
|
1637
|
-
children: [
|
|
1638
|
-
/* @__PURE__ */ jsx(PopoverMenuItemIconStyled, { src: field.urlIcon, ownerState: {} }),
|
|
1639
|
-
/* @__PURE__ */ jsx(PopoverMenuItemLabelStyled, { ownerState: {}, children: getItemLabel(field) })
|
|
1640
|
-
]
|
|
1641
|
-
},
|
|
1642
|
-
`menu_action_${getItemLabel(field)}`
|
|
1643
|
-
))
|
|
1644
|
-
}
|
|
1645
|
-
);
|
|
1646
|
-
}
|
|
1647
1596
|
const InputFilter = () => {
|
|
1648
1597
|
const {
|
|
1649
1598
|
iconUrl,
|
|
@@ -1823,97 +1772,6 @@ function FilterActions() {
|
|
|
1823
1772
|
)
|
|
1824
1773
|
] });
|
|
1825
1774
|
}
|
|
1826
|
-
function usePopoverFilter() {
|
|
1827
|
-
let anchorEl;
|
|
1828
|
-
let field;
|
|
1829
|
-
let formFilter;
|
|
1830
|
-
let filterFormValue;
|
|
1831
|
-
let popupValidationSchema;
|
|
1832
|
-
const { getLabel } = useModuleDictionary();
|
|
1833
|
-
const popoverFilterData = useDynamicFilterStore((state) => state.popoverFilterData);
|
|
1834
|
-
const { hidePopoverFilter, addFilter, updateFilter, getNewId } = useDynamicFilterStore(
|
|
1835
|
-
(state) => state.actions
|
|
1836
|
-
);
|
|
1837
|
-
const refPreviousPopoverFilterData = useRef(popoverFilterData);
|
|
1838
|
-
const statusLoad = useMemo(() => {
|
|
1839
|
-
let returnStatus;
|
|
1840
|
-
if (popoverFilterData && refPreviousPopoverFilterData.current === void 0) {
|
|
1841
|
-
returnStatus = "ready";
|
|
1842
|
-
} else if (!popoverFilterData) {
|
|
1843
|
-
returnStatus = "initial";
|
|
1844
|
-
} else {
|
|
1845
|
-
returnStatus = "reload_values_provider";
|
|
1846
|
-
}
|
|
1847
|
-
refPreviousPopoverFilterData.current = popoverFilterData;
|
|
1848
|
-
return returnStatus;
|
|
1849
|
-
}, [popoverFilterData]);
|
|
1850
|
-
if (popoverFilterData?.openFor === "add") {
|
|
1851
|
-
anchorEl = popoverFilterData?.fnAnchorEl();
|
|
1852
|
-
field = popoverFilterData.field;
|
|
1853
|
-
const helperField = fieldFactory(field.type);
|
|
1854
|
-
popupValidationSchema = helperField.getSchema(getLabel);
|
|
1855
|
-
filterFormValue = helperField.getFormValue(field, getLabel);
|
|
1856
|
-
formFilter = {
|
|
1857
|
-
field,
|
|
1858
|
-
id: getNewId(),
|
|
1859
|
-
isSet: true,
|
|
1860
|
-
fixed: false,
|
|
1861
|
-
...filterFormValue
|
|
1862
|
-
};
|
|
1863
|
-
} else if (popoverFilterData) {
|
|
1864
|
-
anchorEl = popoverFilterData?.fnAnchorEl();
|
|
1865
|
-
field = popoverFilterData?.filter.field;
|
|
1866
|
-
const helperField = fieldFactory(field.type);
|
|
1867
|
-
popupValidationSchema = helperField.getSchema(getLabel);
|
|
1868
|
-
filterFormValue = helperField.getFormValue(field, getLabel, popoverFilterData.filter);
|
|
1869
|
-
formFilter = { ...popoverFilterData?.filter, ...filterFormValue };
|
|
1870
|
-
} else {
|
|
1871
|
-
filterFormValue = {};
|
|
1872
|
-
field = {};
|
|
1873
|
-
formFilter = {};
|
|
1874
|
-
anchorEl = {};
|
|
1875
|
-
}
|
|
1876
|
-
const onClose = useCallback(() => {
|
|
1877
|
-
hidePopoverFilter(false);
|
|
1878
|
-
}, []);
|
|
1879
|
-
const handleKeyDownPopper = useCallback((event) => {
|
|
1880
|
-
if (event.key === "Escape") {
|
|
1881
|
-
onClose();
|
|
1882
|
-
}
|
|
1883
|
-
}, []);
|
|
1884
|
-
function handleClosePopover() {
|
|
1885
|
-
hidePopoverFilter(false);
|
|
1886
|
-
}
|
|
1887
|
-
async function onSubmit(dataFieldValues) {
|
|
1888
|
-
const filterField = { ...filterFormValue, ...dataFieldValues };
|
|
1889
|
-
const newFilter = {
|
|
1890
|
-
...formFilter,
|
|
1891
|
-
...fieldFactory(filterField.fieldType).getFilterFromFormValue(filterField),
|
|
1892
|
-
isSet: true
|
|
1893
|
-
};
|
|
1894
|
-
if (popoverFilterData?.openFor === "add") {
|
|
1895
|
-
addFilter(newFilter);
|
|
1896
|
-
} else {
|
|
1897
|
-
updateFilter(newFilter);
|
|
1898
|
-
}
|
|
1899
|
-
hidePopoverFilter(false);
|
|
1900
|
-
}
|
|
1901
|
-
const labelField = field?.label ?? getLabel(field?.dictionaryId ?? "");
|
|
1902
|
-
return {
|
|
1903
|
-
field,
|
|
1904
|
-
labelField,
|
|
1905
|
-
canRender: Boolean(popoverFilterData),
|
|
1906
|
-
anchorEl,
|
|
1907
|
-
handleKeyDownPopper,
|
|
1908
|
-
handleClosePopover,
|
|
1909
|
-
onSubmit,
|
|
1910
|
-
onClose,
|
|
1911
|
-
filterFormValue,
|
|
1912
|
-
formFilter,
|
|
1913
|
-
popupValidationSchema,
|
|
1914
|
-
statusLoad
|
|
1915
|
-
};
|
|
1916
|
-
}
|
|
1917
1775
|
function DataTypeComponent(props) {
|
|
1918
1776
|
const { formFilter, statusLoad } = props;
|
|
1919
1777
|
const { setFocus } = useFormContext();
|
|
@@ -1923,60 +1781,6 @@ function DataTypeComponent(props) {
|
|
|
1923
1781
|
}, [statusLoad]);
|
|
1924
1782
|
return /* @__PURE__ */ jsx(Component, {});
|
|
1925
1783
|
}
|
|
1926
|
-
function PopoverFilter() {
|
|
1927
|
-
const {
|
|
1928
|
-
field,
|
|
1929
|
-
labelField,
|
|
1930
|
-
anchorEl,
|
|
1931
|
-
handleKeyDownPopper,
|
|
1932
|
-
handleClosePopover,
|
|
1933
|
-
onSubmit,
|
|
1934
|
-
onClose,
|
|
1935
|
-
filterFormValue,
|
|
1936
|
-
formFilter,
|
|
1937
|
-
popupValidationSchema,
|
|
1938
|
-
statusLoad,
|
|
1939
|
-
canRender
|
|
1940
|
-
} = usePopoverFilter();
|
|
1941
|
-
if (!canRender) {
|
|
1942
|
-
return null;
|
|
1943
|
-
}
|
|
1944
|
-
return /* @__PURE__ */ jsx(
|
|
1945
|
-
PopoverStyled,
|
|
1946
|
-
{
|
|
1947
|
-
open: true,
|
|
1948
|
-
disableRestoreFocus: true,
|
|
1949
|
-
transitionDuration: 0,
|
|
1950
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
1951
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
1952
|
-
arrowType: "top-left",
|
|
1953
|
-
anchorEl,
|
|
1954
|
-
onKeyDown: handleKeyDownPopper,
|
|
1955
|
-
onClose: handleClosePopover,
|
|
1956
|
-
ownerState: {},
|
|
1957
|
-
children: /* @__PURE__ */ jsxs(
|
|
1958
|
-
RHFormProvider,
|
|
1959
|
-
{
|
|
1960
|
-
onSubmit,
|
|
1961
|
-
values: filterFormValue,
|
|
1962
|
-
validationSchema: popupValidationSchema,
|
|
1963
|
-
statusLoad,
|
|
1964
|
-
children: [
|
|
1965
|
-
/* @__PURE__ */ jsxs(PopoverHeaderStyled, { ownerState: {}, children: [
|
|
1966
|
-
field.urlIcon && /* @__PURE__ */ jsx(PopoverHeaderIconStyled, { src: field.urlIcon, ownerState: {} }),
|
|
1967
|
-
/* @__PURE__ */ jsx(PopoverHeaderTitleStyled, { variant: "paragraphDens", ownerState: {}, children: labelField })
|
|
1968
|
-
] }),
|
|
1969
|
-
/* @__PURE__ */ jsx(PopoverContainerFieldsStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(DataTypeComponent, { formFilter, statusLoad }) }),
|
|
1970
|
-
/* @__PURE__ */ jsxs(PopoverHeaderActionsStyled, { ownerState: {}, children: [
|
|
1971
|
-
/* @__PURE__ */ jsx(ActionCancel, { onClick: onClose, skeletonWidth: "68px" }),
|
|
1972
|
-
/* @__PURE__ */ jsx(ActionIntro, { skeletonWidth: "64px" })
|
|
1973
|
-
] })
|
|
1974
|
-
]
|
|
1975
|
-
}
|
|
1976
|
-
)
|
|
1977
|
-
}
|
|
1978
|
-
);
|
|
1979
|
-
}
|
|
1980
1784
|
function DynamicFilterBase() {
|
|
1981
1785
|
const { ownerState, dataTestId } = useDynamicFilterBase();
|
|
1982
1786
|
return /* @__PURE__ */ jsx(
|
|
@@ -2008,5 +1812,18 @@ function DynamicFilter(props) {
|
|
|
2008
1812
|
return /* @__PURE__ */ jsx(DynamicFilterProvider, { ...props, children: /* @__PURE__ */ jsx(DynamicFilterBase, {}) });
|
|
2009
1813
|
}
|
|
2010
1814
|
export {
|
|
2011
|
-
DynamicFilter as D
|
|
1815
|
+
DynamicFilter as D,
|
|
1816
|
+
PopoverMenuStyled as P,
|
|
1817
|
+
PopoverMenuItemStyled as a,
|
|
1818
|
+
PopoverMenuItemIconStyled as b,
|
|
1819
|
+
PopoverMenuItemLabelStyled as c,
|
|
1820
|
+
PopoverStyled as d,
|
|
1821
|
+
PopoverHeaderStyled as e,
|
|
1822
|
+
fieldFactory as f,
|
|
1823
|
+
PopoverHeaderIconStyled as g,
|
|
1824
|
+
PopoverHeaderTitleStyled as h,
|
|
1825
|
+
PopoverContainerFieldsStyled as i,
|
|
1826
|
+
DataTypeComponent as j,
|
|
1827
|
+
PopoverHeaderActionsStyled as k,
|
|
1828
|
+
useDynamicFilterStore as u
|
|
2012
1829
|
};
|
|
@@ -2,11 +2,11 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { styled, generateUtilityClasses, Tooltip, Skeleton } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { e as componentName } from "../areas/constants.
|
|
6
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
5
|
+
import { e as componentName } from "../areas/constants.630a4f42.js";
|
|
6
|
+
import { g as getComponentUtilityClass } from "../../utils/index.0660ee9c.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { T as Typography } from "
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
8
|
+
import { T as Typography } from "../mui_extended/Typography/index.2a1c68f8.js";
|
|
9
|
+
import { I as Icon } from "../Icon/index.2e8ec5a1.js";
|
|
10
10
|
const FieldLabelRoot = styled("label")(({ theme }) => ({
|
|
11
11
|
...theme.components?.M4LFieldLabel?.styleOverrides
|
|
12
12
|
}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { f as DEFAULT_ROW_HEIGHT, g as COMPONENT_CLASS_NAME, h as DEFAULT_COLS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, k as DEFAULT_COLAPSED_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, n as DEFAULT_TRANSFORM_SCALE } from "../areas/constants.
|
|
5
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
4
|
+
import { f as DEFAULT_ROW_HEIGHT, g as COMPONENT_CLASS_NAME, h as DEFAULT_COLS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, k as DEFAULT_COLAPSED_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, n as DEFAULT_TRANSFORM_SCALE } from "../areas/constants.630a4f42.js";
|
|
5
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.8946f18e.js";
|
|
6
6
|
import { styled, alpha } from "@mui/material/styles";
|
|
7
7
|
import { generateUtilityClasses } from "@mui/material";
|
|
8
8
|
import "@mui/base";
|
package/components/GridLayout/subcomponents/Griditem/{index.bb23f651.js → index.8946f18e.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
3
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
4
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
5
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, p as perc, s as setTransform, i as setTopLeft } from "../../index.
|
|
3
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.2df3b71a.js";
|
|
4
|
+
import { R as Resizable } from "../../../../react-resizable.c60f3843.js";
|
|
5
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, p as perc, s as setTransform, i as setTopLeft } from "../../index.7156fbc9.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { deepEqual } from "fast-equals";
|
|
8
|
-
import { h as DEFAULT_COLS, f as DEFAULT_ROW_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, j as DEFAULT_MARGIN, i as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, k as DEFAULT_COLAPSED_HEIGHT } from "../../../areas/constants.
|
|
8
|
+
import { h as DEFAULT_COLS, f as DEFAULT_ROW_HEIGHT, l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, j as DEFAULT_MARGIN, i as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, k as DEFAULT_COLAPSED_HEIGHT } from "../../../areas/constants.630a4f42.js";
|
|
9
9
|
function GridItem(props) {
|
|
10
10
|
const {
|
|
11
11
|
layoutItemRender: ComponentItemRender,
|
package/components/GridLayout/subcomponents/Responsive/{index.b8a2a121.js → index.3c68f0cb.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { j as cloneLayoutItem, k as cloneLayout, l as compact, m as correctBounds, n as isEqualLayout, o as noop, q as isEqualLayouts, G as GridLayout } from "../../index.
|
|
2
|
+
import { j as cloneLayoutItem, k as cloneLayout, l as compact, m as correctBounds, n as isEqualLayout, o as noop, q as isEqualLayouts, G as GridLayout } from "../../index.7156fbc9.js";
|
|
3
3
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
4
4
|
import { useFirstRender } from "@m4l/graphics";
|
|
5
|
-
import { k as DEFAULT_COLAPSED_HEIGHT, o as DEFAULT_RESPONSIVE_BREAKPOINTS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, p as DEFAULT_RESPONSIVE_COLS, f as DEFAULT_ROW_HEIGHT } from "../../../areas/constants.
|
|
5
|
+
import { k as DEFAULT_COLAPSED_HEIGHT, o as DEFAULT_RESPONSIVE_BREAKPOINTS, i as DEFAULT_CONTAINER_PADDING, j as DEFAULT_MARGIN, p as DEFAULT_RESPONSIVE_COLS, f as DEFAULT_ROW_HEIGHT } from "../../../areas/constants.630a4f42.js";
|
|
6
6
|
import { deepEqual } from "fast-equals";
|
|
7
7
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
8
8
|
const sorted = sortBreakpoints(breakpoints);
|
package/components/GridLayout/subcomponents/SizeProvider/{index.094bc6b5.js → index.a5b2190d.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { throttle } from "lodash";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
|
-
import { l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, q as THROTTLE_RESIZE_TIMEOUT, g as COMPONENT_CLASS_NAME } from "../../../areas/constants.
|
|
6
|
+
import { l as DEFAULT_CONTAINER_WIDTH, m as DEFAULT_CONTAINER_HEIGHT, q as THROTTLE_RESIZE_TIMEOUT, g as COMPONENT_CLASS_NAME } from "../../../areas/constants.630a4f42.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
return (props) => {
|
|
9
9
|
const { measureBeforeMount = true, ...rest } = props;
|
|
@@ -3,10 +3,10 @@ import { useState } from "react";
|
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { r as componentName, H as HAMBURGER_MENU_PREFIX, T as TEST_PROP_ID } from "../areas/constants.
|
|
6
|
+
import { r as componentName, H as HAMBURGER_MENU_PREFIX, T as TEST_PROP_ID } from "../areas/constants.630a4f42.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { S as SideBar } from "../SideBar/index.
|
|
9
|
-
import {
|
|
8
|
+
import { S as SideBar } from "../SideBar/index.004a2de1.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.87f4726c.js";
|
|
10
10
|
const HamburgerMenuRoot = styled("header")(({ theme }) => ({
|
|
11
11
|
...theme.components?.M4LHamburgerMenuCommercial?.styleOverrides
|
|
12
12
|
}));
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { T as Typography } from "
|
|
5
|
+
import { T as Typography } from "../mui_extended/Typography/index.2a1c68f8.js";
|
|
6
6
|
const HelperTextRoot = styled("div")(({ theme }) => ({
|
|
7
7
|
...theme.components?.M4LErrorLabel?.styleOverrides
|
|
8
8
|
}));
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Marker } from "react-leaflet";
|
|
3
|
+
import L__default from "leaflet";
|
|
4
|
+
import { s as componentName, I as ICON_PREFIX, T as TEST_PROP_ID, L as LABEL_BK_COLOR_DEFAULT, t as LABEL_COLOR_DEFAULT } from "../areas/constants.630a4f42.js";
|
|
5
|
+
import { m as mapClasses } from "../maps/index.ba1ccfad.js";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { useEnvironment } from "@m4l/core";
|
|
8
|
+
import { generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
9
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.004a2de1.js";
|
|
10
|
+
import { styled } from "@mui/material/styles";
|
|
11
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
|
+
const IconRoot = styled("div")(({ theme }) => ({
|
|
14
|
+
...theme.components?.M4LIcon?.styleOverrides
|
|
15
|
+
}));
|
|
16
|
+
const DivIcon = styled("div", {
|
|
17
|
+
shouldForwardProp: (props) => props !== "src" && props !== "rotationAngle"
|
|
18
|
+
})(({ src, rotationAngle }) => ({
|
|
19
|
+
maskPosition: "center",
|
|
20
|
+
maskRepeat: "no-repeat",
|
|
21
|
+
maskSize: "cover",
|
|
22
|
+
WebkitMaskRepeat: "no-repeat",
|
|
23
|
+
mask: `url(${src})`,
|
|
24
|
+
WebkitMask: `url(${src})`,
|
|
25
|
+
WebkitMaskSize: "cover",
|
|
26
|
+
...rotationAngle && {
|
|
27
|
+
transform: `rotate(${rotationAngle}deg)`
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
generateUtilityClasses(componentName, [
|
|
31
|
+
"root",
|
|
32
|
+
"icon",
|
|
33
|
+
"variantSkeleton",
|
|
34
|
+
"sizeExtraSmall",
|
|
35
|
+
"sizeSmall",
|
|
36
|
+
"sizeMedium",
|
|
37
|
+
"sizeLarge",
|
|
38
|
+
"sizeExtraLarge",
|
|
39
|
+
"rotationAngle"
|
|
40
|
+
]);
|
|
41
|
+
function getIconClassesUtilityClass(slot) {
|
|
42
|
+
return generateUtilityClass(componentName, slot);
|
|
43
|
+
}
|
|
44
|
+
const useUtilityClasses = (ownerState) => {
|
|
45
|
+
const slots = {
|
|
46
|
+
root: ["root"],
|
|
47
|
+
icon: [
|
|
48
|
+
"icon",
|
|
49
|
+
ownerState.size === "extraSmall" && "sizeExtraSmall",
|
|
50
|
+
ownerState.size === "small" && "sizeSmall",
|
|
51
|
+
ownerState.size === "medium" && "sizeMedium",
|
|
52
|
+
ownerState.size === "large" && "sizeLarge",
|
|
53
|
+
ownerState.size === "extraLarge" && "sizeExtraLarge",
|
|
54
|
+
ownerState.rotationAngle ? "rotationAngle" : ""
|
|
55
|
+
],
|
|
56
|
+
variantSkeleton: [
|
|
57
|
+
"variantSkeleton",
|
|
58
|
+
ownerState.size === "extraSmall" && "sizeExtraSmall",
|
|
59
|
+
ownerState.size === "small" && "sizeSmall",
|
|
60
|
+
ownerState.size === "medium" && "sizeMedium",
|
|
61
|
+
ownerState.size === "large" && "sizeLarge",
|
|
62
|
+
ownerState.size === "extraLarge" && "sizeExtraLarge"
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
const composedClasses = unstable_composeClasses(slots, getIconClassesUtilityClass, {});
|
|
66
|
+
return {
|
|
67
|
+
...composedClasses
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
const getNameDataTestId = (KEY) => {
|
|
71
|
+
return `${ICON_PREFIX}-${KEY}`;
|
|
72
|
+
};
|
|
73
|
+
function Icon(props) {
|
|
74
|
+
const { src, size = "small", rotationAngle, className } = props;
|
|
75
|
+
const isDesktop = useResponsiveDesktop();
|
|
76
|
+
const ownerState = {
|
|
77
|
+
size: isDesktop ? size : "medium",
|
|
78
|
+
rotationAngle
|
|
79
|
+
};
|
|
80
|
+
const classes = useUtilityClasses(ownerState);
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
IconRoot,
|
|
83
|
+
{
|
|
84
|
+
className: clsx(classes.root, className),
|
|
85
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
86
|
+
children: /* @__PURE__ */ jsx(
|
|
87
|
+
DivIcon,
|
|
88
|
+
{
|
|
89
|
+
className: classes.icon,
|
|
90
|
+
src,
|
|
91
|
+
rotationAngle,
|
|
92
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("icon") } : {}
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
const FeatureDivIconLabel = (props) => {
|
|
99
|
+
const {
|
|
100
|
+
label,
|
|
101
|
+
iconSrc,
|
|
102
|
+
iconScale: scale = 1,
|
|
103
|
+
iconRotate,
|
|
104
|
+
labelBkColor: bkColor = LABEL_BK_COLOR_DEFAULT,
|
|
105
|
+
labelColor: color = LABEL_COLOR_DEFAULT,
|
|
106
|
+
iconWidth = 24,
|
|
107
|
+
iconHeight = 24,
|
|
108
|
+
offsetLeftTop = [24, 0]
|
|
109
|
+
} = props;
|
|
110
|
+
let html = label ? `<div class="${mapClasses.featureLabel}"
|
|
111
|
+
style="background-color:${bkColor}; color:${color};left:${offsetLeftTop[0]}px;top:${offsetLeftTop[1]}px;">${label}</div>` : "";
|
|
112
|
+
if (iconSrc) {
|
|
113
|
+
html = `<div class="${mapClasses.markerLayerIcon}" style="transform: rotate(${iconRotate}deg) scale(${scale}); transform-origin: center center;">
|
|
114
|
+
<img src=${iconSrc}></img>
|
|
115
|
+
</div>` + html;
|
|
116
|
+
}
|
|
117
|
+
return L__default.divIcon({
|
|
118
|
+
className: clsx(mapClasses.markerLayerRoot, ""),
|
|
119
|
+
iconSize: [iconWidth, iconHeight],
|
|
120
|
+
html
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
const MarkerIconLabel = (props) => {
|
|
124
|
+
const {
|
|
125
|
+
position,
|
|
126
|
+
draggable = true,
|
|
127
|
+
iconSrc,
|
|
128
|
+
iconRotate,
|
|
129
|
+
iconScale: scale,
|
|
130
|
+
className,
|
|
131
|
+
label,
|
|
132
|
+
markerColor,
|
|
133
|
+
labelBkColor: bkColor,
|
|
134
|
+
labelColor: color,
|
|
135
|
+
iconWidth,
|
|
136
|
+
iconHeight,
|
|
137
|
+
offsetLeftTop,
|
|
138
|
+
...properties
|
|
139
|
+
} = props;
|
|
140
|
+
const makerIcon = FeatureDivIconLabel({
|
|
141
|
+
iconSrc,
|
|
142
|
+
iconRotate,
|
|
143
|
+
iconScale: scale,
|
|
144
|
+
label,
|
|
145
|
+
iconWidth,
|
|
146
|
+
iconHeight,
|
|
147
|
+
labelBkColor: bkColor,
|
|
148
|
+
labelColor: color,
|
|
149
|
+
offsetLeftTop
|
|
150
|
+
});
|
|
151
|
+
return /* @__PURE__ */ jsx(
|
|
152
|
+
Marker,
|
|
153
|
+
{
|
|
154
|
+
position,
|
|
155
|
+
draggable,
|
|
156
|
+
riseOnHover: true,
|
|
157
|
+
icon: makerIcon,
|
|
158
|
+
...properties
|
|
159
|
+
},
|
|
160
|
+
Math.random()
|
|
161
|
+
);
|
|
162
|
+
};
|
|
163
|
+
const ArrowIconRoot$1 = styled$1("div")(() => ({
|
|
164
|
+
display: "flex",
|
|
165
|
+
alignSelf: "center",
|
|
166
|
+
lineHeight: 0
|
|
167
|
+
}));
|
|
168
|
+
function ArrowIcon$1(props) {
|
|
169
|
+
const { openState } = props;
|
|
170
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
171
|
+
const { classes } = useSideBar();
|
|
172
|
+
return /* @__PURE__ */ jsx(
|
|
173
|
+
ArrowIconRoot$1,
|
|
174
|
+
{
|
|
175
|
+
className: classes.arrowIconRoot,
|
|
176
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("arrowIconRoot") } : {},
|
|
177
|
+
children: /* @__PURE__ */ jsx(
|
|
178
|
+
Icon,
|
|
179
|
+
{
|
|
180
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
|
|
181
|
+
rotationAngle: openState ? 90 : 0
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
const ArrowIconRoot = styled$1("div")(() => ({
|
|
188
|
+
display: "flex",
|
|
189
|
+
alignSelf: "center",
|
|
190
|
+
lineHeight: 0
|
|
191
|
+
}));
|
|
192
|
+
function ArrowIcon(props) {
|
|
193
|
+
const { openState } = props;
|
|
194
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
195
|
+
return /* @__PURE__ */ jsx(ArrowIconRoot, { className: "", children: /* @__PURE__ */ jsx(
|
|
196
|
+
Icon,
|
|
197
|
+
{
|
|
198
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
|
|
199
|
+
rotationAngle: openState ? 270 : 90,
|
|
200
|
+
size: "medium"
|
|
201
|
+
}
|
|
202
|
+
) });
|
|
203
|
+
}
|
|
204
|
+
export {
|
|
205
|
+
ArrowIcon$1 as A,
|
|
206
|
+
Icon as I,
|
|
207
|
+
MarkerIconLabel as M,
|
|
208
|
+
ArrowIcon as a
|
|
209
|
+
};
|