@m4l/components 7.2.2 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GridLayout/subcomponents/withSizeProvider/index.d.ts +4 -0
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/MFLoader/MFLoader.js +1 -1
- package/components/areas/components/AreasViewer/classes/index.d.ts +4 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index.d.ts +5 -0
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +4 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +1 -1
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +5 -0
- package/components/maps/components/Map/contexts/MapContext/store.js +246 -2
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +3 -0
- package/components/maps/components/Map/hooks/useAutoFocus/index.js +1 -1
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +4 -3
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +5 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +37 -1
- package/contexts/RealTimeContext/store.d.ts +5 -0
- package/contexts/RealTimeContext/store.js +14 -2
- package/hooks/useSizeContainer/index.d.ts +4 -0
- package/hooks/useSizeContainer/index.js +1 -1
- package/package.json +9 -27
|
@@ -13,6 +13,10 @@ export interface ComponentResponsiveReactGridLayoutProps extends Omit<Responsive
|
|
|
13
13
|
type MinimalParameters = Pick<CoreProps, 'containerWidth' | 'containerHeight' | 'innerRef' | 'style' | 'className'>;
|
|
14
14
|
/**
|
|
15
15
|
* TODO: Documentar
|
|
16
|
+
* @author Juan Escobar - automatic
|
|
17
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
18
|
+
* @updatedUser Juan Escobar - automatic
|
|
19
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
16
20
|
*/
|
|
17
21
|
export declare function withSizeProvider<T extends MinimalParameters>(ComposedComponent: FunctionComponent<T>): (props: Omit<T, "containerWidth" | "containerHeight" | "innerRef"> & HOCProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
22
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import throttle from "lodash
|
|
4
|
+
import throttle from "lodash-es/throttle";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
6
|
import { e as DEFAULT_CONTAINER_WIDTH, f as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../constants.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
3
|
import { useNetwork, useEnvironment, useHostTools, axiosOperation } from "@m4l/core";
|
|
4
4
|
import { useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/graphics";
|
|
5
|
-
import debounce from "lodash/debounce";
|
|
5
|
+
import debounce from "lodash-es/debounce";
|
|
6
6
|
import { P as ProggessLoadingMF } from "./subcomponents/ProggessLoadingMF/index.js";
|
|
7
7
|
import { O as ObservableLoaderMF } from "./helper.js";
|
|
8
8
|
import { m as mfLoaderUtilityClasses } from "./classes/index.js";
|
|
@@ -3,6 +3,10 @@ import { OwnerState } from '../../../contexts/AreasContext/types';
|
|
|
3
3
|
export declare const areasViewerClasses: AreasViewerClasses;
|
|
4
4
|
/**
|
|
5
5
|
* TODO: Documentar
|
|
6
|
+
* @author Juan Escobar - automatic
|
|
7
|
+
* @createdAt 2024-10-15 17:52:49 - automatic
|
|
8
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
9
|
+
* @updatedUser Juan Escobar - automatic
|
|
6
10
|
*/
|
|
7
11
|
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowContent" | "windowRootContainer" | "windowLinearProgressRoot" | "windowLinearProgressBar" | "windowPopupRoot" | "windowModalRoot" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "panelWindowsSeparator" | "loaderContainer" | "containerComponent" | "selectedWindow" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider", string>;
|
|
8
12
|
export type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -3,8 +3,13 @@ import { PanelWindowsProps } from './types';
|
|
|
3
3
|
* Funcion que se encarga de renderizar los botones que permiten cambiar de ventana o módulo
|
|
4
4
|
* cuando el área está en modo single (maximizado o mobile)
|
|
5
5
|
* @returns JSX
|
|
6
|
+
* @createdAt 2024-10-15 17:52:49 - automatic
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* TODO: Documentar
|
|
10
|
+
* @author Juan Escobar - automatic
|
|
11
|
+
* @createdAt 2024-10-15 17:52:49 - automatic
|
|
12
|
+
* @updatedAt 2024-10-15 17:53:27 - automatic
|
|
13
|
+
* @updatedUser Juan Escobar - automatic
|
|
9
14
|
*/
|
|
10
15
|
export declare const PanelWindows: (props: PanelWindowsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,8 +5,8 @@ import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/
|
|
|
5
5
|
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/classes/index.js";
|
|
6
6
|
import { u as updateOwnerStateClasses, C as COOKIE_AREAS_ADMIN_CONTAINER_ID, b as COOKIE_AREAS_ADMIN_ID, D as DEFAULT_AREA, c as addArea, g as getSelectedAreaIdFromCookies, d as DEFAULT_WINDOW, a as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, N as NORMALIZED_COLS, e as deleteLayoutFromBreakPoints, f as COOKIE_WINDOWS, h as COOKIE_BREAKPOINT_LAYOUTS, i as DEBOUCED_SAVE_TIME, s as setColapsedLayoutBreakPoints, j as getDataFromResponse, k as getCookiesContainer } from "./helper.js";
|
|
7
7
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/store.js";
|
|
8
|
-
import cloneDeep from "lodash
|
|
9
|
-
import debounce from "lodash
|
|
8
|
+
import cloneDeep from "lodash-es/cloneDeep";
|
|
9
|
+
import debounce from "lodash-es/debounce";
|
|
10
10
|
import { g as getCookie, s as setCookie, d as deleteCookie } from "../../../../helpers/cookies/cookies.js";
|
|
11
11
|
import { d as addLayoutItemToBreakPoints, e as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
12
12
|
import { k as isEqualLayouts } from "../../../GridLayout/utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork, getPropertyByString } from "@m4l/core";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import debounce from "lodash/debounce";
|
|
4
|
+
import debounce from "lodash-es/debounce";
|
|
5
5
|
import { u as useUtilityClasses } from "../../classes/index.js";
|
|
6
6
|
import { R as RHFAutocompleteAsyncRoot } from "../../styles.js";
|
|
7
7
|
import { g as getNameDataTestId } from "../../tests/utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork, getPropertyByString } from "@m4l/core";
|
|
3
3
|
import { useState, useCallback, useEffect } from "react";
|
|
4
|
-
import debounce from "lodash/debounce";
|
|
4
|
+
import debounce from "lodash-es/debounce";
|
|
5
5
|
import { u as useUtilityClasses } from "../../classes/index.js";
|
|
6
6
|
import { R as RHFAutocompleteAsyncRoot } from "../../styles.js";
|
|
7
7
|
import { g as getNameDataTestId } from "../../tests/utils.js";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { UploadImageProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
|
+
* @author Juan Escobar - automatic
|
|
5
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
6
|
+
* @updatedUser Juan Escobar - automatic
|
|
7
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
4
8
|
*/
|
|
5
9
|
export default function UploadImage({ error, file, helperText, sx, ...other }: UploadImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import isString from "lodash
|
|
2
|
+
import isString from "lodash-es/isString";
|
|
3
3
|
import { useDropzone } from "react-dropzone";
|
|
4
4
|
import { I as Image } from "../../../../../Image/Image.js";
|
|
5
5
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
@@ -3,9 +3,14 @@ import { MapStateWithActions, InitialMapStoreProps } from './types';
|
|
|
3
3
|
* Crea el Store, por defecto inicia en estado 'init'
|
|
4
4
|
* @param initProps propiedades iniciales del store
|
|
5
5
|
* @returns
|
|
6
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* TODO: Documentar
|
|
10
|
+
* @author Juan Escobar - automatic
|
|
11
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
12
|
+
* @updatedUser Juan Escobar - automatic
|
|
13
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
9
14
|
*/
|
|
10
15
|
export declare const createMapStore: (initProps: InitialMapStoreProps) => Omit<Omit<import('zustand').StoreApi<MapStateWithActions>, "setState"> & {
|
|
11
16
|
setState<A extends string | {
|
|
@@ -2,8 +2,8 @@ import { createStore } from "zustand";
|
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
4
|
import { u as useMapUtilityClasses } from "../../classes/index.js";
|
|
5
|
-
import cloneDeep from "lodash
|
|
6
|
-
import merge from "lodash
|
|
5
|
+
import cloneDeep from "lodash-es/cloneDeep";
|
|
6
|
+
import merge from "lodash-es/merge";
|
|
7
7
|
import { T as TILE_LAYER_OSM } from "../../subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js";
|
|
8
8
|
import { T as TILE_LAYER_GOOGLE, a as TILE_LAYER_GOOGLE_SATELLITE, b as TILE_LAYER_GOOGLE_HYBRID } from "../../subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js";
|
|
9
9
|
import { T as TILE_LAYER_BING } from "../../subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js";
|
|
@@ -27,6 +27,250 @@ const createMapStore = (initProps) => {
|
|
|
27
27
|
mapActions: {
|
|
28
28
|
/**
|
|
29
29
|
* TODO: Documentar
|
|
30
|
+
* @updatedUser Juan Escobar - automatic
|
|
31
|
+
* @updatedUser Juan Escobar - automatic
|
|
32
|
+
* @updatedUser Juan Escobar - automatic
|
|
33
|
+
* @updatedUser Juan Escobar - automatic
|
|
34
|
+
* @updatedUser Juan Escobar - automatic
|
|
35
|
+
* @updatedUser Juan Escobar - automatic
|
|
36
|
+
* @updatedUser Juan Escobar - automatic
|
|
37
|
+
* @updatedUser Juan Escobar - automatic
|
|
38
|
+
* @updatedUser Juan Escobar - automatic
|
|
39
|
+
* @updatedUser Juan Escobar - automatic
|
|
40
|
+
* @updatedUser Juan Escobar - automatic
|
|
41
|
+
* @updatedUser Juan Escobar - automatic
|
|
42
|
+
* @updatedUser Juan Escobar - automatic
|
|
43
|
+
* @updatedUser Juan Escobar - automatic
|
|
44
|
+
* @updatedUser Juan Escobar - automatic
|
|
45
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
46
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
47
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
48
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
49
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
50
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
51
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
52
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
53
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
54
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
55
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
56
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
57
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
58
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
59
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
60
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
61
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
62
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
63
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
64
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
65
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
66
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
67
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
68
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
69
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
70
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
71
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
72
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
73
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
74
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
75
|
+
* @author Juan Escobar - automatic
|
|
76
|
+
* @author Juan Escobar - automatic
|
|
77
|
+
* @author Juan Escobar - automatic
|
|
78
|
+
* @author Juan Escobar - automatic
|
|
79
|
+
* @author Juan Escobar - automatic
|
|
80
|
+
* @author Juan Escobar - automatic
|
|
81
|
+
* @author Juan Escobar - automatic
|
|
82
|
+
* @author Juan Escobar - automatic
|
|
83
|
+
* @author Juan Escobar - automatic
|
|
84
|
+
* @author Juan Escobar - automatic
|
|
85
|
+
* @author Juan Escobar - automatic
|
|
86
|
+
* @author Juan Escobar - automatic
|
|
87
|
+
* @author Juan Escobar - automatic
|
|
88
|
+
* @author Juan Escobar - automatic
|
|
89
|
+
* @author Juan Escobar - automatic
|
|
90
|
+
* @updatedUser Juan Escobar - automatic
|
|
91
|
+
* @updatedUser Juan Escobar - automatic
|
|
92
|
+
* @updatedUser Juan Escobar - automatic
|
|
93
|
+
* @updatedUser Juan Escobar - automatic
|
|
94
|
+
* @updatedUser Juan Escobar - automatic
|
|
95
|
+
* @updatedUser Juan Escobar - automatic
|
|
96
|
+
* @updatedUser Juan Escobar - automatic
|
|
97
|
+
* @updatedUser Juan Escobar - automatic
|
|
98
|
+
* @updatedUser Juan Escobar - automatic
|
|
99
|
+
* @updatedUser Juan Escobar - automatic
|
|
100
|
+
* @updatedUser Juan Escobar - automatic
|
|
101
|
+
* @updatedUser Juan Escobar - automatic
|
|
102
|
+
* @updatedUser Juan Escobar - automatic
|
|
103
|
+
* @updatedUser Juan Escobar - automatic
|
|
104
|
+
* @updatedUser Juan Escobar - automatic
|
|
105
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
106
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
107
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
108
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
109
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
110
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
111
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
112
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
113
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
114
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
115
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
116
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
117
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
118
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
119
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
120
|
+
* @author Juan Escobar - automatic
|
|
121
|
+
* @author Juan Escobar - automatic
|
|
122
|
+
* @author Juan Escobar - automatic
|
|
123
|
+
* @author Juan Escobar - automatic
|
|
124
|
+
* @author Juan Escobar - automatic
|
|
125
|
+
* @author Juan Escobar - automatic
|
|
126
|
+
* @author Juan Escobar - automatic
|
|
127
|
+
* @author Juan Escobar - automatic
|
|
128
|
+
* @author Juan Escobar - automatic
|
|
129
|
+
* @author Juan Escobar - automatic
|
|
130
|
+
* @author Juan Escobar - automatic
|
|
131
|
+
* @author Juan Escobar - automatic
|
|
132
|
+
* @author Juan Escobar - automatic
|
|
133
|
+
* @author Juan Escobar - automatic
|
|
134
|
+
* @author Juan Escobar - automatic
|
|
135
|
+
* @updatedUser Juan Escobar - automatic
|
|
136
|
+
* @updatedUser Juan Escobar - automatic
|
|
137
|
+
* @updatedUser Juan Escobar - automatic
|
|
138
|
+
* @updatedUser Juan Escobar - automatic
|
|
139
|
+
* @updatedUser Juan Escobar - automatic
|
|
140
|
+
* @updatedUser Juan Escobar - automatic
|
|
141
|
+
* @updatedUser Juan Escobar - automatic
|
|
142
|
+
* @updatedUser Juan Escobar - automatic
|
|
143
|
+
* @updatedUser Juan Escobar - automatic
|
|
144
|
+
* @updatedUser Juan Escobar - automatic
|
|
145
|
+
* @updatedUser Juan Escobar - automatic
|
|
146
|
+
* @updatedUser Juan Escobar - automatic
|
|
147
|
+
* @updatedUser Juan Escobar - automatic
|
|
148
|
+
* @updatedUser Juan Escobar - automatic
|
|
149
|
+
* @updatedUser Juan Escobar - automatic
|
|
150
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
151
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
152
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
153
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
154
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
155
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
156
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
157
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
158
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
159
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
160
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
161
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
162
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
163
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
164
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
165
|
+
* @author Juan Escobar - automatic
|
|
166
|
+
* @author Juan Escobar - automatic
|
|
167
|
+
* @author Juan Escobar - automatic
|
|
168
|
+
* @author Juan Escobar - automatic
|
|
169
|
+
* @author Juan Escobar - automatic
|
|
170
|
+
* @author Juan Escobar - automatic
|
|
171
|
+
* @author Juan Escobar - automatic
|
|
172
|
+
* @author Juan Escobar - automatic
|
|
173
|
+
* @author Juan Escobar - automatic
|
|
174
|
+
* @author Juan Escobar - automatic
|
|
175
|
+
* @author Juan Escobar - automatic
|
|
176
|
+
* @author Juan Escobar - automatic
|
|
177
|
+
* @author Juan Escobar - automatic
|
|
178
|
+
* @author Juan Escobar - automatic
|
|
179
|
+
* @author Juan Escobar - automatic
|
|
180
|
+
* @updatedUser Juan Escobar - automatic
|
|
181
|
+
* @updatedUser Juan Escobar - automatic
|
|
182
|
+
* @updatedUser Juan Escobar - automatic
|
|
183
|
+
* @updatedUser Juan Escobar - automatic
|
|
184
|
+
* @updatedUser Juan Escobar - automatic
|
|
185
|
+
* @updatedUser Juan Escobar - automatic
|
|
186
|
+
* @updatedUser Juan Escobar - automatic
|
|
187
|
+
* @updatedUser Juan Escobar - automatic
|
|
188
|
+
* @updatedUser Juan Escobar - automatic
|
|
189
|
+
* @updatedUser Juan Escobar - automatic
|
|
190
|
+
* @updatedUser Juan Escobar - automatic
|
|
191
|
+
* @updatedUser Juan Escobar - automatic
|
|
192
|
+
* @updatedUser Juan Escobar - automatic
|
|
193
|
+
* @updatedUser Juan Escobar - automatic
|
|
194
|
+
* @updatedUser Juan Escobar - automatic
|
|
195
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
196
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
197
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
198
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
199
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
200
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
201
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
202
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
203
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
204
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
205
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
206
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
207
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
208
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
209
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
210
|
+
* @author Juan Escobar - automatic
|
|
211
|
+
* @author Juan Escobar - automatic
|
|
212
|
+
* @author Juan Escobar - automatic
|
|
213
|
+
* @author Juan Escobar - automatic
|
|
214
|
+
* @author Juan Escobar - automatic
|
|
215
|
+
* @author Juan Escobar - automatic
|
|
216
|
+
* @author Juan Escobar - automatic
|
|
217
|
+
* @author Juan Escobar - automatic
|
|
218
|
+
* @author Juan Escobar - automatic
|
|
219
|
+
* @author Juan Escobar - automatic
|
|
220
|
+
* @author Juan Escobar - automatic
|
|
221
|
+
* @author Juan Escobar - automatic
|
|
222
|
+
* @author Juan Escobar - automatic
|
|
223
|
+
* @author Juan Escobar - automatic
|
|
224
|
+
* @author Juan Escobar - automatic
|
|
225
|
+
* @updatedUser Juan Escobar - automatic
|
|
226
|
+
* @updatedUser Juan Escobar - automatic
|
|
227
|
+
* @updatedUser Juan Escobar - automatic
|
|
228
|
+
* @updatedUser Juan Escobar - automatic
|
|
229
|
+
* @updatedUser Juan Escobar - automatic
|
|
230
|
+
* @updatedUser Juan Escobar - automatic
|
|
231
|
+
* @updatedUser Juan Escobar - automatic
|
|
232
|
+
* @updatedUser Juan Escobar - automatic
|
|
233
|
+
* @updatedUser Juan Escobar - automatic
|
|
234
|
+
* @updatedUser Juan Escobar - automatic
|
|
235
|
+
* @updatedUser Juan Escobar - automatic
|
|
236
|
+
* @updatedUser Juan Escobar - automatic
|
|
237
|
+
* @updatedUser Juan Escobar - automatic
|
|
238
|
+
* @updatedUser Juan Escobar - automatic
|
|
239
|
+
* @updatedUser Juan Escobar - automatic
|
|
240
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
241
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
242
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
243
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
244
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
245
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
246
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
247
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
248
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
249
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
250
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
251
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
252
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
253
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
254
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
255
|
+
* @author Juan Escobar - automatic
|
|
256
|
+
* @author Juan Escobar - automatic
|
|
257
|
+
* @author Juan Escobar - automatic
|
|
258
|
+
* @author Juan Escobar - automatic
|
|
259
|
+
* @author Juan Escobar - automatic
|
|
260
|
+
* @author Juan Escobar - automatic
|
|
261
|
+
* @author Juan Escobar - automatic
|
|
262
|
+
* @author Juan Escobar - automatic
|
|
263
|
+
* @author Juan Escobar - automatic
|
|
264
|
+
* @author Juan Escobar - automatic
|
|
265
|
+
* @author Juan Escobar - automatic
|
|
266
|
+
* @author Juan Escobar - automatic
|
|
267
|
+
* @author Juan Escobar - automatic
|
|
268
|
+
* @author Juan Escobar - automatic
|
|
269
|
+
* @author Juan Escobar - automatic
|
|
270
|
+
* @author Juan Escobar - automatic
|
|
271
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
272
|
+
* @updatedUser Juan Escobar - automatic
|
|
273
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
30
274
|
*/
|
|
31
275
|
init: (layersStore) => {
|
|
32
276
|
set((state) => {
|
|
@@ -3,5 +3,8 @@
|
|
|
3
3
|
* en cambios su propiedad de autoFocus o visible, el Efecto de autonEnfoque se activa, haciendo
|
|
4
4
|
* que el mapa se ajuste a los límites de las capas que tienen auto focus.
|
|
5
5
|
* @author Juan Escobar
|
|
6
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
7
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
8
|
+
* @updatedUser Juan Escobar - automatic
|
|
6
9
|
*/
|
|
7
10
|
export declare function useAutoFocus(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { useMap } from "react-leaflet";
|
|
3
|
-
import throttle from "lodash
|
|
3
|
+
import throttle from "lodash-es/throttle";
|
|
4
4
|
import { shallow } from "zustand/shallow";
|
|
5
5
|
import L__default from "leaflet";
|
|
6
6
|
import { u as useMapStore } from "../useMapStore/index.js";
|
|
@@ -6,6 +6,10 @@ interface PolylineWithArrowsProps extends PolylineProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
|
+
* @author Juan Escobar - automatic
|
|
10
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
11
|
+
* @updatedUser Juan Escobar - automatic
|
|
12
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
9
13
|
*/
|
|
10
14
|
export declare const PolylineWithArrows: React.FC<PolylineWithArrowsProps>;
|
|
11
15
|
export default PolylineWithArrows;
|
|
@@ -12,7 +12,7 @@ export type LefaletLayerRef = {
|
|
|
12
12
|
* @param props
|
|
13
13
|
* @returns
|
|
14
14
|
* @createdAt 2024-10-07 16:10:36 - automatic
|
|
15
|
-
* @updatedAt 2024-10-
|
|
15
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
16
16
|
* @updatedUser Juan Escobar - automatic
|
|
17
17
|
*/
|
|
18
18
|
export declare const MyLayer: React.FC<LayerProps>;
|
|
@@ -3,8 +3,9 @@ import { IconButtonProps } from './types';
|
|
|
3
3
|
* Provee un botón con un icono para que los clientes ejecuten acciones en la plataforma web. Aporta su versión provisional de carga en red.
|
|
4
4
|
* @param props
|
|
5
5
|
* @returns
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
6
|
+
* @author Juan Escobar - automatic
|
|
7
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
8
|
+
* @updatedUser Juan Escobar - automatic
|
|
9
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
9
10
|
*/
|
|
10
11
|
export declare const IconButton: (props: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,9 +3,14 @@ import { PopupsStateWithActions, InitialPopupsStoreProps } from './types';
|
|
|
3
3
|
* Crea el Store, por defecto inicia en estado 'init'
|
|
4
4
|
* @param initProps propiedades iniciales del store
|
|
5
5
|
* @returns
|
|
6
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* Crea el store de los popups
|
|
10
|
+
* @author Juan Escobar - automatic
|
|
11
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
12
|
+
* @updatedUser Juan Escobar - automatic
|
|
13
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
9
14
|
*/
|
|
10
15
|
export declare const createPopupsStore: (initProps: InitialPopupsStoreProps) => Omit<Omit<import('zustand').StoreApi<PopupsStateWithActions>, "setState"> & {
|
|
11
16
|
setState<A extends string | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createStore } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import cloneDeep from "lodash
|
|
4
|
+
import cloneDeep from "lodash-es/cloneDeep";
|
|
5
5
|
const createPopupsStore = (initProps) => {
|
|
6
6
|
const startProps = {
|
|
7
7
|
currentZindex: initProps.baseZindex,
|
|
@@ -17,6 +17,42 @@ const createPopupsStore = (initProps) => {
|
|
|
17
17
|
popupsActions: {
|
|
18
18
|
/**
|
|
19
19
|
* TODO: Documentar
|
|
20
|
+
* @updatedUser Juan Escobar - automatic
|
|
21
|
+
* @updatedUser Juan Escobar - automatic
|
|
22
|
+
* @updatedUser Juan Escobar - automatic
|
|
23
|
+
* @updatedUser Juan Escobar - automatic
|
|
24
|
+
* @updatedUser Juan Escobar - automatic
|
|
25
|
+
* @updatedUser Juan Escobar - automatic
|
|
26
|
+
* @updatedUser Juan Escobar - automatic
|
|
27
|
+
* @updatedUser Juan Escobar - automatic
|
|
28
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
29
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
30
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
31
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
32
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
33
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
34
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
35
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
36
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
37
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
38
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
39
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
40
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
41
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
42
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
43
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
44
|
+
* @author Juan Escobar - automatic
|
|
45
|
+
* @author Juan Escobar - automatic
|
|
46
|
+
* @author Juan Escobar - automatic
|
|
47
|
+
* @author Juan Escobar - automatic
|
|
48
|
+
* @author Juan Escobar - automatic
|
|
49
|
+
* @author Juan Escobar - automatic
|
|
50
|
+
* @author Juan Escobar - automatic
|
|
51
|
+
* @author Juan Escobar - automatic
|
|
52
|
+
* @author Juan Escobar - automatic
|
|
53
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
54
|
+
* @updatedUser Juan Escobar - automatic
|
|
55
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
20
56
|
*/
|
|
21
57
|
init: (initialPopups) => {
|
|
22
58
|
set((state) => {
|
|
@@ -3,9 +3,14 @@ import { RealTimeStateWithActions, InitialRealTimeStoreProps } from './types';
|
|
|
3
3
|
* Crea el Store, por defecto inicia en estado 'init'
|
|
4
4
|
* @param initProps propiedades iniciales del store
|
|
5
5
|
* @returns
|
|
6
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* TODO: Documentar
|
|
10
|
+
* @author Juan Escobar - automatic
|
|
11
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
12
|
+
* @updatedUser Juan Escobar - automatic
|
|
13
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
9
14
|
*/
|
|
10
15
|
export declare function createRealTimeStore(initProps: InitialRealTimeStoreProps): Omit<Omit<import('zustand').StoreApi<RealTimeStateWithActions>, "setState"> & {
|
|
11
16
|
setState<A extends string | {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createStore } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import cloneDeep from "lodash
|
|
5
|
-
import merge from "lodash
|
|
4
|
+
import cloneDeep from "lodash-es/cloneDeep";
|
|
5
|
+
import merge from "lodash-es/merge";
|
|
6
6
|
function createRealTimeStore(initProps) {
|
|
7
7
|
const startProps = {
|
|
8
8
|
status: "init",
|
|
@@ -15,6 +15,18 @@ function createRealTimeStore(initProps) {
|
|
|
15
15
|
realTimeActions: {
|
|
16
16
|
/**
|
|
17
17
|
* TODO: Documentar
|
|
18
|
+
* @updatedUser Juan Escobar - automatic
|
|
19
|
+
* @updatedUser Juan Escobar - automatic
|
|
20
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
21
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
22
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
23
|
+
* @createdAt 2024-10-15 18:01:45 - automatic
|
|
24
|
+
* @author Juan Escobar - automatic
|
|
25
|
+
* @author Juan Escobar - automatic
|
|
26
|
+
* @author Juan Escobar - automatic
|
|
27
|
+
* @updatedAt 2024-10-15 18:01:45 - automatic
|
|
28
|
+
* @updatedUser Juan Escobar - automatic
|
|
29
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
18
30
|
*/
|
|
19
31
|
init: () => {
|
|
20
32
|
set((state) => {
|
|
@@ -4,5 +4,9 @@ import { ContainerSize } from '../../utils/types';
|
|
|
4
4
|
* TODO: Usar throttle para evitar llamadas innecesarias
|
|
5
5
|
* @param containerElement
|
|
6
6
|
* @returns un objeto con el ancho y alto del contenedor
|
|
7
|
+
* @author Juan Escobar - automatic
|
|
8
|
+
* @updatedAt 2024-10-15 17:33:28 - automatic
|
|
9
|
+
* @updatedUser Juan Escobar - automatic
|
|
10
|
+
* @createdAt 2024-10-15 17:33:28 - automatic
|
|
7
11
|
*/
|
|
8
12
|
export declare function useSizeContainer(containerElement?: HTMLElement | undefined | null): ContainerSize | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { T as THROTTLE_RESIZE_TIMEOUT } from "./contants.js";
|
|
3
|
-
import throttle from "lodash
|
|
3
|
+
import throttle from "lodash-es/throttle";
|
|
4
4
|
function useSizeContainer(containerElement) {
|
|
5
5
|
const [currentState, setCurrentState] = useState();
|
|
6
6
|
useEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"lint-staged": {
|
|
6
6
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"leaflet": "^1.9.4",
|
|
25
25
|
"leaflet-polylinedecorator": "^1.6.0",
|
|
26
26
|
"leaflet.markercluster": "^1.5.3",
|
|
27
|
+
"lodash-es": "^4.0.0",
|
|
27
28
|
"nprogress": "^0.2.0",
|
|
28
29
|
"qrcode.react": "^3.1.0",
|
|
29
30
|
"qs": "^6.0.0",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"react-dom": "^18.0.0",
|
|
37
38
|
"react-draggable": "^4.4.5",
|
|
38
39
|
"react-dropzone": "^14.2.2",
|
|
39
|
-
"react-helmet-async": "^
|
|
40
|
+
"react-helmet-async": "^2.0.5",
|
|
40
41
|
"react-hook-form": "^7.33.1",
|
|
41
42
|
"react-intersection-observer": "^9.4.0",
|
|
42
43
|
"react-leaflet": "^4.2.1",
|
|
@@ -51,40 +52,20 @@
|
|
|
51
52
|
"zustand": "4.3.6"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
|
-
"@m4l/core": "^2.0.
|
|
55
|
+
"@m4l/core": "^2.0.11",
|
|
55
56
|
"@m4l/graphics": "^7.0.2",
|
|
56
57
|
"@m4l/styles": "^7.0.1",
|
|
57
58
|
"@mui/lab": "5.0.0-alpha.173",
|
|
58
59
|
"@mui/material": "^5.15.19",
|
|
59
|
-
"@mui/x-date-pickers": "^6.11.1"
|
|
60
|
-
"lodash.clonedeep": "^4.0.0",
|
|
61
|
-
"lodash.debounce": "^4.0.0",
|
|
62
|
-
"lodash.isstring": "^4.0.0",
|
|
63
|
-
"lodash.merge": "^4.0.0",
|
|
64
|
-
"lodash.throttle": "^4.0.0"
|
|
65
|
-
},
|
|
66
|
-
"peerDependenciesMeta": {
|
|
67
|
-
"lodash.clonedeep": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"lodash.debounce": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"lodash.isstring": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
|
-
"lodash.merge": {
|
|
77
|
-
"optional": true
|
|
78
|
-
},
|
|
79
|
-
"lodash.throttle": {
|
|
80
|
-
"optional": true
|
|
81
|
-
}
|
|
60
|
+
"@mui/x-date-pickers": "^6.11.1"
|
|
82
61
|
},
|
|
83
62
|
"resolutions": {
|
|
84
63
|
"react": "^18.0.0",
|
|
85
64
|
"@types/react": "^18.0.0",
|
|
86
65
|
"@types/react-dom": "^18.0.0",
|
|
87
66
|
"react-dom": "^18.0.0",
|
|
67
|
+
"storybook": "^8.3.4",
|
|
68
|
+
"attr-accept": "2.2.2",
|
|
88
69
|
"@vitejs/plugin-react": "^4.0.0"
|
|
89
70
|
},
|
|
90
71
|
"overrides": {
|
|
@@ -93,7 +74,8 @@
|
|
|
93
74
|
"react": "^18.0.0",
|
|
94
75
|
"@types/react": "^18.0.0",
|
|
95
76
|
"@types/react-dom": "^18.0.0",
|
|
96
|
-
"react-dom": "^18.0.0"
|
|
77
|
+
"react-dom": "^18.0.0",
|
|
78
|
+
"attr-accept": "2.2.2"
|
|
97
79
|
},
|
|
98
80
|
"files": [
|
|
99
81
|
"*"
|