@m4l/components 9.3.1-BE24072025-beta.2 → 9.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/@types/types.d.ts +0 -15
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/index.d.ts +0 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Select/index.d.ts +2 -2
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +1 -0
- package/index.js +12 -12
- package/package.json +3 -3
- package/components/SettingsLayout/SettingsLayout.d.ts +0 -5
- package/components/SettingsLayout/SettingsLayout.js +0 -50
- package/components/SettingsLayout/SettingsLayout.styles.d.ts +0 -2
- package/components/SettingsLayout/SettingsLayout.styles.js +0 -270
- package/components/SettingsLayout/constants.d.ts +0 -7
- package/components/SettingsLayout/constants.js +0 -10
- package/components/SettingsLayout/dictionary.d.ts +0 -56
- package/components/SettingsLayout/dictionary.js +0 -12
- package/components/SettingsLayout/icons.d.ts +0 -14
- package/components/SettingsLayout/icons.js +0 -17
- package/components/SettingsLayout/index.d.ts +0 -2
- package/components/SettingsLayout/index.js +0 -1
- package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +0 -17
- package/components/SettingsLayout/slots/SettingsLayoutEnum.js +0 -21
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +0 -47
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +0 -83
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.d.ts +0 -4
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +0 -34
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.d.ts +0 -4
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +0 -34
- package/components/SettingsLayout/subcomponents/SettingDirection/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.d.ts +0 -4
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +0 -40
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.d.ts +0 -8
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +0 -23
- package/components/SettingsLayout/subcomponents/SettingItem/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingItem/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingItem/types.d.ts +0 -5
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.d.ts +0 -8
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +0 -24
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingItemColor/types.d.ts +0 -6
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.d.ts +0 -4
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +0 -34
- package/components/SettingsLayout/subcomponents/SettingMode/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingMode/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.d.ts +0 -4
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +0 -76
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.d.ts +0 -1
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.js +0 -1
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/types.d.ts +0 -0
- package/components/SettingsLayout/test/SettingsLayout.test.d.ts +0 -1
- package/components/SettingsLayout/types.d.ts +0 -51
- package/components/mui_extended/Select/types.js +0 -1
- package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +0 -6
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +0 -5
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +0 -1
package/index.js
CHANGED
|
@@ -88,8 +88,9 @@ import { B as B5 } from "./components/mui_extended/Button/Button.js";
|
|
|
88
88
|
import { C as C15 } from "./components/mui_extended/CheckBox/CheckBox.js";
|
|
89
89
|
import { I as I3 } from "./components/mui_extended/ImageButton/ImageButton.js";
|
|
90
90
|
import { P as P2 } from "./components/mui_extended/Popover/Popover.js";
|
|
91
|
-
import { S as S4 } from "./components/mui_extended/
|
|
92
|
-
import { S as S5 } from "./components/mui_extended/
|
|
91
|
+
import { S as S4 } from "./components/mui_extended/Select/Select.js";
|
|
92
|
+
import { S as S5 } from "./components/mui_extended/Skeleton/Skeleton.js";
|
|
93
|
+
import { S as S6 } from "./components/mui_extended/Stack/Stack.js";
|
|
93
94
|
import { T as T4 } from "./components/mui_extended/Tab/Tab.js";
|
|
94
95
|
import { T as T5 } from "./components/mui_extended/Tabs/Tabs.js";
|
|
95
96
|
import { T as T6 } from "./components/mui_extended/TabContent/TabContent.js";
|
|
@@ -145,7 +146,7 @@ import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
|
145
146
|
import { R as R16 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
146
147
|
import { R as R17 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
147
148
|
import { R as R18 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
|
|
148
|
-
import { P as P6, R as R19, S as
|
|
149
|
+
import { P as P6, R as R19, S as S7, T as T17 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
149
150
|
import { R as R20 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
|
|
150
151
|
import { R as R21 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
151
152
|
import { I as I4 } from "./components/Icon/Icon.js";
|
|
@@ -172,8 +173,8 @@ import { a as a10, P as P9 } from "./components/popups/components/PopupsProvider
|
|
|
172
173
|
import { P as P10 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
173
174
|
import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
174
175
|
import { P as P12 } from "./components/PropertyValue/PropertyValue.js";
|
|
175
|
-
import { S as
|
|
176
|
-
import { S as
|
|
176
|
+
import { S as S8 } from "./components/ScrollBar/ScrollBar.js";
|
|
177
|
+
import { S as S9 } from "./components/SideBar/SideBar.js";
|
|
177
178
|
import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
178
179
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
179
180
|
import { W } from "./components/WindowBase/WindowBase.js";
|
|
@@ -185,7 +186,6 @@ import { D as D10, a as a13, M as M7 } from "./components/WindowBase/contexts/Dy
|
|
|
185
186
|
import { W as W3 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
186
187
|
import { a as a14, g as g27 } from "./components/ModalDialog/dictionary.js";
|
|
187
188
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
188
|
-
import { S as S9 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
189
189
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
190
190
|
import { F as F2, R as R22, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
191
191
|
import { g as g28 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
@@ -348,15 +348,15 @@ export {
|
|
|
348
348
|
R2 as ResizableBox,
|
|
349
349
|
R3 as Responsive,
|
|
350
350
|
S10 as SKELETON_SVG_ICON,
|
|
351
|
-
|
|
351
|
+
S8 as ScrollBar,
|
|
352
352
|
S as SectionCommercial,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
353
|
+
S4 as Select,
|
|
354
|
+
S7 as SelectStyled,
|
|
355
|
+
S9 as SideBar,
|
|
356
|
+
S5 as Skeleton,
|
|
357
357
|
S2 as SortCompareValues,
|
|
358
358
|
S3 as SplitLayout,
|
|
359
|
-
|
|
359
|
+
S6 as Stack,
|
|
360
360
|
T10 as TOGGLE_BUTTON_KEY_COMPONENT,
|
|
361
361
|
a8 as TOGGLE_ICON_BUTTON_CLASS_NAME_SPECIFY,
|
|
362
362
|
T14 as TOGGLE_ICON_BUTTON_KEY_COMPONENT,
|
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",
|
|
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.
|
|
15
|
-
"@m4l/styles": "7.
|
|
14
|
+
"@m4l/graphics": "^7.0.0",
|
|
15
|
+
"@m4l/styles": "^7.0.0",
|
|
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",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEnvironment, ModuleDictionaryProvider, ModuleSkeletonProvider, BaseProvider } from "@m4l/core";
|
|
3
|
-
import { useLocales } from "@m4l/graphics";
|
|
4
|
-
import { S as SETTINGS_LAYOUT_DEFAULT_WIDTH, a as SETTINGS_LAYOUT_CLASSES } from "./constants.js";
|
|
5
|
-
import { S as SettingsLayoutBase } from "./subcomponents/SettingsLayoutBase/SettingsLayoutBase.js";
|
|
6
|
-
const SettingsLayout = (props) => {
|
|
7
|
-
const {
|
|
8
|
-
onResetSetting,
|
|
9
|
-
handleOpen,
|
|
10
|
-
onChangeMode,
|
|
11
|
-
onChangeColor,
|
|
12
|
-
onChangeDirection,
|
|
13
|
-
onChangeLayout,
|
|
14
|
-
onToggleStretch,
|
|
15
|
-
open,
|
|
16
|
-
themeUserSettings,
|
|
17
|
-
presetsOptionsColorMain,
|
|
18
|
-
width = SETTINGS_LAYOUT_DEFAULT_WIDTH
|
|
19
|
-
} = props;
|
|
20
|
-
const currentLang = useLocales().currentLocale?.localeString;
|
|
21
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
22
|
-
const prefixPathIcon = `${host_static_assets}/${environment_assets}`;
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
ModuleDictionaryProvider,
|
|
25
|
-
{
|
|
26
|
-
isAuth: false,
|
|
27
|
-
moduleId: "theme_settings",
|
|
28
|
-
componentsDictionary: [],
|
|
29
|
-
currentLang,
|
|
30
|
-
children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: ["dictionary_loaded"], children: /* @__PURE__ */ jsx(BaseProvider, { value: {
|
|
31
|
-
onResetSetting,
|
|
32
|
-
handleOpen,
|
|
33
|
-
onChangeMode,
|
|
34
|
-
onChangeColor,
|
|
35
|
-
onChangeDirection,
|
|
36
|
-
onChangeLayout,
|
|
37
|
-
onToggleStretch,
|
|
38
|
-
open,
|
|
39
|
-
themeUserSettings,
|
|
40
|
-
presetsOptionsColorMain,
|
|
41
|
-
width,
|
|
42
|
-
classes: SETTINGS_LAYOUT_CLASSES,
|
|
43
|
-
prefixPathIcon
|
|
44
|
-
}, children: /* @__PURE__ */ jsx(SettingsLayoutBase, {}) }) })
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
SettingsLayout as S
|
|
50
|
-
};
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { PRIMARY_COLORS_LIGHT, PRIMARY_COLORS_DARK } from "@m4l/styles";
|
|
2
|
-
import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
3
|
-
import { v as varFade } from "../animate/variants/fade.js";
|
|
4
|
-
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
5
|
-
const settingsLayoutStyles = {
|
|
6
|
-
/**
|
|
7
|
-
* Estilos css de la ranura root
|
|
8
|
-
*/
|
|
9
|
-
root: ({ theme, ownerState }) => ({
|
|
10
|
-
top: 0,
|
|
11
|
-
right: 0,
|
|
12
|
-
bottom: 0,
|
|
13
|
-
transform: "unset!important",
|
|
14
|
-
padding: theme.vars.size.baseSpacings.sp6,
|
|
15
|
-
opacity: "1!important",
|
|
16
|
-
display: "flex",
|
|
17
|
-
position: "fixed",
|
|
18
|
-
width: ownerState?.width,
|
|
19
|
-
flexDirection: "column",
|
|
20
|
-
gap: theme.vars.size.baseSpacings.sp6,
|
|
21
|
-
boxShadow: theme.vars.customShadows?.z4,
|
|
22
|
-
overflowY: "auto",
|
|
23
|
-
zIndex: theme.zIndex.drawer + 3,
|
|
24
|
-
...ownerState?.themeDirection === "ltr" && {
|
|
25
|
-
borderTopLeftRadius: theme.vars.size.borderRadius.r3,
|
|
26
|
-
borderBottomLeftRadius: theme.vars.size.borderRadius.r3
|
|
27
|
-
},
|
|
28
|
-
...ownerState?.themeDirection === "rtl" && {
|
|
29
|
-
borderTopRightRadius: theme.vars.size.borderRadius.r3,
|
|
30
|
-
borderBottomRightRadius: theme.vars.size.borderRadius.r3
|
|
31
|
-
},
|
|
32
|
-
border: theme.vars.size.borderStroke.container,
|
|
33
|
-
borderColor: theme.vars.palette.border.secondary,
|
|
34
|
-
backgroundColor: theme.vars.palette.background.base,
|
|
35
|
-
...ownerState?.themeDirection !== "rtl" ? varFade({
|
|
36
|
-
distance: ownerState?.width,
|
|
37
|
-
durationIn: 0.32,
|
|
38
|
-
durationOut: 0.32
|
|
39
|
-
}).inRight : varFade({
|
|
40
|
-
distance: ownerState?.width,
|
|
41
|
-
durationIn: 0.32,
|
|
42
|
-
durationOut: 0.32
|
|
43
|
-
}).inLeft
|
|
44
|
-
}),
|
|
45
|
-
/**
|
|
46
|
-
* Estilos css de la ranura backdrop
|
|
47
|
-
*/
|
|
48
|
-
backdrop: ({ theme }) => ({
|
|
49
|
-
background: "transparent",
|
|
50
|
-
zIndex: theme.zIndex.drawer + 1,
|
|
51
|
-
transform: "unset",
|
|
52
|
-
opacity: 1
|
|
53
|
-
}),
|
|
54
|
-
/**
|
|
55
|
-
* Estilos css de la ranura header
|
|
56
|
-
*/
|
|
57
|
-
headerContainer: () => ({
|
|
58
|
-
width: "100%",
|
|
59
|
-
display: "flex",
|
|
60
|
-
flexDirection: "row",
|
|
61
|
-
alignItems: "center",
|
|
62
|
-
justifyContent: "space-between"
|
|
63
|
-
}),
|
|
64
|
-
/**
|
|
65
|
-
* Estilos css de la ranura headerActions
|
|
66
|
-
*/
|
|
67
|
-
headerActions: ({ theme }) => ({
|
|
68
|
-
display: "flex",
|
|
69
|
-
flexDirection: "row",
|
|
70
|
-
width: "fit-content",
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
padding: theme.vars.size.baseSpacings["sp0-5"],
|
|
73
|
-
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
74
|
-
borderRadius: theme.vars.size.borderRadius.r2,
|
|
75
|
-
border: theme.vars.size.borderStroke.container,
|
|
76
|
-
borderColor: theme.vars.palette.border.disabled,
|
|
77
|
-
backgroundColor: theme.vars.palette.background.default
|
|
78
|
-
}),
|
|
79
|
-
/**
|
|
80
|
-
* Estilos css de la ranura content
|
|
81
|
-
*/
|
|
82
|
-
bodyContent: ({ theme }) => ({
|
|
83
|
-
display: "flex",
|
|
84
|
-
flexDirection: "column",
|
|
85
|
-
position: "relative",
|
|
86
|
-
overflowY: "auto",
|
|
87
|
-
width: "100%",
|
|
88
|
-
gap: theme.vars.size.baseSpacings.sp6
|
|
89
|
-
}),
|
|
90
|
-
/**
|
|
91
|
-
* Estilos css de la ranura settingContainer
|
|
92
|
-
*/
|
|
93
|
-
settingContainer: ({ theme }) => ({
|
|
94
|
-
display: "flex",
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
padding: theme.vars.size.baseSpacings.sp4,
|
|
97
|
-
gap: theme.vars.size.baseSpacings.sp4,
|
|
98
|
-
borderRadius: theme.vars.size.borderRadius.r2,
|
|
99
|
-
backgroundColor: theme.vars.palette.background.default
|
|
100
|
-
}),
|
|
101
|
-
/**
|
|
102
|
-
* Estilos css de la ranura settingIconTitle
|
|
103
|
-
*/
|
|
104
|
-
settingIconTitle: ({ theme }) => ({
|
|
105
|
-
display: "flex",
|
|
106
|
-
flexDirection: "row",
|
|
107
|
-
gap: theme.vars.size.baseSpacings["sp2-5"],
|
|
108
|
-
justifyContent: "flex-start",
|
|
109
|
-
alignItems: "center"
|
|
110
|
-
}),
|
|
111
|
-
/**
|
|
112
|
-
* Estilos css de la ranura settingItemContent
|
|
113
|
-
*/
|
|
114
|
-
settingItemContent: ({ theme }) => ({
|
|
115
|
-
display: "flex",
|
|
116
|
-
flexDirection: "row",
|
|
117
|
-
gap: theme.vars.size.baseSpacings.sp4,
|
|
118
|
-
justifyContent: "space-between"
|
|
119
|
-
}),
|
|
120
|
-
/**
|
|
121
|
-
* Estilos css de la ranura settingItem
|
|
122
|
-
*/
|
|
123
|
-
settingItem: ({ theme, ownerState }) => ({
|
|
124
|
-
display: "flex",
|
|
125
|
-
flexDirection: "row",
|
|
126
|
-
justifyContent: "center",
|
|
127
|
-
alignItems: "center",
|
|
128
|
-
width: "100%",
|
|
129
|
-
height: "100%",
|
|
130
|
-
borderRadius: theme.vars.size.borderRadius.r2,
|
|
131
|
-
border: theme.vars.size.borderStroke.container,
|
|
132
|
-
borderColor: theme.vars.palette.border.disabled,
|
|
133
|
-
padding: theme.vars.size.baseSpacings.sp2,
|
|
134
|
-
outline: "unset",
|
|
135
|
-
"& .M4LIcon-root": {
|
|
136
|
-
width: theme.vars.size.baseSpacings.sp5,
|
|
137
|
-
height: theme.vars.size.baseSpacings.sp5
|
|
138
|
-
},
|
|
139
|
-
...ownerState?.onChange ? {
|
|
140
|
-
transition: "all 0.3s ease",
|
|
141
|
-
cursor: "pointer",
|
|
142
|
-
"&:hover": {
|
|
143
|
-
backgroundColor: theme.vars.palette.default.hoverOpacity
|
|
144
|
-
},
|
|
145
|
-
"&:active": {
|
|
146
|
-
backgroundColor: theme.vars.palette.default.activeOpacity
|
|
147
|
-
},
|
|
148
|
-
"&:focus-visible": {
|
|
149
|
-
borderColor: theme.vars.palette.border.main,
|
|
150
|
-
boxShadow: theme.vars.customShadows?.primary
|
|
151
|
-
},
|
|
152
|
-
...ownerState?.selected ? {
|
|
153
|
-
borderColor: theme.vars.palette.border.main,
|
|
154
|
-
backgroundColor: theme.vars.palette.primary.enabledOpacity,
|
|
155
|
-
"&:hover": {
|
|
156
|
-
backgroundColor: theme.vars.palette.primary.hoverOpacity
|
|
157
|
-
},
|
|
158
|
-
"&:active": {
|
|
159
|
-
backgroundColor: theme.vars.palette.primary.activeOpacity
|
|
160
|
-
}
|
|
161
|
-
} : {}
|
|
162
|
-
} : {}
|
|
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
|
-
}),
|
|
174
|
-
/**
|
|
175
|
-
* Estilos css de la ranura settingItemColor
|
|
176
|
-
*/
|
|
177
|
-
settingItemColor: ({ theme, ownerState }) => {
|
|
178
|
-
const presetColor = ownerState?.color ?? "patronus";
|
|
179
|
-
const presetPalette = ownerState?.mode === "light" ? PRIMARY_COLORS_LIGHT[presetColor] : PRIMARY_COLORS_DARK[presetColor];
|
|
180
|
-
return {
|
|
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",
|
|
220
|
-
transition: "all 0.3s ease",
|
|
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
|
|
229
|
-
}
|
|
230
|
-
} : {}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
* Estilos css de la ranura settingFullscreen
|
|
236
|
-
*/
|
|
237
|
-
settingFullscreen: ({ theme, ownerState }) => ({
|
|
238
|
-
/* borderRadius: theme.vars.size.borderRadius['r1-5'],
|
|
239
|
-
border: 'unset',
|
|
240
|
-
outline: 'unset', */
|
|
241
|
-
display: "flex",
|
|
242
|
-
flexDirection: "row",
|
|
243
|
-
alignItems: "center",
|
|
244
|
-
justifyContent: "center",
|
|
245
|
-
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
246
|
-
"& .MuiTypography-root": {
|
|
247
|
-
width: "fit-content",
|
|
248
|
-
...getTypographyStyles(
|
|
249
|
-
theme.generalSettings.isMobile,
|
|
250
|
-
ownerState?.size || "medium",
|
|
251
|
-
"bodyDens"
|
|
252
|
-
)
|
|
253
|
-
}
|
|
254
|
-
}),
|
|
255
|
-
/**
|
|
256
|
-
* Estilos css de la ranura icon
|
|
257
|
-
*/
|
|
258
|
-
icon: {},
|
|
259
|
-
/**
|
|
260
|
-
* Estilos css de la ranura typography
|
|
261
|
-
*/
|
|
262
|
-
typography: {},
|
|
263
|
-
/**
|
|
264
|
-
* Estilos css de la ranura divider
|
|
265
|
-
*/
|
|
266
|
-
divider: {}
|
|
267
|
-
};
|
|
268
|
-
export {
|
|
269
|
-
settingsLayoutStyles as s
|
|
270
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SettingsLayoutSlots } from './slots/SettingsLayoutEnum';
|
|
2
|
-
/**
|
|
3
|
-
* Nombre de clase del componente.
|
|
4
|
-
*/
|
|
5
|
-
export declare const SETTINGS_LAYOUT_COMPONENT_KEY = "M4LSettingsLayout";
|
|
6
|
-
export declare const SETTINGS_LAYOUT_CLASSES: Record<keyof typeof SettingsLayoutSlots, string>;
|
|
7
|
-
export declare const SETTINGS_LAYOUT_DEFAULT_WIDTH = 300;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import { S as SettingsLayoutSlots } from "./slots/SettingsLayoutEnum.js";
|
|
3
|
-
const SETTINGS_LAYOUT_COMPONENT_KEY = "M4LSettingsLayout";
|
|
4
|
-
const SETTINGS_LAYOUT_CLASSES = getComponentClasses(SETTINGS_LAYOUT_COMPONENT_KEY, SettingsLayoutSlots);
|
|
5
|
-
const SETTINGS_LAYOUT_DEFAULT_WIDTH = 300;
|
|
6
|
-
export {
|
|
7
|
-
SETTINGS_LAYOUT_DEFAULT_WIDTH as S,
|
|
8
|
-
SETTINGS_LAYOUT_CLASSES as a,
|
|
9
|
-
SETTINGS_LAYOUT_COMPONENT_KEY as b
|
|
10
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare const DICTIONARY: {
|
|
2
|
-
COMPANY_SLOGAN: string;
|
|
3
|
-
COMPANY_NAME: string;
|
|
4
|
-
MODE: string;
|
|
5
|
-
DIRECTION: string;
|
|
6
|
-
PRESETS: string;
|
|
7
|
-
STRETCH: string;
|
|
8
|
-
EXIT_FULLSCREEN: string;
|
|
9
|
-
FULLSCREEN: string;
|
|
10
|
-
COMPANY_NAME_SUBTITLE: string;
|
|
11
|
-
VALIDATION_EMAIL_INVALID: string;
|
|
12
|
-
VALIDATION_PWD_REQUIRED: string;
|
|
13
|
-
LABEL_BACK_LOGIN: string;
|
|
14
|
-
LABEL_EMAIL: string;
|
|
15
|
-
LABEL_INTRO: string;
|
|
16
|
-
MODULE_DESCRIPTION: string;
|
|
17
|
-
MODULE_LEYEND: string;
|
|
18
|
-
MODULE_NAME: string;
|
|
19
|
-
LABEL_PWD: string;
|
|
20
|
-
LABEL_PWD_CONFIRM: string;
|
|
21
|
-
LABEL_FORGOT: string;
|
|
22
|
-
LABEL_NOT_MEMBER: string;
|
|
23
|
-
LABEL_REGISTER: string;
|
|
24
|
-
LABEL_REMEMBERME: string;
|
|
25
|
-
LABEL_USER: string;
|
|
26
|
-
P_HOLDER_USER: string;
|
|
27
|
-
VALIDATION_USER_REQUIRED: string;
|
|
28
|
-
VALIDATION_EMAIL_REQUIRED: string;
|
|
29
|
-
VALIDATION_PWD_INVALID: string;
|
|
30
|
-
LABEL_FIRST_PHONE: string;
|
|
31
|
-
LABEL_COMPANY_NAME: string;
|
|
32
|
-
LABEL_COUNTRY_LABORATORY: string;
|
|
33
|
-
LABEL_EMAIL_CONFIRM: string;
|
|
34
|
-
LABEL_FIRST_NAME: string;
|
|
35
|
-
LABEL_LAST_NAME: string;
|
|
36
|
-
LABEL_MEMBER: string;
|
|
37
|
-
LABEL_STATE: string;
|
|
38
|
-
LABEL_CITY: string;
|
|
39
|
-
LABEL_ADDRESS: string;
|
|
40
|
-
LABEL_COUNTRY_CLIENT: string;
|
|
41
|
-
VALIDATION_FIRST_PHONE_REQUIRED: string;
|
|
42
|
-
VALITATION_COMPONY_NAME_REQUIRED: string;
|
|
43
|
-
VALIDATION_COUNTRY_LABORATORY_REQUIRED: string;
|
|
44
|
-
VALIDATION_COUNTRY_CLIENT_REQUIRED: string;
|
|
45
|
-
VALIDATION_EMAIL_CONFIRM_MATCHES: string;
|
|
46
|
-
VALIDATION_FIRST_NAME_REQUIRED: string;
|
|
47
|
-
VALIDATION_LAST_NAME_REQUIRED: string;
|
|
48
|
-
VALIDATION_STATE_REQUIRED: string;
|
|
49
|
-
VALIDATION_CITY_REQUIRED: string;
|
|
50
|
-
VALIDATION_ADDRESS_REQUIRED: string;
|
|
51
|
-
MODULE_DESCRIPTION_COMPLETED: string;
|
|
52
|
-
LABEL_CHANGE_PASSWORD_COMPLETED: string;
|
|
53
|
-
VALIDATION_PWD_CONFIRM_MATCHES: string;
|
|
54
|
-
NOT_FOUND_TITLE: string;
|
|
55
|
-
NOT_FOUND_DESCRIPTION: string;
|
|
56
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const DICTIONARY = {
|
|
2
|
-
/* ---------------------Settings dictionary -------------------*/
|
|
3
|
-
MODE: "mode",
|
|
4
|
-
DIRECTION: "direction",
|
|
5
|
-
PRESETS: "presets",
|
|
6
|
-
EXIT_FULLSCREEN: "exit_fullscreen",
|
|
7
|
-
FULLSCREEN: "fullscreen",
|
|
8
|
-
MODULE_NAME: "module_name"
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
DICTIONARY as D
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const PATH_ICONS: {
|
|
2
|
-
REFRESH: string;
|
|
3
|
-
CLOSE: string;
|
|
4
|
-
MOON: string;
|
|
5
|
-
SUN: string;
|
|
6
|
-
MODE: string;
|
|
7
|
-
PALETTE: string;
|
|
8
|
-
DIRECTION: string;
|
|
9
|
-
ALIGN_LEFT: string;
|
|
10
|
-
ALIGN_RIGHT: string;
|
|
11
|
-
FULLSCREEN: string;
|
|
12
|
-
FULLSCREEN_EXIT: string;
|
|
13
|
-
COLOR: string;
|
|
14
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const PATH_ICONS = {
|
|
2
|
-
REFRESH: "frontend/components/setting_layout/assets/icons/refresh.svg",
|
|
3
|
-
CLOSE: "frontend/components/setting_layout/assets/icons/closeSmall.svg",
|
|
4
|
-
MOON: "frontend/components/setting_layout/assets/icons/CloudMoon.svg",
|
|
5
|
-
SUN: "frontend/components/setting_layout/assets/icons/Sun.svg",
|
|
6
|
-
MODE: "frontend/components/setting_layout/assets/icons/eclipse.svg",
|
|
7
|
-
PALETTE: "frontend/components/setting_layout/assets/icons/palette.svg",
|
|
8
|
-
DIRECTION: "frontend/components/setting_layout/assets/icons/signpost.svg",
|
|
9
|
-
ALIGN_LEFT: "frontend/components/setting_layout/assets/icons/align-start-vertical.svg",
|
|
10
|
-
ALIGN_RIGHT: "frontend/components/setting_layout/assets/icons/align-end-vertical.svg",
|
|
11
|
-
FULLSCREEN: "frontend/components/setting_layout/assets/icons/FrameCorners.svg",
|
|
12
|
-
FULLSCREEN_EXIT: "frontend/components/setting_layout/assets/icons/exit_fullscreen.svg",
|
|
13
|
-
COLOR: "frontend/components/setting_layout/assets/icons/color_preset.svg"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
PATH_ICONS as P
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum SettingsLayoutSlots {
|
|
2
|
-
root = "root",
|
|
3
|
-
backdrop = "backdrop",
|
|
4
|
-
icon = "icon",
|
|
5
|
-
typography = "typography",
|
|
6
|
-
divider = "divider",
|
|
7
|
-
headerContainer = "headerContainer",
|
|
8
|
-
headerActions = "headerActions",
|
|
9
|
-
bodyContent = "bodyContent",
|
|
10
|
-
settingContainer = "settingContainer",
|
|
11
|
-
settingIconTitle = "settingIconTitle",
|
|
12
|
-
settingItem = "settingItem",
|
|
13
|
-
settingItemColor = "settingItemColor",
|
|
14
|
-
settingItemColorContainer = "settingItemColorContainer",
|
|
15
|
-
settingItemContent = "settingItemContent",
|
|
16
|
-
settingFullscreen = "settingFullscreen"
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var SettingsLayoutSlots = /* @__PURE__ */ ((SettingsLayoutSlots2) => {
|
|
2
|
-
SettingsLayoutSlots2["root"] = "root";
|
|
3
|
-
SettingsLayoutSlots2["backdrop"] = "backdrop";
|
|
4
|
-
SettingsLayoutSlots2["icon"] = "icon";
|
|
5
|
-
SettingsLayoutSlots2["typography"] = "typography";
|
|
6
|
-
SettingsLayoutSlots2["divider"] = "divider";
|
|
7
|
-
SettingsLayoutSlots2["headerContainer"] = "headerContainer";
|
|
8
|
-
SettingsLayoutSlots2["headerActions"] = "headerActions";
|
|
9
|
-
SettingsLayoutSlots2["bodyContent"] = "bodyContent";
|
|
10
|
-
SettingsLayoutSlots2["settingContainer"] = "settingContainer";
|
|
11
|
-
SettingsLayoutSlots2["settingIconTitle"] = "settingIconTitle";
|
|
12
|
-
SettingsLayoutSlots2["settingItem"] = "settingItem";
|
|
13
|
-
SettingsLayoutSlots2["settingItemColor"] = "settingItemColor";
|
|
14
|
-
SettingsLayoutSlots2["settingItemColorContainer"] = "settingItemColorContainer";
|
|
15
|
-
SettingsLayoutSlots2["settingItemContent"] = "settingItemContent";
|
|
16
|
-
SettingsLayoutSlots2["settingFullscreen"] = "settingFullscreen";
|
|
17
|
-
return SettingsLayoutSlots2;
|
|
18
|
-
})(SettingsLayoutSlots || {});
|
|
19
|
-
export {
|
|
20
|
-
SettingsLayoutSlots as S
|
|
21
|
-
};
|