@m4l/components 9.17.1-beta-feature-731-m4l-components-code-editor.0 → 9.18.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/types.d.ts +0 -11
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
- package/components/CommonActions/index.d.ts +1 -0
- package/components/CommonActions/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
- package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
- package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
- package/components/DragResizeWindowRND/types.d.ts +3 -1
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +49 -49
- package/components/WindowBase/WindowBase.styles.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +37 -12
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
- package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
- package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
- package/components/areas/components/AreasAdmin/types.d.ts +9 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
- package/components/areas/components/AreasViewer/constants.d.ts +12 -0
- package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/constants.js +5 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +51 -48
- package/components/areas/contexts/AreasContext/store.d.ts +2 -3
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +397 -290
- package/components/areas/contexts/AreasContext/types.d.ts +109 -85
- package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +9 -6
- package/components/areas/hooks/useAreas/index.d.ts +2 -2
- package/components/areas/hooks/useAreas/index.js +4 -4
- package/components/areas/types.d.ts +173 -47
- package/components/areas/types.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.js +15 -0
- package/components/extended/index.d.ts +0 -1
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +0 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/index.d.ts.map +1 -1
- package/hooks/useWindowCloseGuard/index.d.ts +18 -0
- package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
- package/hooks/useWindowCloseGuard/index.js +56 -0
- package/index.js +664 -675
- package/package.json +7 -10
- package/test/mocks/dictionary-mock.d.ts +2 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
- package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param objA Primer objeto a comparar.
|
|
4
|
-
* @param objB Segundo objeto a comparar.
|
|
5
|
-
* @returns Booleano que indica si los objetos son iguales superficialmente.
|
|
2
|
+
* Compare two area collections shallowly by array shape and area names.
|
|
6
3
|
*/
|
|
7
4
|
export declare function shallowAreas<T>(objA: T, objB: T): boolean;
|
|
8
5
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/helper.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/helper.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CA8BzD"}
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
import { AreaChipProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Props:
|
|
6
|
-
* - areaId: string - The ID of the area.
|
|
7
|
-
* - selected: boolean - Indicates if the chip is selected.
|
|
8
|
-
* - disabled: boolean - Indicates if the chip is disabled.
|
|
9
|
-
* - setAnchorMenuAreas: (element: HTMLElement) => void - Function to set the anchor element for the menu.
|
|
10
|
-
*
|
|
11
|
-
* Constants:
|
|
12
|
-
* - host_static_assets: string - The host for static assets.
|
|
13
|
-
* - environment_assets: string - The environment-specific assets.
|
|
14
|
-
* - deleteArea: (areaId: string) => void - Function to delete an area.
|
|
15
|
-
* - selectArea: (areaId: string) => void - Function to select an area.
|
|
16
|
-
* - editArea: (areaId: string, data: any) => void - Function to edit an area.
|
|
17
|
-
* - setFocus: (focus: boolean) => void - Function to set focus.
|
|
18
|
-
* - areaName: string - The name of the area.
|
|
19
|
-
* - listAreas: string[] - List of area IDs.
|
|
20
|
-
* - open: boolean - State to control the open/close state of the popover.
|
|
21
|
-
* - getLabel: (key: string) => string - Function to get a label from the dictionary.
|
|
22
|
-
* - isDesktop: boolean - Indicates if the current view is desktop.
|
|
23
|
-
* - anchorRef: React.RefObject<null> - Reference to the anchor element.
|
|
24
|
-
* - theme: Theme - The current theme.
|
|
25
|
-
* - initialValues: { inputEditArea: string } - Initial values for the form.
|
|
26
|
-
* - validationSchema: Yup.ObjectSchema - Validation schema for the form.
|
|
27
|
-
* - rippleRef: React.RefObject<any> - Reference to the ripple effect.
|
|
28
|
-
*
|
|
3
|
+
* Render one desktop area chip together with its edit/delete affordances.
|
|
4
|
+
* The `disabled` prop is currently used to block destructive delete actions when only one area remains.
|
|
29
5
|
*/
|
|
30
6
|
export declare const AreaChip: {
|
|
31
7
|
(props: AreaChipProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaChip.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqC,MAAM,SAAS,CAAC;AAgB3E
|
|
1
|
+
{"version":3,"file":"AreaChip.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqC,MAAM,SAAS,CAAC;AAgB3E;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAoL5C,CAAC"}
|
|
@@ -1,91 +1,92 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsxs as p, Fragment as H, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as L, useRef as y, useMemo as Y } from "react";
|
|
3
|
+
import * as B from "yup";
|
|
4
4
|
import { useAreasStore as d } from "../../../../hooks/useAreas/index.js";
|
|
5
|
-
import { Typography as
|
|
6
|
-
import { useIsMobile as
|
|
7
|
-
import { ChipActionsMobile as
|
|
8
|
-
import { shallow as
|
|
9
|
-
import { AreaChipRootStyled as
|
|
10
|
-
import { useComponentSize as
|
|
11
|
-
import { useModuleDictionary as
|
|
12
|
-
import { ICONS as
|
|
5
|
+
import { Typography as q } from "@m4l/base";
|
|
6
|
+
import { useIsMobile as K } from "@m4l/graphics";
|
|
7
|
+
import { ChipActionsMobile as U } from "./subcomponents/ChipActionsMobile/ChipActionsMobile.js";
|
|
8
|
+
import { shallow as I } from "zustand/shallow";
|
|
9
|
+
import { AreaChipRootStyled as G, AreaContainerChipEditButtonStyled as J, ChipAreasStyled as Q, MenuActionsChipStyled as W, EditAreaChipContainerStyled as X, EditAreaHeaderStyled as Z } from "../../slots/AreasAdminSlots.js";
|
|
10
|
+
import { useComponentSize as ee } from "../../../../../../hooks/useComponentSize/index.js";
|
|
11
|
+
import { useModuleDictionary as te, useEnvironment as oe } from "@m4l/core";
|
|
12
|
+
import { ICONS as A } from "../../../../icons.js";
|
|
13
13
|
import { getAreasDictionary as i, AREAS_DICCTIONARY as a } from "../../../../dictionary.js";
|
|
14
|
-
import { AREAS_ADMIN_KEY_COMPONENT as
|
|
15
|
-
import { getComponentClasses as
|
|
16
|
-
import { createValidationSchema as
|
|
17
|
-
import { AreasAdminSlots as
|
|
18
|
-
import { RHFormProvider as
|
|
19
|
-
import { RHFTextField as
|
|
20
|
-
import { ActionsContainer as
|
|
21
|
-
import { Popover as
|
|
22
|
-
import { ActionCancel as
|
|
23
|
-
import { ActionIntro as
|
|
24
|
-
const
|
|
14
|
+
import { AREAS_ADMIN_KEY_COMPONENT as re } from "../../constants.js";
|
|
15
|
+
import { getComponentClasses as ne } from "../../../../../../utils/getComponentSlotRoot.js";
|
|
16
|
+
import { createValidationSchema as ie, createValidationFullObject as ae, createValidationPartialObject as se } from "../../../../../hook-form/RHFormProvider/schema.js";
|
|
17
|
+
import { AreasAdminSlots as le } from "../../slots/AreasAdminEnum.js";
|
|
18
|
+
import { RHFormProvider as ce } from "../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
19
|
+
import { RHFTextField as me } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
20
|
+
import { ActionsContainer as pe } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
21
|
+
import { Popover as de } from "../../../../../extended/mui/Popover/Popover.js";
|
|
22
|
+
import { ActionCancel as Ae } from "../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
23
|
+
import { ActionIntro as ue } from "../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
24
|
+
const fe = (O) => {
|
|
25
25
|
const {
|
|
26
26
|
areaId: o,
|
|
27
27
|
selected: s,
|
|
28
|
-
|
|
29
|
-
setAnchorMenuAreas:
|
|
28
|
+
disabled: R,
|
|
29
|
+
setAnchorMenuAreas: u,
|
|
30
30
|
size: f,
|
|
31
|
-
color:
|
|
32
|
-
} =
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
},
|
|
31
|
+
color: v
|
|
32
|
+
} = O, { selectArea: h, editArea: $, deleteArea: M } = d((e) => e.areasActions), C = d((e) => e.hashAreas[o].name, I), z = d((e) => e.areasIds, I), [T, n] = L(!1), S = y(null), { currentSize: l } = ee(f), E = K(), { getLabel: r } = te(), { host_static_assets: c, environment_assets: m } = oe(), _ = !R && z.length > 1, w = (e) => {
|
|
33
|
+
_ && (e.stopPropagation(), M(o));
|
|
34
|
+
}, k = (e) => {
|
|
35
|
+
$(o, e.inputEditArea), n(!1);
|
|
36
|
+
}, D = (e) => {
|
|
37
37
|
e?.stopPropagation(), n(!0);
|
|
38
|
-
},
|
|
38
|
+
}, N = {
|
|
39
39
|
inputEditArea: C
|
|
40
|
-
},
|
|
41
|
-
() =>
|
|
42
|
-
inputEditArea:
|
|
40
|
+
}, P = Y(
|
|
41
|
+
() => ie(ae(se({
|
|
42
|
+
inputEditArea: B.string().required(
|
|
43
43
|
r(i(a.validation_edit_area))
|
|
44
44
|
)
|
|
45
45
|
}))),
|
|
46
46
|
[r]
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
47
|
+
), j = (e) => {
|
|
48
|
+
u && u(e.currentTarget), h(o);
|
|
49
|
+
}, b = y(null), F = (e) => {
|
|
50
|
+
b.current && b.current.stop(e);
|
|
51
51
|
}, g = {
|
|
52
52
|
isMobile: E,
|
|
53
|
-
color:
|
|
53
|
+
color: v,
|
|
54
54
|
size: l === "small" || l === "medium" ? l : "medium",
|
|
55
55
|
isAreaSelected: s
|
|
56
|
-
},
|
|
56
|
+
}, V = [
|
|
57
57
|
{
|
|
58
58
|
type: "menuItem",
|
|
59
|
-
startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${
|
|
59
|
+
startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${A.EDIT_AREA}`,
|
|
60
60
|
label: `${r(i(a.label_edit_area))}`,
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: D
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
type: "menuItem",
|
|
65
|
-
startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${
|
|
65
|
+
startIcon: `${c}/${m}/frontend/components/areas/assets/icons/${A.DELETE_AREA}`,
|
|
66
66
|
label: `${r(i(a.label_delete_area))}`,
|
|
67
|
-
onClick:
|
|
68
|
-
color: "error"
|
|
67
|
+
onClick: w,
|
|
68
|
+
color: "error",
|
|
69
|
+
disabled: !_
|
|
69
70
|
}
|
|
70
|
-
],
|
|
71
|
-
return /* @__PURE__ */ p(
|
|
71
|
+
], x = ne(re, le);
|
|
72
|
+
return /* @__PURE__ */ p(H, { children: [
|
|
72
73
|
/* @__PURE__ */ t(
|
|
73
|
-
|
|
74
|
+
G,
|
|
74
75
|
{
|
|
75
76
|
role: "presentation",
|
|
76
77
|
ref: S,
|
|
77
|
-
onMouseUp:
|
|
78
|
+
onMouseUp: F,
|
|
78
79
|
onClick: (e) => {
|
|
79
|
-
|
|
80
|
+
j(e);
|
|
80
81
|
},
|
|
81
82
|
children: E ? /* @__PURE__ */ t(
|
|
82
|
-
|
|
83
|
+
U,
|
|
83
84
|
{}
|
|
84
85
|
) : /* @__PURE__ */ t(
|
|
85
|
-
|
|
86
|
+
J,
|
|
86
87
|
{
|
|
87
88
|
children: /* @__PURE__ */ t(
|
|
88
|
-
|
|
89
|
+
Q,
|
|
89
90
|
{
|
|
90
91
|
opacity: !s,
|
|
91
92
|
color: s ? "primary" : "default",
|
|
@@ -94,15 +95,15 @@ const ue = (I) => {
|
|
|
94
95
|
size: f,
|
|
95
96
|
label: `${C}`,
|
|
96
97
|
endIcon: /* @__PURE__ */ t(
|
|
97
|
-
|
|
98
|
+
W,
|
|
98
99
|
{
|
|
99
|
-
className:
|
|
100
|
+
className: x.menuActionsChip,
|
|
100
101
|
ownerState: { ...g },
|
|
101
|
-
icon: `${c}/${m}/frontend/components/window_base/assets/icons/${
|
|
102
|
+
icon: `${c}/${m}/frontend/components/window_base/assets/icons/${A.MORE_VERTICAL}`,
|
|
102
103
|
arrowType: "no-arrow",
|
|
103
104
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
104
105
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
105
|
-
menuActions:
|
|
106
|
+
menuActions: V
|
|
106
107
|
}
|
|
107
108
|
)
|
|
108
109
|
}
|
|
@@ -112,17 +113,17 @@ const ue = (I) => {
|
|
|
112
113
|
}
|
|
113
114
|
),
|
|
114
115
|
/* @__PURE__ */ t(
|
|
115
|
-
|
|
116
|
+
X,
|
|
116
117
|
{
|
|
117
118
|
role: "presentation",
|
|
118
119
|
onClick: (e) => {
|
|
119
120
|
e.stopPropagation();
|
|
120
121
|
},
|
|
121
122
|
children: /* @__PURE__ */ t(
|
|
122
|
-
|
|
123
|
+
de,
|
|
123
124
|
{
|
|
124
125
|
arrowType: "top-center",
|
|
125
|
-
open:
|
|
126
|
+
open: T,
|
|
126
127
|
anchorEl: S.current,
|
|
127
128
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
128
129
|
transformOrigin: { vertical: "top", horizontal: "center" },
|
|
@@ -130,22 +131,22 @@ const ue = (I) => {
|
|
|
130
131
|
n(!1);
|
|
131
132
|
},
|
|
132
133
|
children: /* @__PURE__ */ p(
|
|
133
|
-
|
|
134
|
+
ce,
|
|
134
135
|
{
|
|
135
|
-
onSubmit:
|
|
136
|
-
values:
|
|
137
|
-
validationSchema:
|
|
136
|
+
onSubmit: k,
|
|
137
|
+
values: N,
|
|
138
|
+
validationSchema: P,
|
|
138
139
|
children: [
|
|
139
|
-
/* @__PURE__ */ t(
|
|
140
|
+
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(q, { children: r(i(a.label_edit_area)) }) }),
|
|
140
141
|
/* @__PURE__ */ t(
|
|
141
|
-
|
|
142
|
+
me,
|
|
142
143
|
{
|
|
143
144
|
name: "inputEditArea"
|
|
144
145
|
}
|
|
145
146
|
),
|
|
146
|
-
/* @__PURE__ */ p(
|
|
147
|
+
/* @__PURE__ */ p(pe, { children: [
|
|
147
148
|
/* @__PURE__ */ t(
|
|
148
|
-
|
|
149
|
+
Ae,
|
|
149
150
|
{
|
|
150
151
|
onClick: () => {
|
|
151
152
|
n(!1);
|
|
@@ -153,7 +154,7 @@ const ue = (I) => {
|
|
|
153
154
|
variant: "outlined"
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
|
-
/* @__PURE__ */ t(
|
|
157
|
+
/* @__PURE__ */ t(ue, {})
|
|
157
158
|
] })
|
|
158
159
|
]
|
|
159
160
|
}
|
|
@@ -164,7 +165,7 @@ const ue = (I) => {
|
|
|
164
165
|
)
|
|
165
166
|
] });
|
|
166
167
|
};
|
|
167
|
-
|
|
168
|
+
fe.displayName = "AreaButtons";
|
|
168
169
|
export {
|
|
169
|
-
|
|
170
|
+
fe as AreaChip
|
|
170
171
|
};
|
package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useAreasStore as o } from "../../../../hooks/useAreas/index.js";
|
|
3
3
|
import { shallow as l } from "zustand/shallow";
|
|
4
|
-
import { useModuleDictionary as
|
|
4
|
+
import { useModuleDictionary as C, useEnvironment as I } from "@m4l/core";
|
|
5
5
|
import { ICONS as m } from "../../../../icons.js";
|
|
6
|
-
import { useMemo as
|
|
7
|
-
import { getAreasDictionary as
|
|
6
|
+
import { useMemo as g } from "react";
|
|
7
|
+
import { getAreasDictionary as A, AREAS_DICCTIONARY as u } from "../../../../dictionary.js";
|
|
8
8
|
import { ChipMobile as S } from "./subcomponents/ChipMobile/ChipMobile.js";
|
|
9
|
-
import { AreaChipMobileRootStyled as
|
|
9
|
+
import { AreaChipMobileRootStyled as _, AddAreasMobileContainerStyled as y, MenuActionsAreaChipMobileStyled as $, ButtonAddAreaStyled as w } from "../../slots/AreasAdminSlots.js";
|
|
10
10
|
const L = () => {
|
|
11
11
|
const t = o(
|
|
12
|
-
(e) => e.areasIds.map((
|
|
12
|
+
(e) => e.areasIds.map((p) => ({ id: p, name: e.hashAreas[p].name })),
|
|
13
13
|
l
|
|
14
|
-
), { selectArea:
|
|
14
|
+
), { selectArea: h } = o((e) => e.areasActions), n = o((e) => e.currentAreaId, l), { addArea: f } = o((e) => e.areasActions, l), { getLabel: c } = C(), a = t.find((e) => e.id === n), { host_static_assets: i, environment_assets: s } = I(), d = g(() => t.length === 0 ? [
|
|
15
15
|
{
|
|
16
16
|
type: "menuItem",
|
|
17
17
|
startIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.CHECK}`,
|
|
18
18
|
onClick: () => {
|
|
19
19
|
},
|
|
20
|
-
label:
|
|
20
|
+
label: c(A(u.label_no_areas_available)),
|
|
21
21
|
disabled: !0
|
|
22
22
|
}
|
|
23
23
|
] : t.map((e) => ({
|
|
24
24
|
type: "menuItem",
|
|
25
|
-
onClick: () =>
|
|
25
|
+
onClick: () => h(e.id),
|
|
26
26
|
label: e.name,
|
|
27
27
|
selected: e.id === n
|
|
28
28
|
})), [t, n]);
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return /* @__PURE__ */ b(_, { "data-testid": "area-chip-mobile", ownerState: {}, children: [
|
|
30
|
+
d.length >= 0 ? /* @__PURE__ */ r(y, { ownerState: {}, children: /* @__PURE__ */ r(
|
|
31
|
+
$,
|
|
32
32
|
{
|
|
33
33
|
ownerState: {},
|
|
34
34
|
urlIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.CHEVRON_DOWN}`,
|
|
@@ -37,18 +37,18 @@ const L = () => {
|
|
|
37
37
|
marginLeft: "14px!important",
|
|
38
38
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
39
39
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
40
|
-
menuActions:
|
|
40
|
+
menuActions: d,
|
|
41
41
|
endListElement: /* @__PURE__ */ r(
|
|
42
|
-
|
|
42
|
+
w,
|
|
43
43
|
{
|
|
44
44
|
color: "primary",
|
|
45
45
|
ownerState: {},
|
|
46
46
|
onClick: () => {
|
|
47
|
-
|
|
47
|
+
f();
|
|
48
48
|
},
|
|
49
49
|
variant: "contained",
|
|
50
50
|
endIcon: `${i}/${s}/frontend/components/areas/assets/icons/${m.ADD_AREA}`,
|
|
51
|
-
label:
|
|
51
|
+
label: c(A(u.area_add_new))
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
}
|
|
@@ -58,7 +58,7 @@ const L = () => {
|
|
|
58
58
|
{
|
|
59
59
|
areaId: a.id,
|
|
60
60
|
selected: !0,
|
|
61
|
-
disabled:
|
|
61
|
+
disabled: t.length === 1
|
|
62
62
|
},
|
|
63
63
|
a.id
|
|
64
64
|
) : null
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
import { AreaChipProps } from '../../../AreaChip/types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Props:
|
|
6
|
-
* - areaId: string - The ID of the area.
|
|
7
|
-
* - selected: boolean - Indicates if the chip is selected.
|
|
8
|
-
* - disabled: boolean - Indicates if the chip is disabled.
|
|
9
|
-
* - setAnchorMenuAreas: (element: HTMLElement) => void - Function to set the anchor element for the menu.
|
|
10
|
-
*
|
|
11
|
-
* Constants:
|
|
12
|
-
* - host_static_assets: string - The host for static assets.
|
|
13
|
-
* - environment_assets: string - The environment-specific assets.
|
|
14
|
-
* - deleteArea: (areaId: string) => void - Function to delete an area.
|
|
15
|
-
* - selectArea: (areaId: string) => void - Function to select an area.
|
|
16
|
-
* - editArea: (areaId: string, data: any) => void - Function to edit an area.
|
|
17
|
-
* - areaName: string - The name of the area.
|
|
18
|
-
* - listAreas: string[] - List of area IDs.
|
|
19
|
-
* - open: boolean - State to control the open/close state of the popover.
|
|
20
|
-
* - getLabel: (key: string) => string - Function to get a label from the dictionary.
|
|
21
|
-
* - isDesktop: boolean - Indicates if the current view is desktop.
|
|
22
|
-
* - anchorRef: React.RefObject<null> - Reference to the anchor element.
|
|
23
|
-
* - theme: Theme - The current theme.
|
|
24
|
-
* - initialValues: { inputEditArea: string } - Initial values for the form.
|
|
25
|
-
* - validationSchema: Yup.ObjectSchema - Validation schema for the form.
|
|
26
|
-
* - rippleRef: React.RefObject<any> - Reference to the ripple effect.
|
|
3
|
+
* Render the mobile area chip together with its edit/delete affordances.
|
|
4
|
+
* The `disabled` prop is currently used to block destructive delete actions when only one area remains.
|
|
27
5
|
*/
|
|
28
6
|
export declare const ChipMobile: {
|
|
29
7
|
(props: AreaChipProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipMobile.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAgB,MAAM,yBAAyB,CAAC;AAkBtE
|
|
1
|
+
{"version":3,"file":"ChipMobile.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/components/src/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAgB,MAAM,yBAAyB,CAAC;AAkBtE;;;GAGG;AACH,eAAO,MAAM,UAAU;YAAW,aAAa;;CAqJ9C,CAAC"}
|
|
@@ -1,86 +1,87 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useEnvironment as w, useModuleDictionary as
|
|
3
|
-
import { useState as
|
|
4
|
-
import * as
|
|
5
|
-
import { shallow as
|
|
6
|
-
import
|
|
2
|
+
import { useEnvironment as w, useModuleDictionary as N } from "@m4l/core";
|
|
3
|
+
import { useState as V, useRef as b, useMemo as j } from "react";
|
|
4
|
+
import * as z from "yup";
|
|
5
|
+
import { shallow as E } from "zustand/shallow";
|
|
6
|
+
import F from "@mui/material/ButtonBase/TouchRipple";
|
|
7
7
|
import { useAreasStore as m } from "../../../../../../hooks/useAreas/index.js";
|
|
8
8
|
import { getAreasDictionary as a, AREAS_DICCTIONARY as s } from "../../../../../../dictionary.js";
|
|
9
|
-
import { Typography as
|
|
9
|
+
import { Typography as L } from "@m4l/base";
|
|
10
10
|
import { ICONS as d } from "../../../../../../icons.js";
|
|
11
|
-
import { ChipActionsMobile as
|
|
12
|
-
import { ChipMobileRootStyled as
|
|
13
|
-
import { RHFormProvider as
|
|
14
|
-
import { ActionsContainer as
|
|
15
|
-
import { createValidationSchema as
|
|
16
|
-
import { MenuActions as
|
|
17
|
-
import { Popover as
|
|
18
|
-
import { RHFTextField as
|
|
19
|
-
import { ActionCancel as
|
|
20
|
-
import { ActionIntro as
|
|
21
|
-
const
|
|
22
|
-
const { areaId: r, selected:
|
|
23
|
-
|
|
24
|
-
}, I = (e) => {
|
|
25
|
-
R(r, e.inputEditArea), n(!1);
|
|
11
|
+
import { ChipActionsMobile as B } from "../../../AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js";
|
|
12
|
+
import { ChipMobileRootStyled as H, ChipMobileContentStyled as Y, NameChipMobileStyled as q, EditAreaChipMobileContainerStyled as U } from "../../../../slots/AreasAdminSlots.js";
|
|
13
|
+
import { RHFormProvider as G } from "../../../../../../../hook-form/RHFormProvider/RHFormProvider.js";
|
|
14
|
+
import { ActionsContainer as J } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
15
|
+
import { createValidationSchema as K, createValidationFullObject as Q, createValidationPartialObject as W } from "../../../../../../../hook-form/RHFormProvider/schema.js";
|
|
16
|
+
import { MenuActions as X } from "../../../../../../../MenuActions/MenuActions.js";
|
|
17
|
+
import { Popover as Z } from "../../../../../../../extended/mui/Popover/Popover.js";
|
|
18
|
+
import { RHFTextField as ee } from "../../../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
19
|
+
import { ActionCancel as oe } from "../../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
20
|
+
import { ActionIntro as te } from "../../../../../../../CommonActions/components/ActionIntro/ActionIntro.js";
|
|
21
|
+
const re = F, ne = (g) => {
|
|
22
|
+
const { areaId: r, selected: _, disabled: h, setAnchorMenuAreas: f } = g, { host_static_assets: l, environment_assets: c } = w(), { deleteArea: v, selectArea: R, editArea: y } = m((e) => e.areasActions), u = m((e) => e.hashAreas[r].name, E), M = m((e) => e.areasIds, E), [S, n] = V(!1), { getLabel: t } = N(), A = b(null), C = !h && M.length > 1, I = (e) => {
|
|
23
|
+
C && (e.stopPropagation(), v(r));
|
|
26
24
|
}, O = (e) => {
|
|
25
|
+
y(r, e.inputEditArea), n(!1);
|
|
26
|
+
}, T = (e) => {
|
|
27
27
|
e?.stopPropagation(), n(!0);
|
|
28
|
-
},
|
|
29
|
-
inputEditArea:
|
|
30
|
-
},
|
|
31
|
-
() =>
|
|
32
|
-
inputEditArea:
|
|
28
|
+
}, $ = {
|
|
29
|
+
inputEditArea: u
|
|
30
|
+
}, x = j(
|
|
31
|
+
() => K(Q(W({
|
|
32
|
+
inputEditArea: z.string().required(
|
|
33
33
|
t(a(s.validation_edit_area))
|
|
34
34
|
)
|
|
35
35
|
}))),
|
|
36
36
|
[t]
|
|
37
|
-
),
|
|
38
|
-
|
|
39
|
-
}, p =
|
|
37
|
+
), P = (e) => {
|
|
38
|
+
f && f(e.currentTarget), R(r);
|
|
39
|
+
}, p = b(null), k = (e) => {
|
|
40
40
|
p.current && p.current.stop(e);
|
|
41
|
-
},
|
|
41
|
+
}, D = [
|
|
42
42
|
{
|
|
43
43
|
type: "menuItem",
|
|
44
44
|
startIcon: `${l}/${c}/frontend/components/areas/assets/icons/${d.EDIT_AREA}`,
|
|
45
45
|
label: `${t(a(s.label_edit_area))}`,
|
|
46
|
-
onClick:
|
|
46
|
+
onClick: T
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
type: "menuItem",
|
|
50
50
|
startIcon: `${l}/${c}/frontend/components/areas/assets/icons/${d.DELETE_AREA}`,
|
|
51
51
|
label: `${t(a(s.label_delete_area))}`,
|
|
52
|
-
onClick:
|
|
53
|
-
color: "error"
|
|
52
|
+
onClick: I,
|
|
53
|
+
color: "error",
|
|
54
|
+
disabled: !C
|
|
54
55
|
}
|
|
55
56
|
];
|
|
56
|
-
return /* @__PURE__ */ i(
|
|
57
|
+
return /* @__PURE__ */ i(H, { selected: _, disabled: h, children: [
|
|
57
58
|
/* @__PURE__ */ i(
|
|
58
|
-
|
|
59
|
+
Y,
|
|
59
60
|
{
|
|
60
61
|
role: "presentation",
|
|
61
|
-
ref:
|
|
62
|
-
onMouseUp:
|
|
62
|
+
ref: A,
|
|
63
|
+
onMouseUp: k,
|
|
63
64
|
onClick: (e) => {
|
|
64
|
-
|
|
65
|
+
P(e);
|
|
65
66
|
},
|
|
66
67
|
children: [
|
|
67
|
-
/* @__PURE__ */ o(
|
|
68
|
-
/* @__PURE__ */ o(
|
|
68
|
+
/* @__PURE__ */ o(re, { ref: p, center: !1 }),
|
|
69
|
+
/* @__PURE__ */ o(q, { variant: "bodyStandard", children: `${u}` }),
|
|
69
70
|
/* @__PURE__ */ o(
|
|
70
|
-
|
|
71
|
+
X,
|
|
71
72
|
{
|
|
72
73
|
icon: `${l}/${c}/frontend/components/window_base/assets/icons/${d.MORE_VERTICAL}`,
|
|
73
74
|
arrowType: "no-arrow",
|
|
74
75
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
75
76
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
76
|
-
menuActions:
|
|
77
|
+
menuActions: D
|
|
77
78
|
}
|
|
78
79
|
)
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
82
|
),
|
|
82
83
|
/* @__PURE__ */ o(
|
|
83
|
-
|
|
84
|
+
B,
|
|
84
85
|
{}
|
|
85
86
|
),
|
|
86
87
|
/* @__PURE__ */ o(
|
|
@@ -91,11 +92,11 @@ const te = z, re = (b) => {
|
|
|
91
92
|
e.stopPropagation();
|
|
92
93
|
},
|
|
93
94
|
children: /* @__PURE__ */ o(
|
|
94
|
-
|
|
95
|
+
Z,
|
|
95
96
|
{
|
|
96
97
|
arrowType: "top-center",
|
|
97
|
-
open:
|
|
98
|
-
anchorEl:
|
|
98
|
+
open: S,
|
|
99
|
+
anchorEl: A.current,
|
|
99
100
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
100
101
|
transformOrigin: { vertical: "top", horizontal: "center" },
|
|
101
102
|
onClose: () => {
|
|
@@ -107,23 +108,23 @@ const te = z, re = (b) => {
|
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
children: /* @__PURE__ */ i(
|
|
110
|
-
|
|
111
|
+
G,
|
|
111
112
|
{
|
|
112
|
-
onSubmit:
|
|
113
|
-
values:
|
|
114
|
-
validationSchema:
|
|
113
|
+
onSubmit: O,
|
|
114
|
+
values: $,
|
|
115
|
+
validationSchema: x,
|
|
115
116
|
children: [
|
|
116
|
-
/* @__PURE__ */ o(
|
|
117
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(L, { children: t(a(s.label_edit_area)) }) }),
|
|
117
118
|
/* @__PURE__ */ o(
|
|
118
|
-
|
|
119
|
+
ee,
|
|
119
120
|
{
|
|
120
121
|
name: "inputEditArea",
|
|
121
122
|
sx: { mt: "20px" }
|
|
122
123
|
}
|
|
123
124
|
),
|
|
124
|
-
/* @__PURE__ */ i(
|
|
125
|
+
/* @__PURE__ */ i(J, { children: [
|
|
125
126
|
/* @__PURE__ */ o(
|
|
126
|
-
|
|
127
|
+
oe,
|
|
127
128
|
{
|
|
128
129
|
onClick: () => {
|
|
129
130
|
n(!1);
|
|
@@ -131,7 +132,7 @@ const te = z, re = (b) => {
|
|
|
131
132
|
variant: "outlined"
|
|
132
133
|
}
|
|
133
134
|
),
|
|
134
|
-
/* @__PURE__ */ o(
|
|
135
|
+
/* @__PURE__ */ o(te, {})
|
|
135
136
|
] })
|
|
136
137
|
]
|
|
137
138
|
}
|
|
@@ -142,7 +143,7 @@ const te = z, re = (b) => {
|
|
|
142
143
|
)
|
|
143
144
|
] });
|
|
144
145
|
};
|
|
145
|
-
|
|
146
|
+
ne.displayName = "AreaButtons";
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
ne as ChipMobile
|
|
148
149
|
};
|