@m4l/components 8.2.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.d.ts +11 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.integration.test.d.ts +1 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.js +23 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.test.d.ts +1 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.d.ts +2 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +26 -0
- package/components/CommonActions/components/ActionsContainer/constans.d.ts +8 -0
- package/components/CommonActions/components/ActionsContainer/constans.js +4 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.d.ts +3 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.js +7 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +4 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.js +12 -0
- package/components/CommonActions/components/ActionsContainer/slots/index.d.ts +2 -0
- package/components/CommonActions/components/ActionsContainer/slots/index.js +1 -0
- package/components/CommonActions/components/ActionsContainer/types.d.ts +20 -0
- package/components/CommonActions/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +5 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +2 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +2 -2
- package/components/modal/WindowConfirm/index.d.ts +5 -0
- package/components/modal/WindowConfirm/index.js +2 -2
- package/components/mui_extended/IconButton/IconButton.integration.test.d.ts +1 -0
- package/components/mui_extended/IconButton/IconButton.test.d.ts +1 -0
- package/components/mui_extended/IconButton/stories/IconButton.stories.d.ts +32 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts +13 -0
- package/components/CommonActions/components/Actions/index.d.ts +0 -2
- package/components/CommonActions/components/Actions/index.js +0 -24
- package/components/CommonActions/components/Actions/styles.d.ts +0 -1
- package/components/CommonActions/components/Actions/styles.js +0 -14
- package/components/CommonActions/components/Actions/types.d.ts +0 -4
- package/components/CommonActions/tests/constants.js +0 -4
- package/components/CommonActions/tests/utils.js +0 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActionsContainerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ActionsContainer component that renders its children within an ActionsContainerRoot.
|
|
4
|
+
* @param {ActionsContainerProps} props - The properties for the ActionsContainer component.
|
|
5
|
+
* @returns {JSX.Element} The rendered ActionsContainer component.
|
|
6
|
+
* @author SebastianM - automatic
|
|
7
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
8
|
+
* @updatedAt 2024-11-05 08:51:39 - automatic
|
|
9
|
+
* @updatedUser SebastianM - automatic
|
|
10
|
+
*/
|
|
11
|
+
export declare const ActionsContainer: import('react').ForwardRefExoticComponent<ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>>;
|
package/components/CommonActions/components/ActionsContainer/ActionsContainer.integration.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { A as ActionsContainerRoot } from "./slots/ActionsContainerSlots.js";
|
|
4
|
+
const ActionsContainer = forwardRef((props, ref) => {
|
|
5
|
+
const {
|
|
6
|
+
children,
|
|
7
|
+
...rest
|
|
8
|
+
} = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
ActionsContainerRoot,
|
|
11
|
+
{
|
|
12
|
+
"aria-label": "actionsContainer",
|
|
13
|
+
ref,
|
|
14
|
+
role: "group",
|
|
15
|
+
...rest,
|
|
16
|
+
children
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
ActionsContainer.displayName = "ActionsContainer";
|
|
21
|
+
export {
|
|
22
|
+
ActionsContainer as A
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const actionsContainerStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Styles for the actions container root element.
|
|
4
|
+
* @author SebastianM - automatic
|
|
5
|
+
* @createdAt 2024-11-01 14:08:46 - automatic
|
|
6
|
+
* @updatedAt 2024-11-01 16:09:44 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
8
|
+
*/
|
|
9
|
+
actionsContainerRoot: ({ theme }) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
justifyContent: "flex-end",
|
|
13
|
+
alignItems: "flex-end",
|
|
14
|
+
gap: theme.vars.size.baseSpacings.sp3,
|
|
15
|
+
paddingTop: theme.vars.size.baseSpacings.sp3,
|
|
16
|
+
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
17
|
+
paddingBottom: theme.vars.size.baseSpacings.sp3,
|
|
18
|
+
paddingLeft: "0",
|
|
19
|
+
height: "auto",
|
|
20
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
21
|
+
backgroundColor: theme.vars.palette.background.default
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
actionsContainerStyles as a
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave de identificación del componente ActionsContainer dentro del sistema.
|
|
3
|
+
*
|
|
4
|
+
* Esta constante se utiliza como identificador único para asociar y personalizar estilos y configuraciones
|
|
5
|
+
* relacionadas con el componente `ActionsContainer` dentro del sistema de temas y estilos.
|
|
6
|
+
* @default 'M4LActionsContainer'
|
|
7
|
+
*/
|
|
8
|
+
export declare const ACTIONSCONTAINER_KEY_COMPONENT = "M4LActionsContainer";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const ActionsContainerRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>>, "title" | "id" | "hidden" | "content" | "style" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
4
|
+
export { ActionsContainerRoot };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Box } from "@mui/material";
|
|
3
|
+
import { A as ACTIONSCONTAINER_KEY_COMPONENT } from "../constans.js";
|
|
4
|
+
import { A as ActionsContainerSlots } from "./ActionsContainerEnum.js";
|
|
5
|
+
import { a as actionsContainerStyles } from "../ActionsContainerStyles.js";
|
|
6
|
+
const ActionsContainerRoot = styled(Box, {
|
|
7
|
+
name: ACTIONSCONTAINER_KEY_COMPONENT,
|
|
8
|
+
slot: ActionsContainerSlots.actionsContainerRoot
|
|
9
|
+
})(actionsContainerStyles?.actionsContainerRoot);
|
|
10
|
+
export {
|
|
11
|
+
ActionsContainerRoot as A
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
3
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import { ACTIONSCONTAINER_KEY_COMPONENT } from './constans';
|
|
5
|
+
import { ActionsContainerSlots } from './slots';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the `ActionsContainer` component, extending the original HTMLDivElement properties.
|
|
8
|
+
* [children] - Child elements to be rendered inside the actions container.
|
|
9
|
+
*/
|
|
10
|
+
export interface ActionsContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Defines the types of Slots available for the `ActionsContainer`.
|
|
15
|
+
*/
|
|
16
|
+
export type ActionsContainerSlotsType = keyof typeof ActionsContainerSlots;
|
|
17
|
+
/**
|
|
18
|
+
* Styles applicable to the `ActionsContainer` using themes and custom slots.
|
|
19
|
+
*/
|
|
20
|
+
export type ActionsContainerStyles = Partial<OverridesStyleRules<ActionsContainerSlotsType, typeof ACTIONSCONTAINER_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ActionsContainer } from './components/ActionsContainer/ActionsContainer';
|
|
2
2
|
export { ActionCancel } from './components/ActionCancel';
|
|
3
3
|
export { ActionIntro } from './components/ActionIntro';
|
|
4
4
|
export { ActionFormCancel } from './components/ActionFormCancel';
|
package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
5
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
declare const useModalSettings: () => () => void;
|
|
5
9
|
export default useModalSettings;
|
package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { u as useModal } from "../../../../../../../hooks/useModal/index.js";
|
|
|
7
7
|
import { D as DataGridRoot } from "../../../../../styles.js";
|
|
8
8
|
import { C as ColumnsConfig } from "../../Settings/subcomponents/ColumnsConfig/index.js";
|
|
9
9
|
import { W as WindowBase } from "../../../../../../modal/WindowBase/index.js";
|
|
10
|
-
import { A as
|
|
10
|
+
import { A as ActionsContainer } from "../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
11
11
|
import { A as ActionCancel } from "../../../../../../CommonActions/components/ActionCancel/index.js";
|
|
12
12
|
import { A as ActionIntro } from "../../../../../../CommonActions/components/ActionIntro/index.js";
|
|
13
13
|
const useModalSettings = () => {
|
|
@@ -47,7 +47,7 @@ const useModalSettings = () => {
|
|
|
47
47
|
classes
|
|
48
48
|
}
|
|
49
49
|
) }) }) }),
|
|
50
|
-
/* @__PURE__ */ jsxs(
|
|
50
|
+
/* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
51
51
|
/* @__PURE__ */ jsx(ActionCancel, { onClick: closeModal }),
|
|
52
52
|
/* @__PURE__ */ jsx(ActionIntro, { onClick: onClickIntro })
|
|
53
53
|
] })
|
|
@@ -81,6 +81,6 @@ export declare const PopoverHeaderIconStyled: import('@emotion/styled').StyledCo
|
|
|
81
81
|
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
82
82
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
83
83
|
}, {}, {}>;
|
|
84
|
-
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/
|
|
84
|
+
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer/types').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer/types').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
85
85
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
86
86
|
}, {}, {}>;
|
|
@@ -5,7 +5,7 @@ import { d as dynamicFilterStyles } from "../DynamicFIlter.styles.js";
|
|
|
5
5
|
import { MenuItem } from "@mui/material";
|
|
6
6
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
7
7
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
|
-
import { A as
|
|
8
|
+
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
9
9
|
import { I as Icon } from "../../Icon/Icon.js";
|
|
10
10
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
11
11
|
const RootStyled = styled("div", { name: DYNAMIC_FILTER_KEY_COMPONENT, slot: DynamicFilterSlots.root })(
|
|
@@ -115,7 +115,7 @@ const PopoverHeaderTitleStyled = styled(Typography, {
|
|
|
115
115
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
116
116
|
slot: DynamicFilterSlots.popoverFilterHeaderTitle
|
|
117
117
|
})(dynamicFilterStyles?.popoverFilterHeaderTitle);
|
|
118
|
-
const PopoverHeaderActionsStyled = styled(
|
|
118
|
+
const PopoverHeaderActionsStyled = styled(ActionsContainer, {
|
|
119
119
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
120
120
|
slot: DynamicFilterSlots.popoverFilterActions
|
|
121
121
|
})(dynamicFilterStyles?.popoverFilterActions);
|
|
@@ -78,6 +78,6 @@ export declare const PopoverHeaderIconStyled: import('@emotion/styled').StyledCo
|
|
|
78
78
|
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
79
79
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
80
80
|
}, {}, {}>;
|
|
81
|
-
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/
|
|
81
|
+
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer/types').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer/types').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown> & {
|
|
82
82
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
83
83
|
}, {}, {}>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { AreaChipProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente de chip de área.
|
|
4
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
4
5
|
*/
|
|
5
6
|
/**
|
|
6
7
|
* TODO: Documentar
|
|
8
|
+
* @author SebastianM - automatic
|
|
9
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
10
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
11
|
+
* @updatedUser SebastianM - automatic
|
|
7
12
|
*/
|
|
8
13
|
export declare const AreaChip: {
|
|
9
14
|
(props: AreaChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,7 @@ import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButt
|
|
|
16
16
|
import { R as RHFormProvider } from "../../../../../hook-form/RHFormContext/index.js";
|
|
17
17
|
import { T as Typography } from "../../../../../mui_extended/Typography/Typography.js";
|
|
18
18
|
import { R as RHFTextField } from "../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
19
|
-
import { A as
|
|
19
|
+
import { A as ActionsContainer } from "../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
20
20
|
import { A as ActionCancel } from "../../../../../CommonActions/components/ActionCancel/index.js";
|
|
21
21
|
import { A as ActionIntro } from "../../../../../CommonActions/components/ActionIntro/index.js";
|
|
22
22
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
@@ -182,7 +182,7 @@ const AreaChip = (props) => {
|
|
|
182
182
|
sx: { mt: "20px" }
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
|
-
/* @__PURE__ */ jsxs(
|
|
185
|
+
/* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
186
186
|
/* @__PURE__ */ jsx(
|
|
187
187
|
ActionCancel,
|
|
188
188
|
{
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { AreaChipProps } from '../../../AreaChip/types';
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @author SebastianM - automatic
|
|
5
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
6
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
4
8
|
*/
|
|
5
9
|
export declare const ChipMobile: {
|
|
6
10
|
(props: AreaChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,7 @@ import { E as EditAreaHeader } from "../../../AreaChip/styles.js";
|
|
|
16
16
|
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
17
17
|
import { R as RHFormProvider } from "../../../../../../../hook-form/RHFormContext/index.js";
|
|
18
18
|
import { T as Typography } from "../../../../../../../mui_extended/Typography/Typography.js";
|
|
19
|
-
import { A as
|
|
19
|
+
import { A as ActionsContainer } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
20
20
|
import { A as ActionCancel } from "../../../../../../../CommonActions/components/ActionCancel/index.js";
|
|
21
21
|
import { A as ActionIntro } from "../../../../../../../CommonActions/components/ActionIntro/index.js";
|
|
22
22
|
import { P as Popover } from "../../../../../../../mui_extended/Popover/Popover.js";
|
|
@@ -182,7 +182,7 @@ const ChipMobile = (props) => {
|
|
|
182
182
|
sx: { mt: "20px" }
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
|
-
/* @__PURE__ */ jsxs(
|
|
185
|
+
/* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
186
186
|
/* @__PURE__ */ jsx(
|
|
187
187
|
ActionCancel,
|
|
188
188
|
{
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
5
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { M as MAP_DICCTIONARY } from "../../../../../../../../dictionary.js";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as ActionsContainer } from "../../../../../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
6
6
|
import { B as Button } from "../../../../../../../../../../../mui_extended/Button/Button.js";
|
|
7
7
|
function MyActions() {
|
|
8
8
|
const { control, setValue } = useFormContext();
|
|
@@ -19,7 +19,7 @@ function MyActions() {
|
|
|
19
19
|
setValue("statusEdition", "initial");
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
+
return /* @__PURE__ */ jsx(ActionsContainer, { children: /* @__PURE__ */ jsx(Button, { onClick: initCancelDraw, children: statusEdition === "initial" ? getLabel(MAP_DICCTIONARY.LABEL_MEASURE_START) : getLabel(MAP_DICCTIONARY.LABEL_MEASURE_CANCEL) }) });
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
MyActions as M
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { MyActionsProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @author SebastianM - automatic
|
|
5
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
6
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
4
8
|
*/
|
|
5
9
|
export declare function MyActions(props: MyActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ import { u as useMapGpsToolsStore } from "../../../../../../hooks/useMapGpsTools
|
|
|
9
9
|
import { R as RHFHelperError } from "../../../../../../../../../hook-form/RHFHelperError/index.js";
|
|
10
10
|
import { A as ActionFormIntro } from "../../../../../../../../../CommonActions/components/ActionFormIntro/index.js";
|
|
11
11
|
import { W as WindowConfirm } from "../../../../../../../../../modal/WindowConfirm/index.js";
|
|
12
|
-
import { A as
|
|
12
|
+
import { A as ActionsContainer } from "../../../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
13
13
|
import { B as Button } from "../../../../../../../../../mui_extended/Button/Button.js";
|
|
14
14
|
function MyActions(props) {
|
|
15
15
|
const { geofenceId } = props;
|
|
@@ -50,7 +50,7 @@ function MyActions(props) {
|
|
|
50
50
|
}
|
|
51
51
|
showPopup("gpsTools");
|
|
52
52
|
};
|
|
53
|
-
return /* @__PURE__ */ jsxs(
|
|
53
|
+
return /* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
54
54
|
/* @__PURE__ */ jsx(RHFHelperError, { name: "geometry" }),
|
|
55
55
|
/* @__PURE__ */ jsx(Button, { onClick: onClickCancelLocal, disabled: inEdition, children: getLabel(MAP_GPSTOOLS_DICCTIONARY.ACTION_CANCEL) }),
|
|
56
56
|
/* @__PURE__ */ jsx(ActionFormIntro, { disabled: inEdition })
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TODO: Documentar
|
|
3
|
+
* @author SebastianM - automatic
|
|
4
|
+
* @createdAt 2024-11-01 12:34:48 - automatic
|
|
5
|
+
* @updatedAt 2024-11-01 12:34:49 - automatic
|
|
6
|
+
* @updatedUser SebastianM - automatic
|
|
3
7
|
*/
|
|
4
8
|
export declare function GeofencesList(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { S as StackGeofenceListRoot } from "./styles.js";
|
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
7
|
import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../../dictionary.js";
|
|
8
8
|
import { D as DataGrid } from "../../../../../../../DataGrid/index.js";
|
|
9
|
-
import { A as
|
|
9
|
+
import { A as ActionsContainer } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
10
10
|
import { B as Button } from "../../../../../../../mui_extended/Button/Button.js";
|
|
11
11
|
function GeofencesList() {
|
|
12
12
|
const { getLabel } = useModuleDictionary();
|
|
@@ -65,7 +65,7 @@ function GeofencesList() {
|
|
|
65
65
|
},
|
|
66
66
|
"list"
|
|
67
67
|
),
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
68
|
+
/* @__PURE__ */ jsx(ActionsContainer, { children: /* @__PURE__ */ jsx(Button, { onClick: () => goToAdd(), children: getLabel(MAP_GPSTOOLS_DICCTIONARY.MODULE_NAME_GEOFENCE_ADD) }) })
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -4,8 +4,13 @@ import { WindowConfirmProps } from './types';
|
|
|
4
4
|
* Este componente muestra una ventana modal de confirmación con un mensaje y opciones de acción.
|
|
5
5
|
* Utiliza hooks como useModal, useModuleDictionary y useEnvironment de @m4l/core.
|
|
6
6
|
* También importa componentes y clases necesarios de CommonActions, subcomponents y classes.
|
|
7
|
+
* @createdAt 2024-11-01 09:11:42 - automatic
|
|
7
8
|
*/
|
|
8
9
|
/**
|
|
9
10
|
* TODO: Documentar
|
|
11
|
+
* @author SebastianM - automatic
|
|
12
|
+
* @createdAt 2024-11-01 09:11:42 - automatic
|
|
13
|
+
* @updatedAt 2024-11-01 12:34:50 - automatic
|
|
14
|
+
* @updatedUser SebastianM - automatic
|
|
10
15
|
*/
|
|
11
16
|
export declare const WindowConfirm: (props: WindowConfirmProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { u as useModal } from "../../../hooks/useModal/index.js";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
4
4
|
import { M as MessageIlustration } from "./subcomponents/MessageIlustration/index.js";
|
|
5
5
|
import { m as modalUtilityClasses } from "../classes/index.js";
|
|
6
6
|
import { W as WindowBase } from "../WindowBase/index.js";
|
|
@@ -30,7 +30,7 @@ const WindowConfirm = (props) => {
|
|
|
30
30
|
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/window_confirm.svg`,
|
|
31
31
|
children: [
|
|
32
32
|
/* @__PURE__ */ jsx(MessageIlustration, { classes, msg, title }),
|
|
33
|
-
/* @__PURE__ */ jsxs(
|
|
33
|
+
/* @__PURE__ */ jsxs(ActionsContainer, { children: [
|
|
34
34
|
/* @__PURE__ */ jsx(ActionCancel, { onClick: onCloseCancel }),
|
|
35
35
|
/* @__PURE__ */ jsx(ActionIntro, { onClick: onClikIntroLocal })
|
|
36
36
|
] })
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { IconButton } from '../IconButton';
|
|
3
|
+
/**
|
|
4
|
+
* Definition of IconButton stories
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof IconButton>;
|
|
7
|
+
type Story = StoryObj<typeof IconButton>;
|
|
8
|
+
/**
|
|
9
|
+
* Story for IconButton
|
|
10
|
+
*/
|
|
11
|
+
export declare const Base: Story;
|
|
12
|
+
/**
|
|
13
|
+
* Story for IconButton enable
|
|
14
|
+
*/
|
|
15
|
+
export declare const EnableDefault: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Story for IconButton hover
|
|
18
|
+
*/
|
|
19
|
+
export declare const HoverDefault: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Story for IconButton active
|
|
22
|
+
*/
|
|
23
|
+
export declare const ActiveDefault: Story;
|
|
24
|
+
/**
|
|
25
|
+
* Story for IconButton focus visible
|
|
26
|
+
*/
|
|
27
|
+
export declare const FocusVisibleDefault: Story;
|
|
28
|
+
/**
|
|
29
|
+
* Story for IconButton with skeleton.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WithSkeleton: Story;
|
|
32
|
+
export default meta;
|
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import { a as a5 } from "./components/DynamicFilter/dictionary.js";
|
|
|
65
65
|
import { D as D4 } from "./components/DynamicFilter/DynamicFilter.js";
|
|
66
66
|
import { H } from "./components/HelperError/HelperError.js";
|
|
67
67
|
import { L as L3 } from "./components/Label/Label.js";
|
|
68
|
-
import { A as A6 } from "./components/CommonActions/components/
|
|
68
|
+
import { A as A6 } from "./components/CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
69
69
|
import { A as A7 } from "./components/CommonActions/components/ActionCancel/index.js";
|
|
70
70
|
import { A as A8 } from "./components/CommonActions/components/ActionIntro/index.js";
|
|
71
71
|
import { A as A9 } from "./components/CommonActions/components/ActionFormCancel/index.js";
|
|
@@ -192,7 +192,7 @@ export {
|
|
|
192
192
|
A9 as ActionFormCancel,
|
|
193
193
|
A10 as ActionFormIntro,
|
|
194
194
|
A8 as ActionIntro,
|
|
195
|
-
A6 as
|
|
195
|
+
A6 as ActionsContainer,
|
|
196
196
|
A as AnimatedScroll,
|
|
197
197
|
A11 as AppBar,
|
|
198
198
|
A13 as AppBarComercial,
|
package/package.json
CHANGED
package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ActionsContainer } from '../../../../../src/components/CommonActions/components/ActionsContainer/ActionsContainer';
|
|
3
|
+
declare const meta: Meta<typeof ActionsContainer>;
|
|
4
|
+
type Story = StoryObj<typeof ActionsContainer>;
|
|
5
|
+
/**
|
|
6
|
+
* Base story for `ActionsContainer` in standard mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Story for `ActionsContainer` with action buttons.
|
|
11
|
+
*/
|
|
12
|
+
export declare const WithActionsButtons: Story;
|
|
13
|
+
export default meta;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../../classes/index.js";
|
|
6
|
-
import { W as WrapperStandarActions } from "./styles.js";
|
|
7
|
-
import { g as getNameCommonActionsDataTestId } from "../../tests/utils.js";
|
|
8
|
-
const Actions = forwardRef(function ActionsForwarded(props, ref) {
|
|
9
|
-
const { children, ...restProps } = props;
|
|
10
|
-
const classes = useCommonActionsUtilityClasses();
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
WrapperStandarActions,
|
|
13
|
-
{
|
|
14
|
-
...restProps,
|
|
15
|
-
ref,
|
|
16
|
-
className: clsx(classes.root, restProps?.className),
|
|
17
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameCommonActionsDataTestId("root") } : {},
|
|
18
|
-
children
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
Actions as A
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WrapperStandarActions: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
const WrapperStandarActions = styled("div")(({ theme }) => ({
|
|
3
|
-
// paddingTop: theme.spacing(3),
|
|
4
|
-
// display: 'flex',
|
|
5
|
-
// flexDirection: 'row',
|
|
6
|
-
// justifyContent: 'flex-end',
|
|
7
|
-
// '& > button': {
|
|
8
|
-
// marginLeft: '10px',
|
|
9
|
-
// },
|
|
10
|
-
...theme.components?.M4LCommonActions?.styleOverrides || {}
|
|
11
|
-
}));
|
|
12
|
-
export {
|
|
13
|
-
WrapperStandarActions as W
|
|
14
|
-
};
|