@m4l/components 9.1.95 → 9.1.97
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 +8 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +1 -1
- package/components/ObjectLogs/components/DetailDialog/index.js +1 -1
- package/components/ScrollBar/{index.d.ts → ScrollBar.d.ts} +1 -4
- package/components/ScrollBar/ScrollBar.js +46 -0
- package/components/ScrollBar/ScrollBar.styles.d.ts +2 -0
- package/components/ScrollBar/ScrollBar.styles.js +65 -0
- package/components/ScrollBar/constants.d.ts +2 -0
- package/components/ScrollBar/constants.js +7 -0
- package/components/ScrollBar/slots/ScrollBarEnum.d.ts +4 -0
- package/components/ScrollBar/slots/ScrollBarEnum.js +8 -0
- package/components/ScrollBar/slots/ScrollBarSlots.d.ts +6 -0
- package/components/ScrollBar/slots/ScrollBarSlots.js +17 -0
- package/components/ScrollBar/slots/index.d.ts +2 -0
- package/components/ScrollBar/types.d.ts +43 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.d.ts +2 -2
- package/components/hook-form/RHFPeriod/RHFPeriod.js +5 -5
- package/components/hook-form/RHFPeriod/index.d.ts +2 -0
- package/components/hook-form/RHFPeriod/index.js +1 -0
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.d.ts +3 -3
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +84 -35
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +6 -1
- package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +7 -4
- package/components/hook-form/RHFPeriod/types.d.ts +6 -2
- package/components/hook-form/RHFPeriod/types.js +1 -0
- package/components/hook-form/index.d.ts +1 -2
- package/components/index.d.ts +1 -2
- package/index.js +102 -93
- package/package.json +1 -1
- package/components/Period/Period.d.ts +0 -5
- package/components/Period/Period.js +0 -193
- package/components/Period/classes/constants.d.ts +0 -1
- package/components/Period/classes/constants.js +0 -4
- package/components/Period/classes/index.d.ts +0 -15
- package/components/Period/classes/index.js +0 -53
- package/components/Period/classes/types.d.ts +0 -18
- package/components/Period/dictionary.d.ts +0 -7
- package/components/Period/dictionary.js +0 -13
- package/components/Period/index.d.ts +0 -2
- package/components/Period/styles.d.ts +0 -6
- package/components/Period/styles.js +0 -45
- package/components/Period/subcomponents/SkeletonPeriod/index.d.ts +0 -5
- package/components/Period/subcomponents/SkeletonPeriod/index.js +0 -12
- package/components/Period/subcomponents/SkeletonPeriod/types.d.ts +0 -4
- package/components/Period/tests/constants.d.ts +0 -1
- package/components/Period/tests/constants.js +0 -4
- package/components/Period/tests/index.test.d.ts +0 -1
- package/components/Period/tests/utils.d.ts +0 -2
- package/components/Period/tests/utils.js +0 -7
- package/components/Period/types.d.ts +0 -35
- package/components/Period/types.js +0 -9
- package/components/ScrollBar/classes/constants.d.ts +0 -1
- package/components/ScrollBar/classes/constants.js +0 -4
- package/components/ScrollBar/classes/index.d.ts +0 -9
- package/components/ScrollBar/classes/index.js +0 -23
- package/components/ScrollBar/classes/types.d.ts +0 -6
- package/components/ScrollBar/index.js +0 -17
- package/components/ScrollBar/styles.d.ts +0 -3
- package/components/ScrollBar/styles.js +0 -46
- /package/components/{Period → ScrollBar/slots}/index.js +0 -0
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
const ContainerPeriod = styled("div")(({ theme }) => ({
|
|
3
|
-
...theme.components?.M4LPeriod?.styleOverrides || {}
|
|
4
|
-
}));
|
|
5
|
-
styled("div")(({ theme }) => ({
|
|
6
|
-
width: "1px",
|
|
7
|
-
height: "20px",
|
|
8
|
-
backgroundColor: theme.vars.palette.divider
|
|
9
|
-
}));
|
|
10
|
-
styled("div", {
|
|
11
|
-
shouldForwardProp: (props) => props !== "readOnly"
|
|
12
|
-
})(({ theme, readOnly }) => ({
|
|
13
|
-
display: "flex",
|
|
14
|
-
width: "100%",
|
|
15
|
-
height: "37.5px",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
gap: theme.spacing(1),
|
|
18
|
-
border: `1px solid ${theme.vars.palette.divider}`,
|
|
19
|
-
...readOnly && {
|
|
20
|
-
border: "0px"
|
|
21
|
-
},
|
|
22
|
-
padding: theme.spacing(0.5, 1),
|
|
23
|
-
borderRadius: "4px"
|
|
24
|
-
}));
|
|
25
|
-
styled("div")(({ theme }) => ({
|
|
26
|
-
...theme.colorSchemes.finalTheme.typography.body2,
|
|
27
|
-
width: "100%",
|
|
28
|
-
display: "flex",
|
|
29
|
-
textOverflow: "elipsis",
|
|
30
|
-
overflow: "hidden",
|
|
31
|
-
padding: "5px",
|
|
32
|
-
textAlign: "left"
|
|
33
|
-
}));
|
|
34
|
-
styled("div")(({ theme }) => ({
|
|
35
|
-
...theme.colorSchemes.finalTheme.typography.body2,
|
|
36
|
-
width: "70px",
|
|
37
|
-
display: "flex",
|
|
38
|
-
textOverflow: "elipsis",
|
|
39
|
-
overflow: "hidden",
|
|
40
|
-
padding: "5px",
|
|
41
|
-
textAlign: "left"
|
|
42
|
-
}));
|
|
43
|
-
export {
|
|
44
|
-
ContainerPeriod as C
|
|
45
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Skeleton } from "@mui/material";
|
|
3
|
-
const SkeletonPeriod = (props) => {
|
|
4
|
-
const { classes } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: classes.skeleton, children: [
|
|
6
|
-
/* @__PURE__ */ jsx("div", { className: classes.skeletonFieldPrimary, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%" }) }),
|
|
7
|
-
/* @__PURE__ */ jsx("div", { className: classes.skeletonFieldSecondary, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%" }) })
|
|
8
|
-
] });
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
SkeletonPeriod as S
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PERIOD_PREFIX = "M4LPeriod";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare enum ETimePeriods {
|
|
2
|
-
YEARS = 0,
|
|
3
|
-
MONTHS = 1,
|
|
4
|
-
DAYS = 2
|
|
5
|
-
}
|
|
6
|
-
export type PeriodVariant = 'monoperiod' | 'multiperiod';
|
|
7
|
-
export type PeriodTime = {
|
|
8
|
-
id: number;
|
|
9
|
-
label: string;
|
|
10
|
-
};
|
|
11
|
-
export type SKTWrapperProps = Pick<PeriodProps, 'readOnly'>;
|
|
12
|
-
export type PeriodState = 'error' | 'success' | 'warning' | 'info' | undefined;
|
|
13
|
-
export type PeriodType = {
|
|
14
|
-
selPeriodTime: ETimePeriods;
|
|
15
|
-
singleValue: number | '';
|
|
16
|
-
years?: number;
|
|
17
|
-
months?: number;
|
|
18
|
-
days?: number;
|
|
19
|
-
};
|
|
20
|
-
export interface PeriodProps {
|
|
21
|
-
value: PeriodType;
|
|
22
|
-
onChange: (newValue: PeriodType) => void;
|
|
23
|
-
state?: PeriodState;
|
|
24
|
-
readOnly?: boolean;
|
|
25
|
-
variant?: PeriodVariant;
|
|
26
|
-
skeletonWidth?: string | number;
|
|
27
|
-
skeletonHeight?: string | number;
|
|
28
|
-
size?: 'small' | 'medium';
|
|
29
|
-
}
|
|
30
|
-
export interface WrapperProps {
|
|
31
|
-
error: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface OwnerState extends Pick<PeriodProps, 'state' | 'readOnly' | 'variant' | 'size'> {
|
|
34
|
-
focus: boolean;
|
|
35
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var ETimePeriods = /* @__PURE__ */ ((ETimePeriods2) => {
|
|
2
|
-
ETimePeriods2[ETimePeriods2["YEARS"] = 0] = "YEARS";
|
|
3
|
-
ETimePeriods2[ETimePeriods2["MONTHS"] = 1] = "MONTHS";
|
|
4
|
-
ETimePeriods2[ETimePeriods2["DAYS"] = 2] = "DAYS";
|
|
5
|
-
return ETimePeriods2;
|
|
6
|
-
})(ETimePeriods || {});
|
|
7
|
-
export {
|
|
8
|
-
ETimePeriods as E
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LScrollBar";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ScrollBarClassesType } from './types';
|
|
2
|
-
export declare const scrollBarClasses: ScrollBarClassesType;
|
|
3
|
-
export declare function getScrollBarUtilityClass(slot: string): string;
|
|
4
|
-
/**
|
|
5
|
-
* TODO: Documentar
|
|
6
|
-
*/
|
|
7
|
-
export declare const getScrollBarUtilityClasses: () => {
|
|
8
|
-
root: string;
|
|
9
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { c as componentName } from "./constants.js";
|
|
4
|
-
generateUtilityClasses(componentName, [
|
|
5
|
-
/* elements */
|
|
6
|
-
"root"
|
|
7
|
-
/* states or variants of elements */
|
|
8
|
-
]);
|
|
9
|
-
function getScrollBarUtilityClass(slot) {
|
|
10
|
-
return generateUtilityClass(componentName, slot);
|
|
11
|
-
}
|
|
12
|
-
const getScrollBarUtilityClasses = () => {
|
|
13
|
-
const slots = {
|
|
14
|
-
root: ["root"]
|
|
15
|
-
};
|
|
16
|
-
const composedClasses = unstable_composeClasses(slots, getScrollBarUtilityClass, {});
|
|
17
|
-
return {
|
|
18
|
-
...composedClasses
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
getScrollBarUtilityClasses as g
|
|
23
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Box } from "@mui/material";
|
|
3
|
-
import { R as RootStyle, S as SimpleBarStyle } from "./styles.js";
|
|
4
|
-
import { g as getScrollBarUtilityClasses } from "./classes/index.js";
|
|
5
|
-
function ScrollBar(props) {
|
|
6
|
-
const { children } = props;
|
|
7
|
-
const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
|
|
8
|
-
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
|
9
|
-
if (isMobile) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Box, { sx: { overflowX: "auto", width: "100%" }, children });
|
|
11
|
-
}
|
|
12
|
-
const classes = getScrollBarUtilityClasses();
|
|
13
|
-
return /* @__PURE__ */ jsx(RootStyle, { id: "RootStyle", className: classes.root, children: /* @__PURE__ */ jsx(SimpleBarStyle, { autoHide: false, children }) });
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
ScrollBar as S
|
|
17
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const RootStyle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
-
export declare const SimpleBarStyle: import('@emotion/styled').StyledComponent<import('simplebar-react').Props & import('react').RefAttributes<import('simplebar-core').default | null> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
3
|
-
export declare const SimpleBarStyle2: import('@emotion/styled').StyledComponent<import('simplebar-react').Props & import('react').RefAttributes<import('simplebar-core').default | null> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { styled, alpha } from "@mui/material/styles";
|
|
2
|
-
import SimpleBarReact from "simplebar-react";
|
|
3
|
-
import "simplebar-react/dist/simplebar.min.css";
|
|
4
|
-
const RootStyle = styled("div")(({ theme }) => ({
|
|
5
|
-
flexGrow: "1",
|
|
6
|
-
height: "100%",
|
|
7
|
-
overflow: "hidden",
|
|
8
|
-
...theme.components?.M4LScrollBar?.styleOverrides || {}
|
|
9
|
-
}));
|
|
10
|
-
const SimpleBarStyle = styled(SimpleBarReact)`
|
|
11
|
-
height: 100%;
|
|
12
|
-
`;
|
|
13
|
-
styled(SimpleBarReact)(({ theme }) => ({
|
|
14
|
-
height: "100%",
|
|
15
|
-
"& .simplebar-scrollbar": {
|
|
16
|
-
"&:before": {
|
|
17
|
-
backgroundColor: alpha(theme.colorSchemes.finalTheme.palette.grey[600], 0.48)
|
|
18
|
-
},
|
|
19
|
-
"&.simplebar-visible:before": {
|
|
20
|
-
opacity: 1
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"& .simplebar-track.simplebar-vertical": {
|
|
24
|
-
width: 10
|
|
25
|
-
},
|
|
26
|
-
"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar": {
|
|
27
|
-
height: 6
|
|
28
|
-
},
|
|
29
|
-
"& .simplebar-mask": {
|
|
30
|
-
zIndex: "inherit"
|
|
31
|
-
},
|
|
32
|
-
"& .simplebar-content": {
|
|
33
|
-
display: "flex",
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
height: "100%"
|
|
36
|
-
},
|
|
37
|
-
'& .simplebar-content-wrapper[style*="overflow: hidden scroll;"] ': {
|
|
38
|
-
"& .simplebar-content": {
|
|
39
|
-
marginRight: "12px"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
43
|
-
export {
|
|
44
|
-
RootStyle as R,
|
|
45
|
-
SimpleBarStyle as S
|
|
46
|
-
};
|
|
File without changes
|