@m4l/components 9.3.1 → 9.3.2
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/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +4 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +50 -47
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +5 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +12 -7
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +7 -1
- package/components/formatters/ChipStatusFormatter/types.d.ts +9 -1
- package/components/hook-form/RHFormContext/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/mockServiceWorker.js +1 -1
- package/package.json +1 -1
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +1 -1
- /package/storybook/components/{appBar → AppBar}/AppBar.stories.d.ts +0 -0
|
@@ -17,11 +17,11 @@ declare function usePopoverFilter(): {
|
|
|
17
17
|
filterFormValue: FormFilterValue;
|
|
18
18
|
formFilter: FormFilterFieldApplied;
|
|
19
19
|
popupValidationSchema: import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ObjectSchema<{
|
|
20
|
-
[x: string]: import('yup').ObjectSchema
|
|
20
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
21
21
|
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema
|
|
22
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -17,11 +17,11 @@ declare function usePopoverSort(): {
|
|
|
17
17
|
sortFormValue: import('../../types').FormSortValueBase;
|
|
18
18
|
formSort: FormSortFieldApplied;
|
|
19
19
|
popupValidationSchema: import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ObjectSchema<{
|
|
20
|
-
[x: string]: import('yup').ObjectSchema
|
|
20
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
21
21
|
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema
|
|
22
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -5,7 +5,7 @@ import { UseHeaderActionsParams } from '../types';
|
|
|
5
5
|
*
|
|
6
6
|
* Retorna las acciones del header de una ventana. Izquierda, derecha y dentro del menu.
|
|
7
7
|
*/
|
|
8
|
-
export declare const useHeaderActions: ({ windowId, areaId, }: UseHeaderActionsParams) => {
|
|
8
|
+
export declare const useHeaderActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => {
|
|
9
9
|
leftActions: WindowBaseAction[];
|
|
10
10
|
insideActions: WindowBaseAction[];
|
|
11
11
|
rightActions: WindowBaseAction[];
|
|
@@ -7,7 +7,8 @@ import { g as getLeftActions, a as getInsideMenuActions } from "../../../../../.
|
|
|
7
7
|
import { u as useRightActions } from "./useRightActions.js";
|
|
8
8
|
const useHeaderActions = ({
|
|
9
9
|
windowId,
|
|
10
|
-
areaId
|
|
10
|
+
areaId,
|
|
11
|
+
emergeType
|
|
11
12
|
}) => {
|
|
12
13
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
14
|
const { getLabel } = useModuleDictionary();
|
|
@@ -45,7 +46,8 @@ const useHeaderActions = ({
|
|
|
45
46
|
}, [windowId, isMobile, moduleActions, urlPrefix, saveModuleCookies, resetModuleCookies, windowOptions, getLabel]);
|
|
46
47
|
const rightActions = useRightActions({
|
|
47
48
|
windowId,
|
|
48
|
-
areaId
|
|
49
|
+
areaId,
|
|
50
|
+
emergeType
|
|
49
51
|
});
|
|
50
52
|
return {
|
|
51
53
|
leftActions,
|
|
@@ -3,4 +3,4 @@ import { UseHeaderActionsParams } from '../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Hook useRightActions, retorna las acciones de maximizar y minimizar una ventana, colapsar y expandir una ventana
|
|
5
5
|
*/
|
|
6
|
-
export declare const useRightActions: ({ windowId, areaId, }: UseHeaderActionsParams) => WindowBaseAction[];
|
|
6
|
+
export declare const useRightActions: ({ windowId, areaId, emergeType, }: UseHeaderActionsParams) => WindowBaseAction[];
|
|
@@ -6,7 +6,8 @@ import { I as ICONS } from "../../../../../../../icons.js";
|
|
|
6
6
|
import { g as getAreasDictionary, A as AREAS_DICCTIONARY } from "../../../../../../../dictionary.js";
|
|
7
7
|
const useRightActions = ({
|
|
8
8
|
windowId,
|
|
9
|
-
areaId
|
|
9
|
+
areaId,
|
|
10
|
+
emergeType
|
|
10
11
|
}) => {
|
|
11
12
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
12
13
|
const { getLabel } = useModuleDictionary();
|
|
@@ -29,54 +30,56 @@ const useRightActions = ({
|
|
|
29
30
|
const { maximizeLayout, normalizeLayouts, colapseLayoutItem, unColapseLayoutItem } = useAreasStore((state) => state.areaActions);
|
|
30
31
|
const rightActions = useMemo(() => {
|
|
31
32
|
const actions = [];
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
if (emergeType === "layout") {
|
|
34
|
+
actions.push({
|
|
35
|
+
place: "right",
|
|
36
|
+
key: "collapseToggle",
|
|
37
|
+
iconUrl: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLLPASE}`,
|
|
38
|
+
label: !collapsed ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_collapse_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_uncollapse_window)),
|
|
39
|
+
tooltipProps: {
|
|
40
|
+
placement: "bottom-end"
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Acción de collapse/expand.
|
|
44
|
+
*/
|
|
45
|
+
onClick: () => {
|
|
46
|
+
if (areaId) {
|
|
47
|
+
if (collapsed) {
|
|
48
|
+
unColapseLayoutItem(areaId, windowId);
|
|
49
|
+
} else {
|
|
50
|
+
colapseLayoutItem(areaId, windowId);
|
|
51
|
+
}
|
|
49
52
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
},
|
|
54
|
+
disabled: !(maximizedId === void 0),
|
|
55
|
+
color: "warning",
|
|
56
|
+
className: "collapse-toggle window-actions"
|
|
57
|
+
});
|
|
58
|
+
actions.push({
|
|
59
|
+
place: "right",
|
|
60
|
+
key: "maximize",
|
|
61
|
+
iconUrl: maximizedId ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.NORMALIZE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.MAXIMIZE}`,
|
|
62
|
+
label: maximizedId ? getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_minimize_window)) : getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_maximize_window)),
|
|
63
|
+
tooltipProps: {
|
|
64
|
+
placement: "bottom-end"
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Acción de maximize/normalize.
|
|
68
|
+
*/
|
|
69
|
+
onClick: () => {
|
|
70
|
+
if (areaId) {
|
|
71
|
+
if (maximizedId) {
|
|
72
|
+
normalizeLayouts(areaId);
|
|
73
|
+
} else {
|
|
74
|
+
maximizeLayout(areaId, windowId);
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
77
|
+
},
|
|
78
|
+
disabled: false,
|
|
79
|
+
color: "info",
|
|
80
|
+
className: "expand-toggle window-actions"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
80
83
|
return actions;
|
|
81
84
|
}, [
|
|
82
85
|
collapsed,
|
|
@@ -75,7 +75,8 @@ const useWindow = (windowId, areaId) => {
|
|
|
75
75
|
}, [status, loadCookiesFromApi, windowId]);
|
|
76
76
|
const { leftActions, insideActions: menuActions, rightActions } = useHeaderActions({
|
|
77
77
|
windowId,
|
|
78
|
-
areaId
|
|
78
|
+
areaId,
|
|
79
|
+
emergeType
|
|
79
80
|
});
|
|
80
81
|
const memoizedActions = useMemo(() => {
|
|
81
82
|
return [...leftActions, ...menuActions, ...rightActions];
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WindowBaseAction } from '../../../../../../../../../src/components/WindowBase/types';
|
|
2
|
-
import { AreaWindowBaseProps } from '../../../../../../types';
|
|
2
|
+
import { AreaWindowBaseProps, EmergeType } from '../../../../../../types';
|
|
3
3
|
export interface WindowProps extends Pick<AreaWindowBaseProps, 'windowId' | 'areaId'> {
|
|
4
4
|
/**
|
|
5
5
|
* Acciones que se mostrarán en el header
|
|
@@ -9,4 +9,8 @@ export interface WindowProps extends Pick<AreaWindowBaseProps, 'windowId' | 'are
|
|
|
9
9
|
export interface UseHeaderActionsParams {
|
|
10
10
|
windowId: string;
|
|
11
11
|
areaId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* emergeType: 'popup' | 'modal'
|
|
14
|
+
*/
|
|
15
|
+
emergeType: EmergeType;
|
|
12
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
3
|
import { u as useAreasStore } from "../../../../../../hooks/useAreas/index.js";
|
|
4
4
|
import { W as Window } from "../Window/Window.js";
|
|
5
5
|
import { useIsMobile } from "@m4l/graphics";
|
|
@@ -23,25 +23,30 @@ const AreaWindowModal = (props) => {
|
|
|
23
23
|
);
|
|
24
24
|
const isMobile = useIsMobile();
|
|
25
25
|
const [containerRef, setContainerRef] = useStateRef(null);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const DraggableComponent = useCallback(() => {
|
|
27
|
+
if (!containerRef) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
29
30
|
return /* @__PURE__ */ jsx(
|
|
30
31
|
DragResizeWindowRND,
|
|
31
32
|
{
|
|
32
33
|
containerElement: containerRef ?? void 0,
|
|
34
|
+
containerSize: {
|
|
35
|
+
containerWidth: containerRef.clientWidth,
|
|
36
|
+
containerHeight: containerRef.clientHeight
|
|
37
|
+
},
|
|
33
38
|
minWindowWidth,
|
|
34
39
|
minWindowHeight,
|
|
35
40
|
bounds: { left: 0, top: 0, right: 0, bottom: 0 },
|
|
36
41
|
resizeHandles: ["se", "nw", "sw", "ne", "n", "e", "s", "w"],
|
|
37
42
|
defaultPosition: {
|
|
38
|
-
vertical: {
|
|
39
|
-
horizontal: {
|
|
43
|
+
vertical: { height },
|
|
44
|
+
horizontal: { width }
|
|
40
45
|
},
|
|
41
46
|
children: /* @__PURE__ */ jsx(Window, { windowId, areaId: void 0 })
|
|
42
47
|
}
|
|
43
48
|
);
|
|
44
|
-
};
|
|
49
|
+
}, [containerRef, windowId, minWindowWidth, minWindowHeight, height, width]);
|
|
45
50
|
return /* @__PURE__ */ jsx(
|
|
46
51
|
WrapperWindowModalWithRef,
|
|
47
52
|
{
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -10,
|
|
445
|
+
bottom: -10
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -12,6 +12,8 @@ const ChipStatusFormatter = (props) => {
|
|
|
12
12
|
statusesColors,
|
|
13
13
|
Component = React.Fragment,
|
|
14
14
|
fallbackColor = "default",
|
|
15
|
+
fallbackVariant = "contained",
|
|
16
|
+
fallbackOpacity = true,
|
|
15
17
|
size = "medium",
|
|
16
18
|
dataTestid
|
|
17
19
|
} = props;
|
|
@@ -19,7 +21,11 @@ const ChipStatusFormatter = (props) => {
|
|
|
19
21
|
if (!status) {
|
|
20
22
|
return null;
|
|
21
23
|
}
|
|
22
|
-
const statusObject = statusesColors[status
|
|
24
|
+
const statusObject = statusesColors[status] || {
|
|
25
|
+
color: fallbackColor,
|
|
26
|
+
variant: fallbackVariant,
|
|
27
|
+
opacity: fallbackOpacity
|
|
28
|
+
};
|
|
23
29
|
const { color, variant, opacity = true } = statusObject;
|
|
24
30
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
25
31
|
return /* @__PURE__ */ jsx(Component, { children: /* @__PURE__ */ jsx(
|
|
@@ -26,7 +26,15 @@ export interface ChipStatusFormatterProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* Color por defecto
|
|
28
28
|
*/
|
|
29
|
-
fallbackColor?:
|
|
29
|
+
fallbackColor?: ChipColorOptions;
|
|
30
|
+
/**
|
|
31
|
+
* fallback variant
|
|
32
|
+
*/
|
|
33
|
+
fallbackVariant?: ChipVariants;
|
|
34
|
+
/**
|
|
35
|
+
* fallback opacity
|
|
36
|
+
*/
|
|
37
|
+
fallbackOpacity?: boolean;
|
|
30
38
|
/**
|
|
31
39
|
* Componente personalizado
|
|
32
40
|
*/
|
|
@@ -3,7 +3,7 @@ import { CustomFormArguments, FormProviderCustomProps, FormProviderProps } from
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Documentar
|
|
5
5
|
*/
|
|
6
|
-
export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any,
|
|
6
|
+
export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, undefined>;
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ const Accordion = forwardRef((props, ref) => {
|
|
|
23
23
|
} = props;
|
|
24
24
|
const { currentSize } = useComponentSize(size);
|
|
25
25
|
const classRoot = getComponentSlotRoot(ACCORDION_KEY);
|
|
26
|
-
const [expandedState, setExpandedState] = useState(expanded ?? true);
|
|
26
|
+
const [expandedState, setExpandedState] = useState(expanded ?? accordionProps?.defaultExpanded ?? true);
|
|
27
27
|
const handleToggle = () => {
|
|
28
28
|
setExpandedState((prev) => !prev);
|
|
29
29
|
};
|
package/mockServiceWorker.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Please do NOT serve this file on production.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
const PACKAGE_VERSION = '2.
|
|
11
|
+
const PACKAGE_VERSION = '2.7.0'
|
|
12
12
|
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
|
|
13
13
|
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
|
14
14
|
const activeClientIds = new Set()
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ interface PopupButtonProps {
|
|
|
4
4
|
iconUrl: string;
|
|
5
5
|
dynamicParams: Record<string, any>;
|
|
6
6
|
/** Si se pasa este id, se intentará reemplazar el popup existente */
|
|
7
|
-
windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout';
|
|
7
|
+
windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout' | 'microfrontend_userd_add_edit_modal';
|
|
8
8
|
replaceMeId?: string;
|
|
9
9
|
onClick?: () => void;
|
|
10
10
|
/** Callback para notificar que se ha generado un id, en caso de no recibir uno por props */
|
|
File without changes
|