@m4l/components 9.1.93 → 9.1.94
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 +44 -35
- package/components/Chip/Chip.d.ts +2 -2
- package/components/Chip/ChipStyles.js +10 -10
- package/components/Chip/index.js +1 -0
- package/components/Chip/types.d.ts +3 -2
- package/components/Chip/types.js +1 -0
- package/components/Color/types.d.ts +8 -0
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +2 -2
- package/components/DataGrid/dictionary.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +1 -1
- package/components/MenuActions/MenuActions.d.ts +1 -1
- package/components/MenuActions/MenuActions.js +2 -1
- package/components/MenuActions/MenuActions.styles.js +19 -5
- package/components/MenuActions/types.d.ts +10 -7
- package/components/Pager/Pager.d.ts +2 -2
- package/components/Pager/Pager.styles.js +8 -8
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.d.ts +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/types.d.ts +3 -3
- package/components/Pager/subcomponents/PagerActions/PagerActions.d.ts +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +4 -0
- package/components/WindowBase/WindowBase.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.d.ts +1 -1
- package/components/WindowBase/types.d.ts +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +13 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.js +163 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.d.ts +2 -0
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +264 -0
- package/components/areas/components/AreasAdmin/classes/index.js +1 -2
- package/components/areas/components/AreasAdmin/constants.d.ts +1 -0
- package/components/areas/components/AreasAdmin/constants.js +4 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.d.ts +23 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminEnum.js +27 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +63 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +116 -0
- package/components/areas/components/AreasAdmin/slots/index.d.ts +2 -0
- package/components/areas/components/AreasAdmin/slots/index.js +1 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/{index.d.ts → AreaChip.d.ts} +4 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/{index.js → AreaChip.js} +81 -88
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.d.ts +8 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js +53 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +18 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/{index.d.ts → AreaChipMobile.d.ts} +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +81 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -3
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +36 -78
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/{index.d.ts → PanelWindowPopUp.d.ts} +1 -1
- package/components/areas/components/AreasAdmin/test/AreasAdmin.test.d.ts +1 -0
- package/components/areas/components/AreasAdmin/types.d.ts +47 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.d.ts +23 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +1 -1
- package/components/areas/components/index.d.ts +1 -1
- package/components/areas/contexts/AreasContext/index.js +2 -0
- package/components/areas/contexts/AreasContext/store.d.ts +2 -2
- package/components/areas/contexts/AreasContext/store.js +166 -166
- package/components/areas/contexts/AreasContext/types.d.ts +6 -2
- package/components/areas/dictionary.d.ts +1 -0
- package/components/areas/dictionary.js +2 -1
- package/components/areas/icons.d.ts +2 -0
- package/components/areas/icons.js +3 -1
- package/components/areas/types.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +4 -4
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +2 -2
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +5 -0
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +2 -2
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +22 -14
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.d.ts +4 -0
- package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +14 -14
- package/components/mui_extended/Divider/Divider.d.ts +4 -0
- package/components/mui_extended/IconButton/IconButton.styles.js +6 -6
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +39 -8
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.d.ts +4 -0
- package/components/mui_extended/NavLink/NavLink.styles.js +28 -6
- package/components/mui_extended/Popover/Popover.styles.js +4 -4
- package/components/mui_extended/Select/Select.styles.js +5 -5
- package/components/mui_extended/Select/types.d.ts +6 -0
- package/components/mui_extended/Stack/Stack.d.ts +4 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/components/areas/components/AreasAdmin/index.d.ts +0 -10
- package/components/areas/components/AreasAdmin/index.js +0 -95
- package/components/areas/components/AreasAdmin/styles.js +0 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.js +0 -29
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +0 -56
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +0 -96
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +0 -54
- package/components/areas/utils/useOnClickOutside/index.js +0 -22
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useRef, useMemo } from "react";
|
|
4
4
|
import * as Yup from "yup";
|
|
5
|
-
import { useTheme } from "@mui/material";
|
|
6
5
|
import { shallow } from "zustand/shallow";
|
|
7
6
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
8
7
|
import { u as useAreasStore } from "../../../../../../hooks/useAreas/index.js";
|
|
9
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
8
|
import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "../../../../../../dictionary.js";
|
|
11
|
-
import { a as areasAdminClasses } from "../../../../classes/index.js";
|
|
12
|
-
import clsx from "clsx";
|
|
13
9
|
import { I as ICONS } from "../../../../../../icons.js";
|
|
14
|
-
import { C as ChipActionsMobile } from "../../../AreaChip/subcomponents/ChipActionsMobile/
|
|
15
|
-
import {
|
|
16
|
-
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
10
|
+
import { C as ChipActionsMobile } from "../../../AreaChip/subcomponents/ChipActionsMobile/ChipActionsMobile.js";
|
|
11
|
+
import { l as ChipMobileRootStyled, m as ChipMobileContentStyled, N as NameChipMobileStyled, n as EditAreaChipMobileContainerStyled } from "../../../../slots/AreasAdminSlots.js";
|
|
17
12
|
import { R as RHFormProvider } from "../../../../../../../hook-form/RHFormContext/index.js";
|
|
18
13
|
import { T as Typography } from "../../../../../../../mui_extended/Typography/Typography.js";
|
|
19
14
|
import { A as ActionsContainer } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
15
|
+
import { M as MenuActions } from "../../../../../../../MenuActions/MenuActions.js";
|
|
20
16
|
import { P as Popover } from "../../../../../../../mui_extended/Popover/Popover.js";
|
|
21
17
|
import { R as RHFTextField } from "../../../../../../../hook-form/RHFTextField/RHFTextField.js";
|
|
22
18
|
import { A as ActionCancel } from "../../../../../../../CommonActions/components/ActionCancel/ActionCancel.js";
|
|
@@ -25,29 +21,23 @@ const ChipMobile = (props) => {
|
|
|
25
21
|
const { areaId, selected, disabled, setAnchorMenuAreas } = props;
|
|
26
22
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
27
23
|
const { deleteArea, selectArea, editArea } = useAreasStore((state) => state.areasActions);
|
|
28
|
-
const { setFocus } = useAreasStore((state) => state.areaAdminActions);
|
|
29
24
|
const areaName = useAreasStore((state) => state.hashAreas[areaId].name, shallow);
|
|
30
25
|
const listAreas = useAreasStore((state) => state.areasIds, shallow);
|
|
31
26
|
const [open, setOpen] = useState(false);
|
|
32
27
|
const { getLabel } = useModuleDictionary();
|
|
33
|
-
const isDesktop = useResponsiveDesktop();
|
|
34
28
|
const anchorRef = useRef(null);
|
|
35
|
-
const theme = useTheme();
|
|
36
29
|
const onClickDeleteArea = (e) => {
|
|
37
30
|
if (listAreas.length > 1) {
|
|
38
31
|
e.stopPropagation();
|
|
39
|
-
setFocus(true);
|
|
40
32
|
deleteArea(areaId);
|
|
41
33
|
}
|
|
42
34
|
};
|
|
43
35
|
const onSubmit = (data) => {
|
|
44
36
|
editArea(areaId, data.inputEditArea);
|
|
45
37
|
setOpen(false);
|
|
46
|
-
setFocus(false);
|
|
47
38
|
};
|
|
48
39
|
const handlerOpenPopoverEditArea = (e) => {
|
|
49
40
|
e?.stopPropagation();
|
|
50
|
-
setFocus(true);
|
|
51
41
|
setOpen(true);
|
|
52
42
|
};
|
|
53
43
|
const initialValues = {
|
|
@@ -66,67 +56,55 @@ const ChipMobile = (props) => {
|
|
|
66
56
|
selectArea(areaId);
|
|
67
57
|
};
|
|
68
58
|
const rippleRef = useRef(null);
|
|
69
|
-
const onRippleStart = (e) => {
|
|
70
|
-
if (rippleRef.current) {
|
|
71
|
-
rippleRef.current.start(e);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
59
|
const onRippleStop = (e) => {
|
|
75
60
|
if (rippleRef.current) {
|
|
76
61
|
rippleRef.current.stop(e);
|
|
77
62
|
}
|
|
78
63
|
};
|
|
79
|
-
|
|
64
|
+
const menuActions = [
|
|
65
|
+
{
|
|
66
|
+
type: "menuItem",
|
|
67
|
+
startIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
68
|
+
label: `${getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_edit_area))}`,
|
|
69
|
+
onClick: handlerOpenPopoverEditArea
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "menuItem",
|
|
73
|
+
startIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
74
|
+
label: `${getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_delete_area))}`,
|
|
75
|
+
onClick: onClickDeleteArea
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
return /* @__PURE__ */ jsxs(ChipMobileRootStyled, { selected, disabled, ownerState: {}, children: [
|
|
80
79
|
/* @__PURE__ */ jsxs(
|
|
81
|
-
|
|
80
|
+
ChipMobileContentStyled,
|
|
82
81
|
{
|
|
82
|
+
ownerState: {},
|
|
83
83
|
role: "presentation",
|
|
84
84
|
ref: anchorRef,
|
|
85
|
-
onMouseDown: onRippleStart,
|
|
86
85
|
onMouseUp: onRippleStop,
|
|
87
|
-
className: clsx(
|
|
88
|
-
areasAdminClasses.areaChipRoot,
|
|
89
|
-
selected ? areasAdminClasses.selected : null,
|
|
90
|
-
disabled ? areasAdminClasses.disabled : null
|
|
91
|
-
),
|
|
92
86
|
onClick: (e) => {
|
|
93
87
|
handlerOnClick(e);
|
|
94
88
|
},
|
|
95
89
|
children: [
|
|
96
|
-
/* @__PURE__ */ jsx(TouchRipple, { ref: rippleRef, center: false
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
90
|
+
/* @__PURE__ */ jsx(TouchRipple, { ref: rippleRef, center: false }),
|
|
91
|
+
/* @__PURE__ */ jsx(NameChipMobileStyled, { ownerState: {}, variant: "body", children: `${areaName}` }),
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
MenuActions,
|
|
94
|
+
{
|
|
95
|
+
icon: `${host_static_assets}/${environment_assets}/frontend/components/window_base/assets/icons/${ICONS.MORE_VERTICAL}`,
|
|
96
|
+
arrowType: "no-arrow",
|
|
97
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
98
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
99
|
+
menuActions
|
|
100
|
+
}
|
|
101
|
+
)
|
|
98
102
|
]
|
|
99
103
|
}
|
|
100
104
|
),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */ jsx(
|
|
103
|
-
IconButton,
|
|
104
|
-
{
|
|
105
|
-
className: areasAdminClasses.areaChipEditButton,
|
|
106
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
107
|
-
size: "small",
|
|
108
|
-
onClick: (e) => {
|
|
109
|
-
handlerOpenPopoverEditArea(e);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
),
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
114
|
-
IconButton,
|
|
115
|
-
{
|
|
116
|
-
className: areasAdminClasses.areaChipDeleteButton,
|
|
117
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
118
|
-
size: "small",
|
|
119
|
-
onClick: (e) => {
|
|
120
|
-
onClickDeleteArea(e);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
] }) : /* @__PURE__ */ jsx(
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
125
106
|
ChipActionsMobile,
|
|
126
|
-
{
|
|
127
|
-
areaId,
|
|
128
|
-
handlerOpenPopoverEditArea
|
|
129
|
-
}
|
|
107
|
+
{}
|
|
130
108
|
),
|
|
131
109
|
/* @__PURE__ */ jsx(
|
|
132
110
|
"div",
|
|
@@ -140,18 +118,12 @@ const ChipMobile = (props) => {
|
|
|
140
118
|
{
|
|
141
119
|
arrowType: "top-center",
|
|
142
120
|
open,
|
|
143
|
-
className: areasAdminClasses.areaEditPopover,
|
|
144
121
|
anchorEl: anchorRef.current,
|
|
145
122
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
146
123
|
transformOrigin: { vertical: "top", horizontal: "center" },
|
|
147
124
|
onClose: () => {
|
|
148
|
-
setFocus(false);
|
|
149
125
|
setOpen(false);
|
|
150
126
|
},
|
|
151
|
-
sx: {
|
|
152
|
-
mt: "10px",
|
|
153
|
-
...theme.components?.M4LAreasAdminEditPopover?.styleOverrides || {}
|
|
154
|
-
},
|
|
155
127
|
children: /* @__PURE__ */ jsxs(
|
|
156
128
|
RHFormProvider,
|
|
157
129
|
{
|
|
@@ -159,20 +131,7 @@ const ChipMobile = (props) => {
|
|
|
159
131
|
values: initialValues,
|
|
160
132
|
validationSchema,
|
|
161
133
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */ jsx(Typography, { children: getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_edit_area)) }),
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
165
|
-
IconButton,
|
|
166
|
-
{
|
|
167
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.CLOSE}`,
|
|
168
|
-
size: "small",
|
|
169
|
-
onClick: () => {
|
|
170
|
-
setFocus(false);
|
|
171
|
-
setOpen(false);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
] }),
|
|
134
|
+
/* @__PURE__ */ jsx(EditAreaChipMobileContainerStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(Typography, { children: getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_edit_area)) }) }),
|
|
176
135
|
/* @__PURE__ */ jsx(
|
|
177
136
|
RHFTextField,
|
|
178
137
|
{
|
|
@@ -186,7 +145,6 @@ const ChipMobile = (props) => {
|
|
|
186
145
|
{
|
|
187
146
|
onClick: () => {
|
|
188
147
|
setOpen(false);
|
|
189
|
-
setFocus(false);
|
|
190
148
|
},
|
|
191
149
|
variant: "outlined"
|
|
192
150
|
}
|
|
@@ -3,7 +3,7 @@ import { PanelWindowPopUpProps } from './types';
|
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const PanelWindowPopUp: (props: PanelWindowPopUpProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { PanelWindowPopUpProps } from './types';
|
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const PanelWindowPopUp: (props: PanelWindowPopUpProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { AreasAdminSlots } from './slots/AreasAdminEnum';
|
|
3
|
+
import { AREAS_ADMIN_KEY_COMPONENT } from './constants';
|
|
4
|
+
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
5
|
+
import { M4LOverridesStyleRules } from '../../../../../src/@types/augmentations';
|
|
6
|
+
export type AreasAdminType = keyof typeof AreasAdminSlots;
|
|
7
|
+
export interface AreasAdminProps {
|
|
8
|
+
/**
|
|
9
|
+
* Clase CSS personalizada que se aplicará al componente
|
|
10
|
+
*/
|
|
11
|
+
color?: Extract<ComponentPalletColor, 'primary'>;
|
|
12
|
+
/**
|
|
13
|
+
* Opciones de tamaño del componente.
|
|
14
|
+
*/
|
|
15
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
16
|
+
/**
|
|
17
|
+
* data-testid para pruebas unitarias.
|
|
18
|
+
*/
|
|
19
|
+
dataTestId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Clase CSS para sobrescribir los estilos predeterminados del loader.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Props adicionales que se pueden pasar al loader.
|
|
26
|
+
*/
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface AreasAdminOwnerState {
|
|
30
|
+
/**
|
|
31
|
+
* Indica si el dispositivo es móvil.
|
|
32
|
+
*/
|
|
33
|
+
isMobile: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Tamaño del campo de texto.
|
|
36
|
+
*/
|
|
37
|
+
size: AreasAdminProps['size'];
|
|
38
|
+
/**
|
|
39
|
+
* Color del componente.
|
|
40
|
+
*/
|
|
41
|
+
color: AreasAdminProps['color'];
|
|
42
|
+
/**
|
|
43
|
+
* Props adicionales que se pueden pasar al loader.
|
|
44
|
+
*/
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export type AreasAdminStyles = M4LOverridesStyleRules<AreasAdminType, typeof AREAS_ADMIN_KEY_COMPONENT, Theme>;
|
|
@@ -3,16 +3,36 @@ import { AreaWindowAction, WindowOptions } from '../../../../../../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Documentar
|
|
5
5
|
* @updatedUser cesar - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
|
+
* @createdAt 2025-01-31 11:37:43 - automatic
|
|
8
|
+
* @author cesar - automatic
|
|
9
|
+
* @updatedUser cesar - automatic
|
|
10
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
11
|
+
* @createdAt 2025-01-31 11:36:54 - automatic
|
|
12
|
+
* @author cesar - automatic
|
|
13
|
+
* @updatedUser cesar - automatic
|
|
14
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
15
|
+
* @createdAt 2025-01-31 11:36:15 - automatic
|
|
16
|
+
* @author cesar - automatic
|
|
17
|
+
* @updatedUser cesar - automatic
|
|
18
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
19
|
+
* @createdAt 2025-01-31 11:35:35 - automatic
|
|
20
|
+
* @author cesar - automatic
|
|
21
|
+
* @updatedUser cesar - automatic
|
|
22
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
23
|
+
* @createdAt 2025-01-31 11:34:36 - automatic
|
|
24
|
+
* @author cesar - automatic
|
|
25
|
+
* @updatedUser cesar - automatic
|
|
26
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
27
|
* @createdAt 2025-01-21 14:45:38 - automatic
|
|
8
28
|
* @author cesar - automatic
|
|
9
29
|
* @updatedUser cesar - automatic
|
|
10
|
-
* @updatedAt 2025-01-
|
|
30
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
11
31
|
* @createdAt 2025-01-18 21:23:13 - automatic
|
|
12
32
|
* @author cesar - automatic
|
|
13
33
|
* @author cesar - automatic
|
|
14
34
|
* @createdAt 2025-01-18 21:23:13 - automatic
|
|
15
|
-
* @updatedAt 2025-01-
|
|
35
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
16
36
|
* @updatedUser cesar - automatic
|
|
17
37
|
*/
|
|
18
38
|
export declare function getMainActions(isDesktop: boolean | undefined, moduleActions: AreaWindowAction[]): AreaWindowAction[];
|
|
@@ -3,7 +3,7 @@ import { HeaderProps } from './types';
|
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { WindowPopUpsListProps } from './types';
|
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-31 11:37:44 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const WindowPopUpsList: (props: WindowPopUpsListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -23,6 +23,7 @@ function AreasProvider(props) {
|
|
|
23
23
|
networkOperation,
|
|
24
24
|
ownerState: {
|
|
25
25
|
status: "init",
|
|
26
|
+
readyForHooks: false,
|
|
26
27
|
isMobile: !isDesktop,
|
|
27
28
|
isSkeleton,
|
|
28
29
|
focus: false
|
|
@@ -66,6 +67,7 @@ function AreasProvider(props) {
|
|
|
66
67
|
}, [getLabel]);
|
|
67
68
|
useEffect(() => {
|
|
68
69
|
events_add_listener(EmitEvents.EMMIT_EVENT_HOST_EMERGE_WINDOW, addWindow);
|
|
70
|
+
setExternalState({ readyForHooks: true });
|
|
69
71
|
return () => {
|
|
70
72
|
events_remove_listener(EmitEvents.EMMIT_EVENT_HOST_EMERGE_WINDOW, addWindow);
|
|
71
73
|
};
|
|
@@ -5,8 +5,8 @@ import { AreasStateWithActions, InitialAreasStoreProps } from './types';
|
|
|
5
5
|
* @returns
|
|
6
6
|
* @author Bruce Escobar - automatic
|
|
7
7
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
8
|
-
* @updatedAt
|
|
9
|
-
* @updatedUser
|
|
8
|
+
* @updatedAt 2025-01-29 16:33:53 - automatic
|
|
9
|
+
* @updatedUser cesar - automatic
|
|
10
10
|
*/
|
|
11
11
|
export declare const createAreasStore: (initProps: InitialAreasStoreProps) => Omit<Omit<import('zustand').StoreApi<AreasStateWithActions>, "setState"> & {
|
|
12
12
|
setState<A extends string | {
|