@m4l/components 9.2.48 → 9.2.50-beta.1
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 +8 -1
- package/components/Chip/ChipStyles.js +1 -1
- package/components/Chip/types.d.ts +2 -1
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +0 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +4 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/types.d.ts +4 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +4 -4
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +2 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +4 -3
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +0 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +0 -1
- package/components/DynamicFilter/constants.d.ts +5 -2
- package/components/DynamicFilter/constants.js +9 -3
- package/components/DynamicFilter/dictionary.d.ts +40 -38
- package/components/DynamicFilter/dictionary.js +33 -39
- package/components/DynamicFilter/helpers/formatToInitialFilters.d.ts +3 -1
- package/components/DynamicFilter/helpers/formatToInitialFilters.js +30 -20
- package/components/DynamicFilter/helpers/formatToRowFilter.js +15 -6
- package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.js +1 -1
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +4 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +10 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +11 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +10 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +17 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +13 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +121 -46
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +13 -11
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +8 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +127 -46
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +11 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +11 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +10 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -4
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
- package/components/DynamicFilter/types.d.ts +60 -18
- package/components/DynamicSort/dictionary.d.ts +1 -0
- package/components/DynamicSort/dictionary.js +1 -5
- package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
- package/components/DynamicSort/store/DynamicSortContext.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +2 -2
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +5 -3
- package/components/ObjectLogs/dictionary.js +1 -1
- package/components/Pager/Pager.styles.js +0 -8
- package/components/Pager/dicctionary.js +0 -5
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +3 -3
- package/components/PropertyValue/PropertyValue.styles.js +4 -2
- package/components/PropertyValue/index.d.ts +1 -0
- package/components/PropertyValue/types.d.ts +0 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
- package/components/areas/contexts/AreasContext/store.js +5 -5
- package/components/areas/icons.js +0 -8
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +9 -3
- package/components/extended/React-resizable-panels/SplitLayout.js +25 -5
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +20 -6
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +12 -4
- package/components/extended/React-resizable-panels/types.d.ts +7 -0
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/ChipStatusFormatter/types.d.ts +3 -2
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFNumberInput/index.d.ts +1 -0
- package/components/hook-form/RHFNumberInput/index.js +1 -0
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -3
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/hook-form/index.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Accordion/styles.js +1 -0
- package/components/mui_extended/Autocomplete/Autocomplete.js +25 -12
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +3 -3
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +1 -5
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TabContent/TabContent.styles.js +2 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/Tooltip/Tooltip.js +2 -2
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsViewer/icons.js +0 -1
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useDynamicFilterAndSort/styles.js +2 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +56 -12
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +109 -109
- package/mockServiceWorker.js +1 -1
- package/package.json +1 -6
- package/components/PropertyValue/styles.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as cloneLayout, a as cloneLayoutItem, d as compact, l as correctBounds } from "../../utils.js";
|
|
2
2
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
3
3
|
const sorted = sortBreakpoints(breakpoints);
|
|
4
4
|
let matching = sorted[0];
|
|
@@ -143,8 +143,8 @@ export {
|
|
|
143
143
|
getColsFromBreakpoint as a,
|
|
144
144
|
getIndentationValue as b,
|
|
145
145
|
addLayoutItemToBreakPointIfNoExists as c,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
cloneLayouts as d,
|
|
147
|
+
addLayoutItemToBreakPoints as e,
|
|
148
148
|
findOrGenerateResponsiveLayout as f,
|
|
149
149
|
getBreakpointFromWidth as g
|
|
150
150
|
};
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useRef, useState, useMemo, useCallback, useEffect } from "r
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import throttle from "lodash-es/throttle";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { f as DEFAULT_CONTAINER_HEIGHT, e as DEFAULT_CONTAINER_WIDTH, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../constants.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
const WithSizeProvider = forwardRef((props, ref) => {
|
|
9
9
|
const { measureBeforeMount = true, ...rest } = props;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
|
-
import { I as
|
|
5
|
+
import { I as ICON_PREFIX, a as ICON_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses, a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
8
8
|
import { T as TooltipStyled, R as RootStyled, I as IconStyled, a as IconSkeletonStyled } from "./slots/IconSlots.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { I as IconSlots } from "./IconEnum.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as ICON_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { i as iconStyles } from "../Icon.styles.js";
|
|
5
5
|
import { T as Tooltip } from "../../mui_extended/Tooltip/Tooltip.js";
|
|
6
6
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -5,7 +5,7 @@ import clsx from "clsx";
|
|
|
5
5
|
import { L as LazyLoadComponent } from "./subcomponents/LazyLoadComponent/index.js";
|
|
6
6
|
import { D as DivContainerSkeletonStyled, I as ImgSkeleton, a as ImgStyled } from "./slots/ImageSlots.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
|
-
import { s as svgDataUriSkeleton, I as
|
|
8
|
+
import { s as svgDataUriSkeleton, I as IMAGE_CLASSES, a as IMAGE_KEY_COMPONENT } from "./constant.js";
|
|
9
9
|
import { I as ImageSlots } from "./slots/ImageEnum.js";
|
|
10
10
|
function Image(props) {
|
|
11
11
|
const {
|
|
@@ -4,7 +4,7 @@ const IMAGE_KEY_COMPONENT = "M4LImage";
|
|
|
4
4
|
const svgDataUriSkeleton = `data:image/svg+xml,%3Csvg width='36' height='37' viewBox='0 0 36 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Union'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.0001 14.7416C24.26 15.2361 23.39 15.5 22.5 15.5C21.3065 15.5 20.1619 15.0259 19.318 14.182C18.4741 13.3381 18 12.1935 18 11C18 10.11 18.2639 9.23996 18.7584 8.49994C19.2529 7.75992 19.9557 7.18314 20.7779 6.84254C21.6002 6.50195 22.505 6.41283 23.3779 6.58647C24.2508 6.7601 25.0526 7.18868 25.682 7.81802C26.3113 8.44736 26.7399 9.24918 26.9135 10.1221C27.0872 10.995 26.9981 11.8998 26.6575 12.7221C26.3169 13.5443 25.7401 14.2471 25.0001 14.7416ZM23.3334 9.7528C23.0867 9.58798 22.7967 9.5 22.5 9.5C22.1022 9.5 21.7206 9.65804 21.4393 9.93934C21.158 10.2206 21 10.6022 21 11C21 11.2967 21.088 11.5867 21.2528 11.8334C21.4176 12.08 21.6519 12.2723 21.926 12.3858C22.2001 12.4994 22.5017 12.5291 22.7926 12.4712C23.0836 12.4133 23.3509 12.2704 23.5607 12.0607C23.7704 11.8509 23.9133 11.5836 23.9712 11.2926C24.0291 11.0017 23.9994 10.7001 23.8858 10.426C23.7723 10.1519 23.58 9.91762 23.3334 9.7528Z' fill='%23091E42' fill-opacity='0.08'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0.5H33C33.7957 0.5 34.5587 0.81607 35.1213 1.37868C35.6839 1.94129 36 2.70435 36 3.5V33.5C36 34.2957 35.6839 35.0587 35.1213 35.6213C34.5587 36.1839 33.7957 36.5 33 36.5H3C2.20435 36.5 1.44129 36.1839 0.87868 35.6213C0.31607 35.0587 0 34.2957 0 33.5V3.5C0 2.70435 0.31607 1.94129 0.87868 1.37868C1.44129 0.81607 2.20435 0.5 3 0.5ZM3 24.5V33.5H33V30.5L25.5 23L23.115 25.385C22.5529 25.9438 21.7926 26.2574 21 26.2574C20.2074 26.2574 19.4471 25.9438 18.885 25.385L10.5 17L3 24.5ZM27.615 20.87L33 26.255V3.5H3V20.255L8.385 14.87C8.94709 14.3112 9.70744 13.9976 10.5 13.9976C11.2926 13.9976 12.0529 14.3112 12.615 14.87L21 23.255L23.385 20.87C23.9471 20.3112 24.7074 19.9976 25.5 19.9976C26.2926 19.9976 27.0529 20.3112 27.615 20.87Z' fill='%23091E42' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E%0A`;
|
|
5
5
|
const IMAGE_CLASSES = getComponentClasses(IMAGE_KEY_COMPONENT, ImageSlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
IMAGE_CLASSES as I,
|
|
8
|
+
IMAGE_KEY_COMPONENT as a,
|
|
9
9
|
svgDataUriSkeleton as s
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { a as IMAGE_KEY_COMPONENT } from "../constant.js";
|
|
3
3
|
import { I as ImageSlots } from "./ImageEnum.js";
|
|
4
4
|
import { i as imageStyles } from "../image.styles.js";
|
|
5
5
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { b as IntersectComponentStyled } from "../../slots/ImageSlots.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as IMAGE_KEY_COMPONENT } from "../../constant.js";
|
|
6
6
|
import { I as ImageSlots } from "../../slots/ImageEnum.js";
|
|
7
7
|
const checkIntersections = (entries) => {
|
|
8
8
|
entries.forEach((entry) => {
|
|
@@ -5,7 +5,7 @@ import { useEnvironment, useNetwork } from "@m4l/core";
|
|
|
5
5
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { I as Image } from "../Image/Image.js";
|
|
8
|
-
import { L as LanguagePopoverRootStyled,
|
|
8
|
+
import { L as LanguagePopoverRootStyled, P as PaperStyled, I as ImageStyled } from "./slots/LanguagePopoverSlots.js";
|
|
9
9
|
import { L as LANGUAGE_POPOVER_KEY_COMPONENT } from "./constants.js";
|
|
10
10
|
import { L as LanguagePopoverSlots } from "./slots/LanguagePopoverEnum.js";
|
|
11
11
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -8,8 +8,8 @@ import clsx from "clsx";
|
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
9
9
|
import { useRef, useState, useEffect } from "react";
|
|
10
10
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { L as LoadingErrorSlots } from "./slots/LoadingErrorEnum.js";
|
|
12
11
|
import { T as Typography } from "../mui_extended/Typography/Typography.js";
|
|
12
|
+
import { L as LoadingErrorSlots } from "./slots/LoadingErrorEnum.js";
|
|
13
13
|
import { B as Button } from "../mui_extended/Button/Button.js";
|
|
14
14
|
const LoadingError = (props) => {
|
|
15
15
|
const { status, action, title, description, recommendation, introMessage, errorIcon, className, dataTestId, size = "medium" } = props;
|
|
@@ -2,8 +2,8 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { L as LOADING_ERROR_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { L as LoadingErrorSlots } from "./LoadingErrorEnum.js";
|
|
4
4
|
import { l as loadingErrorStyles } from "../LoadingError.styles.js";
|
|
5
|
-
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
5
|
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
|
+
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
7
|
import { I as Image } from "../../Image/Image.js";
|
|
8
8
|
const LoadingErrorRootStyled = styled("div", {
|
|
9
9
|
name: LOADING_ERROR_KEY_COMPONENT,
|
|
@@ -4,7 +4,7 @@ import { unstable_HistoryRouter } from "react-router-dom";
|
|
|
4
4
|
import { createBrowserHistory } from "history";
|
|
5
5
|
import EventEmitter from "eventemitter3";
|
|
6
6
|
import NProgress from "nprogress";
|
|
7
|
-
import { LocalesProvider, getLocaleFromNetwork
|
|
7
|
+
import { DeviceTypeProvider, LocalesProvider, getLocaleFromNetwork } from "@m4l/graphics";
|
|
8
8
|
import { EnvironmentProvider, HostToolsProvider, NetworkProvider, axiosOperation, AuthProvider } from "@m4l/core";
|
|
9
9
|
import { A as AppearanceComponentProvider } from "../../contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
10
10
|
import { c as createToaster } from "../ToastContainer/helpers/toaster.js";
|
|
@@ -103,7 +103,7 @@ function MFIsolationApp(props) {
|
|
|
103
103
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
104
104
|
[]
|
|
105
105
|
);
|
|
106
|
-
return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(
|
|
106
|
+
return /* @__PURE__ */ jsx(EnvironmentProvider, { ...environment, children: /* @__PURE__ */ jsx(HostToolsProvider, { ...hostTools, children: /* @__PURE__ */ jsx(NetworkProvider, { axiosOperation, children: /* @__PURE__ */ jsx(unstable_HistoryRouter, { history, children: /* @__PURE__ */ jsx(DeviceTypeProvider, { forcedDeviceType, children: /* @__PURE__ */ jsx(AuthProvider, { children: /* @__PURE__ */ jsx(MFAuthApp, { user, pwd, children: /* @__PURE__ */ jsx(LocalesProvider, { isMicroFrontEnd: false, getLocaleFromNetwork, children: /* @__PURE__ */ jsx(
|
|
107
107
|
BaseModule,
|
|
108
108
|
{
|
|
109
109
|
moduleId,
|
|
@@ -3,7 +3,7 @@ import { useEffect } from "react";
|
|
|
3
3
|
import { format } from "date-fns";
|
|
4
4
|
import { useAuth, DomainCountryProvider } from "@m4l/core";
|
|
5
5
|
import { HostThemeProvider, FormatterProvider } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { fnComponentsOverrides, getUserThemeOptions } from "@m4l/styles";
|
|
7
7
|
function MFAuthApp(props) {
|
|
8
8
|
const { children, user, pwd } = props;
|
|
9
9
|
const { isAuthenticated, isInitialized, login, user: authUser } = useAuth();
|
|
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
4
4
|
import { W as WrapperNoItemSelectedStyled, N as NoItemSelectedContainer, I as ImgStyled, a as WrapperTpography, T as TypographyStyledTitle, b as TypographyStyledDetail, L as LabelDetail } from "./slots/NoItemSelectedSlots.js";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { c as classNoItemSelected, N as NO_ITEM_SELECT_KEY_COMPONENT } from "./constant.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { N as NoItemSelectedSlots } from "./slots/NoItemSelectedEnum.js";
|
|
9
9
|
import { D as DICTIONARY } from "./dictionary.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as isNumber, c as clampStepwise } from "../../utils.js";
|
|
2
2
|
import { N as NumberInputActionTypes } from "./NumberInputActions.js";
|
|
3
3
|
function getClampedValues(rawValue, context) {
|
|
4
4
|
const { min, max, step, withDecimal } = context;
|
|
@@ -7,8 +7,8 @@ import { i as isNumber } from "../../utils.js";
|
|
|
7
7
|
import { N as NUMBER_INPUT_KEY_COMPONENT } from "../../constants.js";
|
|
8
8
|
import { N as NumberInputActionTypes } from "./NumberInputActions.js";
|
|
9
9
|
import { n as numberInputReducer } from "./NumberInputReducer.js";
|
|
10
|
-
const STEP_KEYS = ["ArrowUp", "ArrowDown", "PageUp", "PageDown"
|
|
11
|
-
const
|
|
10
|
+
const STEP_KEYS = ["ArrowUp", "ArrowDown", "PageUp", "PageDown"];
|
|
11
|
+
const PREVENT_DEFAULT_KEYS = [...STEP_KEYS, "Home", "End"];
|
|
12
12
|
function getInputValueAsString(v) {
|
|
13
13
|
return v ? String(v.trim()) : String(v);
|
|
14
14
|
}
|
|
@@ -56,9 +56,11 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
59
60
|
case "numberInput:inputChange":
|
|
60
61
|
onChange?.(event, fieldValue);
|
|
61
62
|
break;
|
|
63
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
62
64
|
case "numberInput:clamp":
|
|
63
65
|
onChange?.(event, fieldValue);
|
|
64
66
|
break;
|
|
@@ -187,7 +189,7 @@ const useNumberInput = (parameters) => {
|
|
|
187
189
|
if (event.defaultMuiPrevented || event.defaultPrevented) {
|
|
188
190
|
return;
|
|
189
191
|
}
|
|
190
|
-
if (
|
|
192
|
+
if (PREVENT_DEFAULT_KEYS.includes(event.key)) {
|
|
191
193
|
event.preventDefault();
|
|
192
194
|
}
|
|
193
195
|
switch (event.key) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDataGridComponentsDictionary } from "../DataGrid/dictionary.js";
|
|
2
|
-
import {
|
|
2
|
+
import { g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/dictionary.js";
|
|
3
3
|
function getObjectLogsComponentsDictionary() {
|
|
4
4
|
return ["object_logs"].concat(getDataGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
5
5
|
}
|
|
@@ -25,14 +25,6 @@ const pagerStyles = {
|
|
|
25
25
|
height: theme.vars.size.baseSpacings.sp8
|
|
26
26
|
}
|
|
27
27
|
}),
|
|
28
|
-
/**
|
|
29
|
-
* Rows Per Page Container Styles
|
|
30
|
-
*/
|
|
31
|
-
rowsPerPageContainer: () => ({
|
|
32
|
-
display: "flex",
|
|
33
|
-
flexDirection: "row",
|
|
34
|
-
alignItems: "center"
|
|
35
|
-
}),
|
|
36
28
|
/**
|
|
37
29
|
* Label Select Container Styles
|
|
38
30
|
*/
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
const PAGER_DICTIONARY = {
|
|
2
2
|
rows_per_page: "pager.rows_per_page",
|
|
3
|
-
first: "pager.first",
|
|
4
|
-
previous: "pager.previous",
|
|
5
|
-
before: "pager.before",
|
|
6
|
-
last: "pager.last",
|
|
7
3
|
of: "pager.of",
|
|
8
4
|
page: "pager.page",
|
|
9
5
|
no_records: "pager.no_records",
|
|
10
|
-
total_rows: "pager.total_rows",
|
|
11
6
|
rows: "pager.rows"
|
|
12
7
|
};
|
|
13
8
|
function getPagerComponentsDictionary() {
|
|
@@ -3,7 +3,7 @@ import { c as classes } from "../../classes/index.js";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { createRef, useEffect } from "react";
|
|
5
5
|
import { Chart, registerables } from "chart.js";
|
|
6
|
-
import {
|
|
6
|
+
import { LineWithErrorBarsChart, ScatterWithErrorBarsController, PointWithErrorBar } from "chartjs-chart-error-bars";
|
|
7
7
|
import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
|
|
8
8
|
import { C as ChartNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
|
|
9
9
|
Chart.register(
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useId } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { T as TEST_PROPS_DATA, C as COMPONENT_PREFIX, P as PROPERTY_VALUE_KEY_COMPONENT } from "./constants.js";
|
|
6
|
+
import { a as getNameDataTestId, g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { P as PropertyValueRootStyled, N as NameStyled, V as ValueStyled } from "./slots/PropertyValueSlots.js";
|
|
8
8
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -56,7 +56,7 @@ function PropertyValue(props) {
|
|
|
56
56
|
};
|
|
57
57
|
const renderValue = () => {
|
|
58
58
|
if (typeof value === "string" || typeof value === "number" || value === null || value === void 0) {
|
|
59
|
-
return /* @__PURE__ */ jsx(Typography, { id: inputId, size: normalizedSize, variant: "body", children: getNullGuard(value) });
|
|
59
|
+
return /* @__PURE__ */ jsx(Typography, { id: inputId, size: normalizedSize, variant: "body", style: { wordBreak: "break-word" }, children: getNullGuard(value) });
|
|
60
60
|
}
|
|
61
61
|
if (React.isValidElement(value)) {
|
|
62
62
|
return React.cloneElement(value, { size: normalizedSize, id: inputId });
|
|
@@ -41,7 +41,7 @@ const propertyValueStyles = {
|
|
|
41
41
|
flexDirection: ownerState?.isForm ? "column" : "row",
|
|
42
42
|
justifyContent: ownerState?.isForm ? "space-between" : "left",
|
|
43
43
|
alignItems: "flex-start",
|
|
44
|
-
gap: theme.vars.size.baseSpacings["
|
|
44
|
+
gap: theme.vars.size.baseSpacings["sp1"],
|
|
45
45
|
color: theme.palette.text.primary,
|
|
46
46
|
paddingTop: !ownerState?.isForm ? theme.vars.size.baseSpacings.sp1 : void 0,
|
|
47
47
|
paddingBottom: !ownerState?.isForm ? theme.vars.size.baseSpacings.sp1 : void 0,
|
|
@@ -68,7 +68,8 @@ const propertyValueStyles = {
|
|
|
68
68
|
width: ownerState?.semanticWidth ? "auto" : "200px",
|
|
69
69
|
fontSize: theme.typography.body2.fontSize,
|
|
70
70
|
color: theme.palette.text.primary,
|
|
71
|
-
gap: theme.vars.size.baseSpacings["sp1"]
|
|
71
|
+
gap: theme.vars.size.baseSpacings["sp1"],
|
|
72
|
+
overflow: "hidden"
|
|
72
73
|
}),
|
|
73
74
|
/**
|
|
74
75
|
* Value Styles (Form and No Form Combined)
|
|
@@ -77,6 +78,7 @@ const propertyValueStyles = {
|
|
|
77
78
|
width: "100%",
|
|
78
79
|
display: "flex",
|
|
79
80
|
justifyContent: "flex-start",
|
|
81
|
+
overflow: "hidden",
|
|
80
82
|
height: ownerState?.valueHeight ? ownerState.valueHeight : "auto",
|
|
81
83
|
...ownerState?.isForm && {
|
|
82
84
|
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
@@ -82,8 +82,6 @@ export interface PropertyValueProps extends PropertyProps, ValueProps, Omit<Labe
|
|
|
82
82
|
* Propiedad de tamaño para el componente `PropertyValue`.
|
|
83
83
|
*/
|
|
84
84
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
85
|
-
/** Propiedades adicionales que se pasarán al componente valor. */
|
|
86
|
-
inputProps?: Record<string, unknown>;
|
|
87
85
|
}
|
|
88
86
|
/**
|
|
89
87
|
* Estado del propietario para el componente `PropertyValue`, utilizado para personalizar estilos y comportamientos.
|
|
@@ -4,7 +4,7 @@ import clsx from "clsx";
|
|
|
4
4
|
import { Box } from "@mui/material";
|
|
5
5
|
import { useIsMobile } from "@m4l/graphics";
|
|
6
6
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
|
-
import {
|
|
7
|
+
import { S as SCROLL_KEY_COMPONENT, c as classScrollRoot } from "./constants.js";
|
|
8
8
|
import { R as RootScrollBar, S as SimpleBarStyled } from "./slots/ScrollBarSlots.js";
|
|
9
9
|
import { S as ScrollBarSlots } from "./slots/ScrollBarEnum.js";
|
|
10
10
|
function ScrollBar(props) {
|
|
@@ -37,11 +37,11 @@ var ContainerMenuItemsMainSlots = /* @__PURE__ */ ((ContainerMenuItemsMainSlots2
|
|
|
37
37
|
return ContainerMenuItemsMainSlots2;
|
|
38
38
|
})(ContainerMenuItemsMainSlots || {});
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
ContentComponentSlots as C,
|
|
41
41
|
HeaderSidebarSlots as H,
|
|
42
42
|
SideBarDesktopSlots as S,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
SideBarMobileSlots as a,
|
|
44
|
+
SideBarFooterSlots as b,
|
|
45
|
+
ContentGroupsSlots as c,
|
|
46
46
|
ContainerMenuItemsMainSlots as d
|
|
47
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { S as SideBarDesktopSlots,
|
|
2
|
+
import { S as SideBarDesktopSlots, a as SideBarMobileSlots, C as ContentComponentSlots, b as SideBarFooterSlots, H as HeaderSidebarSlots, c as ContentGroupsSlots, d as ContainerMenuItemsMainSlots } from "./SideBarEnum.js";
|
|
3
3
|
import { S as SIDEBAR_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { s as sideBarStyles } from "../styles.js";
|
|
5
5
|
const ContainerDesktopRootStyled = styled("section", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as getHeightSizeStyles } from "../../../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
-
import {
|
|
2
|
+
import { I as ITEM_ACTIVE, b as ITEM_IN_TREE_ACTIVE } from "../../../../constants.js";
|
|
3
3
|
const containerMenuItemsMainStyles = {
|
|
4
4
|
/**
|
|
5
5
|
* Style aplicado al contenedor de los items del menú
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
3
|
-
import {
|
|
3
|
+
import { D as DEFAULT_CLOSE_TIME, T as TOAST_KEY_COMPONENT } from "./constants.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { ModuleSkeletonProvider } from "@m4l/core";
|
|
6
6
|
import "react-toastify/dist/ReactToastify.min.css";
|
|
@@ -2,9 +2,9 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { W as WINDOW_BASE_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { W as WindowBaseSlots } from "./WindowBaseEnum.js";
|
|
4
4
|
import { w as windowBaseStyles } from "../WindowBase.styles.js";
|
|
5
|
+
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
5
6
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
7
|
import { M as MenuActions } from "../../MenuActions/MenuActions.js";
|
|
7
|
-
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
8
8
|
import { I as Icon } from "../../Icon/Icon.js";
|
|
9
9
|
const WindowBaseStyled = styled("div", {
|
|
10
10
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
@@ -15,9 +15,9 @@ import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoo
|
|
|
15
15
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
16
16
|
import { S as ScrollBar } from "../../../ScrollBar/ScrollBar.js";
|
|
17
17
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
18
|
-
import { A as AreasAdminSlots } from "./slots/AreasAdminEnum.js";
|
|
19
18
|
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
20
19
|
import { M as MenuActions } from "../../../MenuActions/MenuActions.js";
|
|
20
|
+
import { A as AreasAdminSlots } from "./slots/AreasAdminEnum.js";
|
|
21
21
|
const AreasAdmin = (props) => {
|
|
22
22
|
const {
|
|
23
23
|
color = "primary",
|
|
@@ -4,7 +4,7 @@ import { u as useAreasStore } from "../../hooks/useAreas/index.js";
|
|
|
4
4
|
import { A as AreaMemonizedWindowModal } from "./subcomponents/Area/subcomponents/WindowModal/WindowModal.js";
|
|
5
5
|
import { shallow } from "zustand/shallow";
|
|
6
6
|
import { L as LoadingError } from "../../../LoadingError/LoadingError.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as getNameDataTestId, g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
8
8
|
import { A as AREAS_VIEWER_CLASS_NAME } from "../../constants.js";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
10
10
|
import { A as AreasViewerRootStyled } from "./slots/AreasViewerSlots.js";
|
|
@@ -4,7 +4,7 @@ import { W as Window } from "../Window/Window.js";
|
|
|
4
4
|
import { u as useAreasStore } from "../../../../../../hooks/useAreas/index.js";
|
|
5
5
|
import { a as areasViewerClasses } from "../../../../classes/index.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import {
|
|
7
|
+
import { P as PADDING_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, R as RESPONSIVE_ROW_HEIGHTS, a as RESPONSIVE_COLAPSED_HEIGHTS } from "../../../../../../contexts/AreasContext/helpers/helper.js";
|
|
8
8
|
import { M as MemonizePopupsViewer } from "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { d as dragResizeWindowRNDClasses } from "../../../../../../../DragResizeWindowRND/classes/index.js";
|
|
@@ -192,23 +192,23 @@ function getSelectedAreaIdFromCookies(cookiesResponse) {
|
|
|
192
192
|
}
|
|
193
193
|
export {
|
|
194
194
|
COOKIE_WINDOW_SELECTED as C,
|
|
195
|
-
|
|
195
|
+
DEBOUCED_SAVE_TIME as D,
|
|
196
196
|
MARGIN_GRIDLAYOUT as M,
|
|
197
197
|
NORMALIZED_COLS as N,
|
|
198
198
|
PADDING_GRIDLAYOUT as P,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
RESPONSIVE_ROW_HEIGHTS as R,
|
|
200
|
+
RESPONSIVE_COLAPSED_HEIGHTS as a,
|
|
201
|
+
getDataFromResponse as b,
|
|
202
|
+
getParmsFromValue as c,
|
|
203
|
+
COOKIE_BREAKPOINT_LAYOUTS as d,
|
|
204
204
|
DEFAULT_WINDOW as e,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
COOKIE_WINDOWS as f,
|
|
206
|
+
getCookiesContainer as g,
|
|
207
|
+
deleteLayoutFromBreakPoints as h,
|
|
208
|
+
addArea as i,
|
|
209
|
+
DEFAULT_AREA as j,
|
|
210
|
+
getSelectedAreaIdFromCookies as k,
|
|
211
|
+
COOKIE_AREAS_ADMIN_CONTAINER_ID as l,
|
|
212
|
+
COOKIE_AREAS_ADMIN_ID as m,
|
|
213
213
|
setColapsedLayoutBreakPoints as s
|
|
214
214
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createStore } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import { b as
|
|
4
|
+
import { g as getCookiesContainer, b as getDataFromResponse, c as getParmsFromValue, s as setColapsedLayoutBreakPoints, d as COOKIE_BREAKPOINT_LAYOUTS, D as DEBOUCED_SAVE_TIME, e as DEFAULT_WINDOW, M as MARGIN_GRIDLAYOUT, f as COOKIE_WINDOWS, h as deleteLayoutFromBreakPoints, R as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, N as NORMALIZED_COLS, i as addArea, j as DEFAULT_AREA, k as getSelectedAreaIdFromCookies, C as COOKIE_WINDOW_SELECTED, l as COOKIE_AREAS_ADMIN_CONTAINER_ID, m as COOKIE_AREAS_ADMIN_ID } from "./helpers/helper.js";
|
|
5
5
|
import { c as createDynamicMFStore } from "../../../WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
6
6
|
import cloneDeep from "lodash-es/cloneDeep";
|
|
7
7
|
import debounce from "lodash-es/debounce";
|
|
8
8
|
import { g as generateModuleCount } from "./helpers/generateModuleCount.js";
|
|
9
9
|
import { a as AREAS_STORE_ID } from "../../constants.js";
|
|
10
10
|
import { h as helperSelectLayout } from "./helpers/selectLayout.js";
|
|
11
|
-
import {
|
|
12
|
-
import { d as addLayoutItemToBreakPoints, e as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
11
|
+
import { d as deleteCookie, s as setCookie, g as getCookie } from "../../../../helpers/cookies/cookies.js";
|
|
13
12
|
import { k as isEqualLayouts } from "../../../GridLayout/utils.js";
|
|
13
|
+
import { d as cloneLayouts, e as addLayoutItemToBreakPoints } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
14
14
|
const createDevtools = (immerMiddlewere, config) => {
|
|
15
15
|
const { enabled = false } = config;
|
|
16
16
|
if (enabled && process.env.NODE_ENV === "development") {
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -11,
|
|
445
|
+
bottom: -11
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const ICONS = {
|
|
2
|
-
CLOSE: "close.svg",
|
|
3
2
|
MAXIMIZE: "maximize.svg",
|
|
4
3
|
NORMALIZE: "normalize.svg",
|
|
5
4
|
COLAPSE: "colapse.svg",
|
|
@@ -8,16 +7,9 @@ const ICONS = {
|
|
|
8
7
|
SAVE_COOKIES: "save_cookies.svg",
|
|
9
8
|
DELETE_AREA: "delete_area.svg",
|
|
10
9
|
ADD_AREA: "add_area.svg",
|
|
11
|
-
LAYERS: "layers.svg",
|
|
12
|
-
NAVIGATE_ERROR: "navegate_error.svg",
|
|
13
10
|
EDIT_AREA: "edit.svg",
|
|
14
11
|
CHECK: "checkmarkInCircle.svg",
|
|
15
|
-
RESIZE: "controlSize.svg",
|
|
16
|
-
VERSION: "version.svg",
|
|
17
|
-
SHOW_OPTIONS: "showMoreVertical.svg",
|
|
18
12
|
CHEVRON_DOWN: "chevronDown.svg",
|
|
19
|
-
MODULE: "module.svg",
|
|
20
|
-
POPUP: "popup.svg",
|
|
21
13
|
PENDING_ORDER: "pending_order.svg",
|
|
22
14
|
MORE_VERTICAL: "more_vertical.svg"
|
|
23
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClass, generateUtilityClasses } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(componentName, ["root", "ImageLogo"]);
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export declare const SplitLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const SplitLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState: Partial<import('../../React-resizable-panels/types').SplitLayoutOwnerState> & Record<string, unknown>;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const SplitMasterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../../React-resizable-panels/types').SplitLayoutOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const SplitDetailStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
8
|
+
ownerState: Partial<import('../../React-resizable-panels/types').SplitLayoutOwnerState> & Record<string, unknown>;
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|