@m4l/components 0.1.76 → 0.1.78
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/export.d.ts +22 -3
- package/components/AccountPopover/{index.47cf6c43.js → index.7e76dbb7.js} +8 -7
- package/components/AppBar/{index.f04f5e45.js → index.06858422.js} +8 -7
- package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.d536ccfa.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.a915b105.js} +19 -19
- package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.14e65d6c.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.aa1648eb.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e376a68e.js → index.52125041.js} +17 -18
- package/components/DataGrid/{index.ffaf000e.js → index.9fb3e6a1.js} +40 -31
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/constants.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +6 -1
- package/components/DynamicFilter/{index.d7c03a61.js → index.d1a2e2d1.js} +54 -47
- package/components/DynamicFilter/tests/contants.d.ts +2 -3
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.0905a698.js +353 -0
- package/components/GridLayout/WidthProvider/index.9a26dfe4.js +65 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/index.da6fd387.js +1410 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +26 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +78 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +64 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +69 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.9864f773.js → index.a019742c.js} +8 -7
- package/components/Icon/{index.9dae8337.js → index.9fcd1476.js} +1 -1
- package/components/LanguagePopover/{index.938c6675.js → index.98b63dcb.js} +8 -7
- package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
- package/components/ModalDialog/{index.d9c5d400.js → index.d9937d46.js} +8 -56
- package/components/NavLink/{index.21c8fd90.js → index.a5dea6d3.js} +8 -7
- package/components/ObjectLogs/{index.a2709fc2.js → index.d9d20b9d.js} +27 -21
- package/components/ObjectLogs/types.d.ts +1 -0
- package/components/PaperForm/{index.5e1bc99f.js → index.ba38a0bd.js} +1 -1
- package/components/Period/{index.526791a3.js → index.7b94c418.js} +22 -23
- package/components/PropertyValue/constants.d.ts +3 -0
- package/components/PropertyValue/{index.8a1adf3e.js → index.45c73161.js} +17 -11
- package/components/PropertyValue/types.d.ts +2 -1
- package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.9e1a5b96.js → index.2f497e6c.js} +5 -5
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +5 -0
- package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.43ecd998.js} +167 -81
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.14e62059.js} +326 -345
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/components/index.a87653a9.js +29 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +8 -16
- package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.02c4e7be.js} +262 -336
- package/components/areas/contexts/AreasContext/types.d.ts +22 -20
- package/components/areas/contexts/{index.1809650a.js → index.1ff9b360.js} +1 -1
- package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
- package/components/areas/dictionary.d.ts +4 -1
- package/components/areas/hooks/useAreas/{index.40917e99.js → index.85e4b2e2.js} +1 -1
- package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
- package/components/areas/icons.d.ts +4 -0
- package/components/areas/{index.9bd48013.js → index.d1dcccf5.js} +12 -11
- package/components/areas/types.d.ts +29 -22
- package/components/formatters/BooleanFormatter/{index.431dc923.js → index.e8de8e4c.js} +1 -1
- package/components/formatters/{index.e1af75e6.js → index.67aeb049.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.6aa51705.js} +25 -13
- package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.1a3dfe5f.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.a08a65b3.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.d330709b.js → index.4d671108.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.39b4be49.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e5336d09.js → index.9004e898.js} +5 -5
- package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.bed8573e.js} +9 -11
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.a0c0b322.js} +10 -9
- package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.6c063f2d.js} +19 -19
- package/components/modal/classes/index.d.ts +1 -0
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/{index.1b25b61d.js → index.00efea85.js} +19 -17
- package/components/mui_extended/Accordion/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/{index.3faafd8b.js → index.9877f7bf.js} +8 -9
- package/components/mui_extended/Accordion/types.d.ts +1 -0
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
- package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.12f1a3c3.js} +4 -1
- package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.43a2e1ae.js} +41 -13
- package/components/mui_extended/MenuActions/index.d.ts +3 -2
- package/components/mui_extended/MenuActions/types.d.ts +9 -0
- package/components/mui_extended/Pager/{index.67bda2c5.js → index.2f6d6d7d.js} +1 -1
- package/components/mui_extended/Tab/constant.d.ts +1 -0
- package/components/mui_extended/Tab/{index.9e2f6e34.js → index.7c82e43d.js} +5 -6
- package/components/mui_extended/Tab/types.d.ts +1 -0
- package/components/mui_extended/{index.73e536de.js → index.0e2ff642.js} +8 -7
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.699f95fa.js → index.e9a7ba4a.js} +1 -1
- package/hooks/useModal/{index.7b7d26ba.js → index.8e85f7ae.js} +1 -1
- package/index.js +228 -214
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
- package/test/getNameDataTestId.d.ts +1 -0
- package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
- package/vendor.e353394b.js +124 -0
- package/components/DynamicFilter/tests/types.d.ts +0 -2
- package/components/DynamicFilter/tests/utils.d.ts +0 -2
- package/components/PropertyValue/tests/constants.d.ts +0 -1
- package/components/PropertyValue/tests/utils.d.ts +0 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/areas/components/index.2bb534cb.js +0 -28
- package/components/modal/ModalDialog/types.d.ts +0 -7
- package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
- package/components/mui_extended/Tab/tests/constants.d.ts +0 -1
- package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
|
@@ -4,4 +4,4 @@ import { GridLayoutProps } from './types';
|
|
|
4
4
|
* @description Retorna el componente GridLayout con las ventanas (layouts) y popups tomados del área de trabajo.
|
|
5
5
|
* @returns JSX
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const AreaGridLayout: (props: GridLayoutProps) => import("react").JSX.Element;
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WindowProps } from './types';
|
|
3
|
-
export declare const Window: (props: WindowProps) => React.JSX.Element;
|
|
4
|
-
export declare const MemonizedWindow: React.MemoExoticComponent<(props: WindowProps) => React.JSX.Element>;
|
|
3
|
+
export declare const Window: (props: WindowProps) => React.JSX.Element | null;
|
|
4
|
+
export declare const MemonizedWindow: React.MemoExoticComponent<(props: WindowProps) => React.JSX.Element | null>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare type HeaderProps = {
|
|
4
|
-
areaId: string;
|
|
5
|
-
windowId: string;
|
|
6
|
-
emergeType: EmergeType;
|
|
7
|
-
};
|
|
2
|
+
import { HeaderProps } from './types';
|
|
8
3
|
export declare function Header(props: HeaderProps): import("react").JSX.Element;
|
|
9
|
-
export {};
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WindowBaseProps } from '../../../../../../types';
|
|
2
|
-
export declare type WindowProps = Pick<WindowBaseProps, '
|
|
2
|
+
export declare type WindowProps = Pick<WindowBaseProps, 'windowId' | 'areaId'>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "@m4l/core";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "../../Icon/index.9fcd1476.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "zustand";
|
|
10
|
+
import "../contexts/AreasContext/index.02c4e7be.js";
|
|
11
|
+
import "./AreasAdmin/index.43ecd998.js";
|
|
12
|
+
import "zustand/shallow";
|
|
13
|
+
import "../../ScrollBar/index.bbe48f4d.js";
|
|
14
|
+
import "../../mui_extended/Accordion/index.9877f7bf.js";
|
|
15
|
+
import "../../mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../../mui_extended/Button/index.4288f9fc.js";
|
|
20
|
+
import "../../mui_extended/Badge/index.8c2b8b66.js";
|
|
21
|
+
import "../../Image/index.c18ebf5a.js";
|
|
22
|
+
import "@mui/lab";
|
|
23
|
+
import "../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
24
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
25
|
+
import "../../mui_extended/Pager/index.2f6d6d7d.js";
|
|
26
|
+
import "../../mui_extended/Tab/index.7c82e43d.js";
|
|
27
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
28
|
+
import "./AreasViewer/index.14e62059.js";
|
|
29
|
+
import "../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { WritableDraft } from 'immer/dist/internal';
|
|
2
|
-
import type { Layouts } from 'react-grid-layout';
|
|
3
2
|
import type { Area, AreasStateWithActions } from './types';
|
|
4
|
-
import type {
|
|
5
|
-
import type { HashWindowsByLayouts, WindowState, WindowStateProps } from '../../types';
|
|
3
|
+
import type { WindowState, WindowStateProps } from '../../types';
|
|
6
4
|
export declare const ROW_HEIGTH_GRIDLAYOUT = 20;
|
|
7
|
-
export declare const
|
|
5
|
+
export declare const PADDING_GRIDLAYOUT = 3;
|
|
8
6
|
export declare const MARGIN_GRIDLAYOUT = 5;
|
|
9
7
|
export declare const DEBOUCED_SAVE_TIME = 500;
|
|
10
8
|
export declare const THROTTLE_RESIZE_TIME = 300;
|
|
@@ -24,13 +22,7 @@ export declare const NORMALIZED_COLS: {
|
|
|
24
22
|
xs: number;
|
|
25
23
|
xxs: number;
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
lg: number;
|
|
29
|
-
md: number;
|
|
30
|
-
sm: number;
|
|
31
|
-
xs: number;
|
|
32
|
-
xxs: number;
|
|
33
|
-
};
|
|
25
|
+
import { Layouts } from '../../../GridLayout/subcomponents/Responsive/types';
|
|
34
26
|
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading' | 'toasties' | 'toastyCount' | 'hashToasties'>;
|
|
35
27
|
export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'loadWindows' | 'viewMode'>;
|
|
36
28
|
/**
|
|
@@ -49,13 +41,13 @@ export declare const addArea: (state: WritableDraft<AreasStateWithActions>) => s
|
|
|
49
41
|
export declare const updateOwnerStateClasses: (state: WritableDraft<AreasStateWithActions>) => void;
|
|
50
42
|
export declare const getCurrentArea: (state: WritableDraft<AreasStateWithActions> | AreasStateWithActions) => Area;
|
|
51
43
|
export declare const getParmsFromValue: (key: string, data: []) => any;
|
|
52
|
-
export declare function
|
|
44
|
+
export declare function setColapsedLayoutBreakPoints(state: WritableDraft<Area>, layoutId: string, colapsed: boolean): void;
|
|
53
45
|
export declare function deleteLayoutFromBreakPoints(state: WritableDraft<Area>, layoutId?: string): void;
|
|
54
|
-
export declare function
|
|
46
|
+
export declare function purgeToastsWindow(state: WritableDraft<AreasStateWithActions>, windowId: string): void;
|
|
47
|
+
export declare function purgeToastsArea(state: WritableDraft<AreasStateWithActions>, areaId: string): void;
|
|
55
48
|
export declare function getDataFromResponse(data: any, state: WritableDraft<AreasStateWithActions>, areaId: string): {
|
|
56
|
-
newBreakPointsLayouts:
|
|
57
|
-
|
|
58
|
-
newHashWindowLayouts: HashWindowsByLayouts;
|
|
49
|
+
newBreakPointsLayouts: Layouts;
|
|
50
|
+
newHashLayoutItems: string[];
|
|
59
51
|
};
|
|
60
52
|
export declare function getCookiesContainer(data: any, containerId: string): Record<string, any>;
|
|
61
53
|
export declare const verifyRemoveToasty: (state: WritableDraft<WindowStateProps>, toastyId: number, forceRemove?: boolean | undefined) => void;
|