@m4l/components 9.3.1-B21072025-beta.1 → 9.3.1-BE24072025-beta.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/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +0 -2
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/SettingsLayout/SettingsLayout.styles.js +67 -42
- package/components/SettingsLayout/icons.d.ts +1 -0
- package/components/SettingsLayout/icons.js +2 -1
- package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +1 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.js +1 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +4 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +10 -5
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +2 -2
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +7 -3
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +1 -1
- package/components/SettingsLayout/types.d.ts +1 -1
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/package.json +3 -3
|
@@ -17,7 +17,6 @@ function getComparator(columns, sortColumn) {
|
|
|
17
17
|
return column.customSort;
|
|
18
18
|
}
|
|
19
19
|
switch (typeOrder) {
|
|
20
|
-
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
21
20
|
case "number":
|
|
22
21
|
return (a, b) => {
|
|
23
22
|
try {
|
|
@@ -26,7 +25,6 @@ function getComparator(columns, sortColumn) {
|
|
|
26
25
|
return -1;
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
|
-
//Por defecto retorna una función de ordenamiento de string
|
|
30
28
|
default:
|
|
31
29
|
return (a, b) => {
|
|
32
30
|
try {
|
|
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
60
59
|
case "numberInput:inputChange":
|
|
61
60
|
onChange?.(event, fieldValue);
|
|
62
61
|
break;
|
|
63
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
64
62
|
case "numberInput:clamp":
|
|
65
63
|
onChange?.(event, fieldValue);
|
|
66
64
|
break;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PRIMARY_COLORS_LIGHT, PRIMARY_COLORS_DARK } from "@m4l/styles";
|
|
2
|
+
import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
2
3
|
import { v as varFade } from "../animate/variants/fade.js";
|
|
4
|
+
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
5
|
const settingsLayoutStyles = {
|
|
4
6
|
/**
|
|
5
7
|
* Estilos css de la ranura root
|
|
@@ -159,6 +161,16 @@ const settingsLayoutStyles = {
|
|
|
159
161
|
} : {}
|
|
160
162
|
} : {}
|
|
161
163
|
}),
|
|
164
|
+
/**
|
|
165
|
+
* Estilos css de la ranura settingItemColorContainer
|
|
166
|
+
*/
|
|
167
|
+
settingItemColorContainer: () => ({
|
|
168
|
+
display: "flex",
|
|
169
|
+
flexDirection: "row",
|
|
170
|
+
width: "auto",
|
|
171
|
+
height: "auto",
|
|
172
|
+
position: "relative"
|
|
173
|
+
}),
|
|
162
174
|
/**
|
|
163
175
|
* Estilos css de la ranura settingItemColor
|
|
164
176
|
*/
|
|
@@ -166,55 +178,63 @@ const settingsLayoutStyles = {
|
|
|
166
178
|
const presetColor = ownerState?.color ?? "patronus";
|
|
167
179
|
const presetPalette = ownerState?.mode === "light" ? PRIMARY_COLORS_LIGHT[presetColor] : PRIMARY_COLORS_DARK[presetColor];
|
|
168
180
|
return {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
+
...getSizeStyles(
|
|
182
|
+
theme,
|
|
183
|
+
ownerState?.size || "medium",
|
|
184
|
+
"box",
|
|
185
|
+
(size) => ({
|
|
186
|
+
width: size,
|
|
187
|
+
height: size
|
|
188
|
+
})
|
|
189
|
+
),
|
|
190
|
+
"&:focus-visible": {
|
|
191
|
+
borderColor: theme.vars.palette.border.main,
|
|
192
|
+
boxShadow: theme.vars.customShadows?.primary,
|
|
193
|
+
"&:after": {
|
|
194
|
+
content: '""',
|
|
195
|
+
position: "absolute",
|
|
196
|
+
inset: "-4px",
|
|
197
|
+
borderRadius: "40% / 45%",
|
|
198
|
+
boxShadow: `0 0 0 1px ${presetPalette.focus}`,
|
|
199
|
+
zIndex: 1
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
...ownerState?.selected ? {
|
|
203
|
+
"&:before": {
|
|
204
|
+
content: '""',
|
|
205
|
+
position: "absolute",
|
|
206
|
+
inset: "0",
|
|
207
|
+
borderRadius: theme.vars.size.borderRadius.r3,
|
|
208
|
+
boxShadow: `0 0 0 1px ${presetPalette.enabled}`,
|
|
209
|
+
backgroundColor: presetPalette.enabledOpacity,
|
|
210
|
+
zIndex: 1
|
|
211
|
+
}
|
|
212
|
+
} : {},
|
|
213
|
+
"& .M4LIcon-icon": {
|
|
214
|
+
display: "flex",
|
|
215
|
+
flexDirection: "row",
|
|
216
|
+
backgroundColor: presetPalette.enabled,
|
|
217
|
+
outline: "unset",
|
|
218
|
+
position: "relative",
|
|
219
|
+
overflow: "visible",
|
|
181
220
|
transition: "all 0.3s ease",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
boxShadow: theme.vars.customShadows?.primary,
|
|
191
|
-
"&:after": {
|
|
192
|
-
content: '""',
|
|
193
|
-
position: "absolute",
|
|
194
|
-
inset: "-5px",
|
|
195
|
-
borderRadius: theme.vars.size.borderRadius.r3,
|
|
196
|
-
boxShadow: `0 0 0 1px ${presetPalette.focus}`,
|
|
197
|
-
zIndex: 1
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
...ownerState?.selected ? {
|
|
201
|
-
"&:before": {
|
|
202
|
-
content: '""',
|
|
203
|
-
position: "absolute",
|
|
204
|
-
inset: "-5px",
|
|
205
|
-
borderRadius: theme.vars.size.borderRadius.r3,
|
|
206
|
-
boxShadow: `0 0 0 1px ${presetPalette.enabled}`,
|
|
207
|
-
backgroundColor: presetPalette.enabledOpacity,
|
|
208
|
-
zIndex: 1
|
|
221
|
+
...ownerState?.onChange ? {
|
|
222
|
+
cursor: "pointer",
|
|
223
|
+
transition: "all 0.3s ease",
|
|
224
|
+
"&:hover": {
|
|
225
|
+
backgroundColor: presetPalette.hover
|
|
226
|
+
},
|
|
227
|
+
"&:active": {
|
|
228
|
+
backgroundColor: presetPalette.active
|
|
209
229
|
}
|
|
210
230
|
} : {}
|
|
211
|
-
}
|
|
231
|
+
}
|
|
212
232
|
};
|
|
213
233
|
},
|
|
214
234
|
/**
|
|
215
235
|
* Estilos css de la ranura settingFullscreen
|
|
216
236
|
*/
|
|
217
|
-
settingFullscreen: ({ theme }) => ({
|
|
237
|
+
settingFullscreen: ({ theme, ownerState }) => ({
|
|
218
238
|
/* borderRadius: theme.vars.size.borderRadius['r1-5'],
|
|
219
239
|
border: 'unset',
|
|
220
240
|
outline: 'unset', */
|
|
@@ -224,7 +244,12 @@ const settingsLayoutStyles = {
|
|
|
224
244
|
justifyContent: "center",
|
|
225
245
|
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
226
246
|
"& .MuiTypography-root": {
|
|
227
|
-
width: "fit-content"
|
|
247
|
+
width: "fit-content",
|
|
248
|
+
...getTypographyStyles(
|
|
249
|
+
theme.generalSettings.isMobile,
|
|
250
|
+
ownerState?.size || "medium",
|
|
251
|
+
"bodyDens"
|
|
252
|
+
)
|
|
228
253
|
}
|
|
229
254
|
}),
|
|
230
255
|
/**
|
|
@@ -9,7 +9,8 @@ const PATH_ICONS = {
|
|
|
9
9
|
ALIGN_LEFT: "frontend/components/setting_layout/assets/icons/align-start-vertical.svg",
|
|
10
10
|
ALIGN_RIGHT: "frontend/components/setting_layout/assets/icons/align-end-vertical.svg",
|
|
11
11
|
FULLSCREEN: "frontend/components/setting_layout/assets/icons/FrameCorners.svg",
|
|
12
|
-
FULLSCREEN_EXIT: "frontend/components/setting_layout/assets/icons/exit_fullscreen.svg"
|
|
12
|
+
FULLSCREEN_EXIT: "frontend/components/setting_layout/assets/icons/exit_fullscreen.svg",
|
|
13
|
+
COLOR: "frontend/components/setting_layout/assets/icons/color_preset.svg"
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
16
|
PATH_ICONS as P
|
|
@@ -11,6 +11,7 @@ export declare enum SettingsLayoutSlots {
|
|
|
11
11
|
settingIconTitle = "settingIconTitle",
|
|
12
12
|
settingItem = "settingItem",
|
|
13
13
|
settingItemColor = "settingItemColor",
|
|
14
|
+
settingItemColorContainer = "settingItemColorContainer",
|
|
14
15
|
settingItemContent = "settingItemContent",
|
|
15
16
|
settingFullscreen = "settingFullscreen"
|
|
16
17
|
}
|
|
@@ -11,6 +11,7 @@ var SettingsLayoutSlots = /* @__PURE__ */ ((SettingsLayoutSlots2) => {
|
|
|
11
11
|
SettingsLayoutSlots2["settingIconTitle"] = "settingIconTitle";
|
|
12
12
|
SettingsLayoutSlots2["settingItem"] = "settingItem";
|
|
13
13
|
SettingsLayoutSlots2["settingItemColor"] = "settingItemColor";
|
|
14
|
+
SettingsLayoutSlots2["settingItemColorContainer"] = "settingItemColorContainer";
|
|
14
15
|
SettingsLayoutSlots2["settingItemContent"] = "settingItemContent";
|
|
15
16
|
SettingsLayoutSlots2["settingFullscreen"] = "settingFullscreen";
|
|
16
17
|
return SettingsLayoutSlots2;
|
|
@@ -36,7 +36,10 @@ export declare const SettingItemStyled: import('@emotion/styled').StyledComponen
|
|
|
36
36
|
export declare const SettingItemContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
37
37
|
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
38
38
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
39
|
-
export declare const SettingItemColorStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
39
|
+
export declare const SettingItemColorStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').IconProps, keyof import('../..').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
40
|
+
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
export declare const SettingItemColorContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
40
43
|
ownerState?: (Partial<import('../types').SettingsLayoutOwnerState> & Record<string, unknown>) | undefined;
|
|
41
44
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
42
45
|
export declare const SettingFullscreenStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
@@ -54,10 +54,14 @@ const SettingItemContentStyled = styled("div", {
|
|
|
54
54
|
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
55
55
|
slot: SettingsLayoutSlots.settingItemContent
|
|
56
56
|
})(settingsLayoutStyles.settingItemContent);
|
|
57
|
-
const SettingItemColorStyled = styled(
|
|
57
|
+
const SettingItemColorStyled = styled(Icon, {
|
|
58
58
|
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
59
59
|
slot: SettingsLayoutSlots.settingItemColor
|
|
60
60
|
})(settingsLayoutStyles.settingItemColor);
|
|
61
|
+
const SettingItemColorContainerStyled = styled("div", {
|
|
62
|
+
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
63
|
+
slot: SettingsLayoutSlots.settingItemColorContainer
|
|
64
|
+
})(settingsLayoutStyles.settingItemColorContainer);
|
|
61
65
|
const SettingFullscreenStyled = styled(Button, {
|
|
62
66
|
name: SETTINGS_LAYOUT_COMPONENT_KEY,
|
|
63
67
|
slot: SettingsLayoutSlots.settingFullscreen
|
|
@@ -71,8 +75,9 @@ export {
|
|
|
71
75
|
SettingItemContentStyled as b,
|
|
72
76
|
SettingFullscreenStyled as c,
|
|
73
77
|
SettingItemStyled as d,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
SettingItemColorContainerStyled as e,
|
|
79
|
+
SettingItemColorStyled as f,
|
|
80
|
+
SettingsLayoutRootStyled as g,
|
|
81
|
+
HeaderActionsStyled as h,
|
|
82
|
+
BodyContentStyled as i
|
|
78
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Icon } from "
|
|
3
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
4
4
|
import { useBase, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { D as DICTIONARY } from "../../dictionary.js";
|
|
6
6
|
import { P as PATH_ICONS } from "../../icons.js";
|
|
@@ -22,7 +22,7 @@ const SettingFullscreen = () => {
|
|
|
22
22
|
SettingFullscreenStyled,
|
|
23
23
|
{
|
|
24
24
|
fullWidth: true,
|
|
25
|
-
variant: "
|
|
25
|
+
variant: "contained",
|
|
26
26
|
color: "default",
|
|
27
27
|
startIcon: /* @__PURE__ */ jsx(
|
|
28
28
|
Icon,
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { e as SettingItemColorStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
2
|
+
import { e as SettingItemColorContainerStyled, f as SettingItemColorStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
3
|
+
import { P as PATH_ICONS } from "../../icons.js";
|
|
4
|
+
import { useEnvironment } from "@m4l/core";
|
|
3
5
|
const SettingItemColor = (props) => {
|
|
4
6
|
const { onChange, selected, color } = props;
|
|
5
|
-
|
|
7
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
8
|
+
return /* @__PURE__ */ jsx(SettingItemColorContainerStyled, { children: /* @__PURE__ */ jsx(
|
|
6
9
|
SettingItemColorStyled,
|
|
7
10
|
{
|
|
11
|
+
src: `${host_static_assets}/${environment_assets}/${PATH_ICONS.COLOR}`,
|
|
8
12
|
...onChange ? {
|
|
9
13
|
onClick: onChange,
|
|
10
14
|
tabIndex: 0,
|
|
@@ -13,7 +17,7 @@ const SettingItemColor = (props) => {
|
|
|
13
17
|
} : {},
|
|
14
18
|
ownerState: { selected, onChange: !!onChange, color }
|
|
15
19
|
}
|
|
16
|
-
);
|
|
20
|
+
) });
|
|
17
21
|
};
|
|
18
22
|
export {
|
|
19
23
|
SettingItemColor as S
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Icon } from "
|
|
2
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
3
3
|
import { useBase, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { P as PATH_ICONS } from "../../icons.js";
|
|
5
5
|
import { D as DICTIONARY } from "../../dictionary.js";
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { AnimatePresence } from "framer-motion";
|
|
3
3
|
import { useBase, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { P as PATH_ICONS } from "../../icons.js";
|
|
5
|
-
import { B as BackdropStyled,
|
|
5
|
+
import { B as BackdropStyled, g as SettingsLayoutRootStyled, H as HeaderContainerStyled, T as TypographyStyled, h as HeaderActionsStyled, i as BodyContentStyled } from "../../slots/SettingsLayoutSlots.js";
|
|
6
6
|
import { S as SettingDirection } from "../SettingDirection/SettingDirection.js";
|
|
7
7
|
import { D as DICTIONARY } from "../../dictionary.js";
|
|
8
8
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M4LOverridesStyleRules } from '
|
|
1
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
2
2
|
import { SettingsLayoutSlots } from './slots/SettingsLayoutEnum';
|
|
3
3
|
import { SETTINGS_LAYOUT_CLASSES, SETTINGS_LAYOUT_COMPONENT_KEY } from './constants';
|
|
4
4
|
import { Theme } from '@mui/material';
|
|
@@ -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
|
}
|
|
@@ -65,11 +65,6 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
65
65
|
...state,
|
|
66
66
|
isOpen: false
|
|
67
67
|
};
|
|
68
|
-
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
69
|
-
// return {
|
|
70
|
-
// ...state,
|
|
71
|
-
// selectedOptions: action.payload,
|
|
72
|
-
// };
|
|
73
68
|
default:
|
|
74
69
|
return state;
|
|
75
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.1-
|
|
3
|
+
"version": "9.3.1-BE24072025-beta.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
12
12
|
"@hookform/resolvers": "2.9.11",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
|
-
"@m4l/graphics": "7.1.3-
|
|
15
|
-
"@m4l/styles": "7.1.31-
|
|
14
|
+
"@m4l/graphics": "7.1.3-BE24072025-beta.2",
|
|
15
|
+
"@m4l/styles": "7.1.31-BE24072025-beta.2",
|
|
16
16
|
"@microlink/react-json-view": "^1.23.3",
|
|
17
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
18
18
|
"@mui/material": "5.16.7",
|