@m4l/components 0.0.56 → 0.0.59
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/dist/components/DynamicFilter/index.js +27 -21
- package/dist/components/Icon/index.js +2 -1
- package/dist/components/Page/index.d.ts +3 -0
- package/dist/components/Page/index.js +31 -0
- package/dist/components/Page/types.d.ts +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/vendor.js +1 -0
- package/package.json +4 -3
|
@@ -33,7 +33,9 @@ const WrapperApplyedFilters = styled("div")(({
|
|
|
33
33
|
theme
|
|
34
34
|
}) => ({
|
|
35
35
|
width: "100%",
|
|
36
|
-
|
|
36
|
+
margin: theme.spacing(0, 1.5),
|
|
37
|
+
paddingLeft: theme.spacing(1.5),
|
|
38
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
37
39
|
}));
|
|
38
40
|
const ContainerApplyedFilters = styled("div")(({
|
|
39
41
|
theme
|
|
@@ -42,7 +44,7 @@ const ContainerApplyedFilters = styled("div")(({
|
|
|
42
44
|
display: "flex",
|
|
43
45
|
justifyContent: "flex-start",
|
|
44
46
|
alignItems: "center",
|
|
45
|
-
height:
|
|
47
|
+
height: "auto",
|
|
46
48
|
gap: theme.spacing(1.5)
|
|
47
49
|
}));
|
|
48
50
|
const STRING_OPERATORS = ["c", "nc"];
|
|
@@ -1043,8 +1045,9 @@ const WrapperApplyedFilter = styled("div")(({
|
|
|
1043
1045
|
display: "flex",
|
|
1044
1046
|
justifyContent: "center",
|
|
1045
1047
|
alignItems: "center",
|
|
1046
|
-
height:
|
|
1047
|
-
|
|
1048
|
+
height: "100%",
|
|
1049
|
+
minHeight: theme.spacing(3),
|
|
1050
|
+
padding: theme.spacing(0, 1),
|
|
1048
1051
|
backgroundColor: theme.palette.action.disabledBackground,
|
|
1049
1052
|
borderRadius: theme.spacing(1),
|
|
1050
1053
|
"&.waf_no_setted": {
|
|
@@ -1059,7 +1062,7 @@ const AplyedFilterStyled = styled("div")(({
|
|
|
1059
1062
|
justifyContent: "center",
|
|
1060
1063
|
alignItems: "center",
|
|
1061
1064
|
width: "auto",
|
|
1062
|
-
height:
|
|
1065
|
+
height: "100%",
|
|
1063
1066
|
marginRight: theme.spacing(1),
|
|
1064
1067
|
marginLeft: theme.spacing(1),
|
|
1065
1068
|
whiteSpace: "nowrap"
|
|
@@ -1156,6 +1159,7 @@ function ApplyedFilters() {
|
|
|
1156
1159
|
});
|
|
1157
1160
|
}
|
|
1158
1161
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1162
|
+
className: "WrapperApplyedFilters",
|
|
1159
1163
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
1160
1164
|
children: /* @__PURE__ */ jsx(ContainerApplyedFilters, {
|
|
1161
1165
|
id: "WrapperApplyedFilters",
|
|
@@ -1178,11 +1182,8 @@ const SKTClearFilters = styled$1("div")(({
|
|
|
1178
1182
|
const WrapperClearFilters = styled$1("div")(({
|
|
1179
1183
|
theme
|
|
1180
1184
|
}) => ({
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
marginLeft: theme.spacing(1.5),
|
|
1184
|
-
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1185
|
-
}
|
|
1185
|
+
paddingLeft: theme.spacing(0.5),
|
|
1186
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1186
1187
|
}));
|
|
1187
1188
|
const ClearFilters = () => {
|
|
1188
1189
|
const {
|
|
@@ -1223,7 +1224,12 @@ const SKTWrapperFilterButton = styled("div")(({
|
|
|
1223
1224
|
height: theme.spacing(3.75),
|
|
1224
1225
|
background: alpha(theme.palette.primary.main, 0.3)
|
|
1225
1226
|
}));
|
|
1226
|
-
const WrapperFilterButton = styled("div")((
|
|
1227
|
+
const WrapperFilterButton = styled("div")(({
|
|
1228
|
+
theme
|
|
1229
|
+
}) => ({
|
|
1230
|
+
paddingRight: theme.spacing(0.75),
|
|
1231
|
+
marginRight: theme.spacing(0.75),
|
|
1232
|
+
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1227
1233
|
"&.isDirty": {
|
|
1228
1234
|
animationName: "dirtyEffect",
|
|
1229
1235
|
animationDuration: "1s",
|
|
@@ -1293,11 +1299,7 @@ const WrapperInputFilter = styled("div")(({
|
|
|
1293
1299
|
justifyContent: "center",
|
|
1294
1300
|
alignItems: "center",
|
|
1295
1301
|
width: "100%",
|
|
1296
|
-
height: theme.spacing(3
|
|
1297
|
-
marginLeft: theme.spacing(1.5),
|
|
1298
|
-
padding: theme.spacing(0, 1.5),
|
|
1299
|
-
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1300
|
-
borderLeft: `1px solid ${theme.palette.divider}`,
|
|
1302
|
+
height: theme.spacing(3),
|
|
1301
1303
|
[theme.breakpoints.up("sm")]: {
|
|
1302
1304
|
width: theme.spacing(25)
|
|
1303
1305
|
}
|
|
@@ -1309,7 +1311,6 @@ const StyledInputFilter = styled("input")(({
|
|
|
1309
1311
|
justifyContent: "center",
|
|
1310
1312
|
alignItems: "center",
|
|
1311
1313
|
minWidth: theme.spacing(3.75),
|
|
1312
|
-
height: theme.spacing(3.75),
|
|
1313
1314
|
width: "100%",
|
|
1314
1315
|
"&": {
|
|
1315
1316
|
outline: "none",
|
|
@@ -1552,7 +1553,7 @@ const WrapperFilter = styled("div", {
|
|
|
1552
1553
|
justifyContent: "flex-start",
|
|
1553
1554
|
height: "auto",
|
|
1554
1555
|
width: "100%",
|
|
1555
|
-
padding: theme.spacing(
|
|
1556
|
+
padding: theme.spacing(0.5),
|
|
1556
1557
|
borderRadius: theme.spacing(1),
|
|
1557
1558
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
1558
1559
|
}));
|
|
@@ -1569,10 +1570,15 @@ const WrapperFilterMobile = styled("div", {
|
|
|
1569
1570
|
minWidth: theme.spacing(25),
|
|
1570
1571
|
height: "auto",
|
|
1571
1572
|
width: "100%",
|
|
1572
|
-
padding: theme.spacing(
|
|
1573
|
+
padding: theme.spacing(0.5),
|
|
1573
1574
|
borderRadius: theme.spacing(1),
|
|
1574
1575
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`,
|
|
1575
|
-
gap: theme.spacing(
|
|
1576
|
+
gap: theme.spacing(0.75),
|
|
1577
|
+
"& .WrapperApplyedFilters": {
|
|
1578
|
+
margin: "0px",
|
|
1579
|
+
padding: "0px",
|
|
1580
|
+
border: "0px"
|
|
1581
|
+
}
|
|
1576
1582
|
}));
|
|
1577
1583
|
const ContainerFistRow = styled("div")(() => ({
|
|
1578
1584
|
width: "100%",
|
|
@@ -1591,7 +1597,7 @@ const DynamicFilter = (props) => {
|
|
|
1591
1597
|
children: ({
|
|
1592
1598
|
inEdition
|
|
1593
1599
|
}) => isDesktop ? /* @__PURE__ */ jsxs(WrapperFilter, {
|
|
1594
|
-
id: "
|
|
1600
|
+
id: "WrapperFilter",
|
|
1595
1601
|
inEdition,
|
|
1596
1602
|
children: [/* @__PURE__ */ jsx(FilterButton, {}), /* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopupEditFilter, {}), /* @__PURE__ */ jsx(ClearFilters, {})]
|
|
1597
1603
|
}) : /* @__PURE__ */ jsxs(WrapperFilterMobile, {
|
|
@@ -9,7 +9,8 @@ const MaskIcon = styled("div", {
|
|
|
9
9
|
width: props.width === void 0 ? "20px" : props.width,
|
|
10
10
|
height: props.height === void 0 ? "20px" : props.height,
|
|
11
11
|
backgroundColor: props.bgColor,
|
|
12
|
-
mask: `url('data:image/svg+xml;base64,${props.src}')
|
|
12
|
+
mask: `url('data:image/svg+xml;base64,${props.src}')`,
|
|
13
|
+
WebkitMask: `url('data:image/svg+xml;base64,${props.src}')`
|
|
13
14
|
}));
|
|
14
15
|
const WrapperPlaceHolder = styled("div", {
|
|
15
16
|
shouldForwardProp: (props) => props !== "widht" && props !== "height"
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PageProps } from './types';
|
|
3
|
+
export declare const Page: import("react").ForwardRefExoticComponent<Pick<PageProps, "meta" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "sx" | "key" | "children" | "className" | "classes" | "component" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { Helmet } from "react-helmet-async";
|
|
3
|
+
import { Box } from "@mui/material";
|
|
4
|
+
import { useLocales } from "@m4l/graphics";
|
|
5
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
6
|
+
const Page = forwardRef((props, ref) => {
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
title = "",
|
|
10
|
+
meta,
|
|
11
|
+
...other
|
|
12
|
+
} = props;
|
|
13
|
+
const {
|
|
14
|
+
currentLang
|
|
15
|
+
} = useLocales();
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
17
|
+
children: [/* @__PURE__ */ jsxs(Helmet, {
|
|
18
|
+
children: [/* @__PURE__ */ jsx("title", {
|
|
19
|
+
children: `${title} | Made4Labs`
|
|
20
|
+
}), /* @__PURE__ */ jsx("html", {
|
|
21
|
+
lang: currentLang.value
|
|
22
|
+
}), meta]
|
|
23
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
24
|
+
ref,
|
|
25
|
+
...other,
|
|
26
|
+
children
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
Page.displayName = "Page";
|
|
31
|
+
export { Page as P };
|
|
@@ -24,6 +24,7 @@ export * from '../components/NoItemSelected/dictionary';
|
|
|
24
24
|
export * from '../components/ObjectLogs';
|
|
25
25
|
export * from '../components/ObjectLogs/dictionary';
|
|
26
26
|
export * from '../components/PaperForm';
|
|
27
|
+
export * from '../components/Page';
|
|
27
28
|
export * from '../components/PropertyValue';
|
|
28
29
|
export * from '../components/Resizeable';
|
|
29
30
|
export * from '../components/ScrollBar';
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialo
|
|
|
43
43
|
export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
|
|
44
44
|
export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
|
|
45
45
|
export { P as PaperForm } from "./components/PaperForm/index.js";
|
|
46
|
+
export { P as Page } from "./components/Page/index.js";
|
|
46
47
|
export { P as PropertyValue } from "./components/PropertyValue/index.js";
|
|
47
48
|
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
48
49
|
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
@@ -79,4 +80,5 @@ import "./react-json-view.js";
|
|
|
79
80
|
import "./react-splitter-layout.js";
|
|
80
81
|
import "./react-data-grid.js";
|
|
81
82
|
import "yup";
|
|
83
|
+
import "react-helmet-async";
|
|
82
84
|
import "./react-resizable.js";
|
package/dist/vendor.js
CHANGED
|
@@ -41,6 +41,7 @@ import "./components/NoItemSelected/index.js";
|
|
|
41
41
|
import "./components/ObjectLogs/index.js";
|
|
42
42
|
import "./react-json-view.js";
|
|
43
43
|
import "./components/PaperForm/index.js";
|
|
44
|
+
import "./components/Page/index.js";
|
|
44
45
|
import "./components/PropertyValue/index.js";
|
|
45
46
|
import "./react-splitter-layout.js";
|
|
46
47
|
import "./components/SplitLayout/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.59",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@m4l/graphics": "^0.0.
|
|
17
|
+
"@m4l/graphics": "^0.0.38",
|
|
18
18
|
"react": "^17.0.0 || 18.x",
|
|
19
19
|
"react-dom": "^18.0.0",
|
|
20
|
-
"react-draggable": "^4.4.5"
|
|
20
|
+
"react-draggable": "^4.4.5",
|
|
21
|
+
"react-helmet-async": "^1.3.0"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"@hookform/resolvers": "^2.9.5",
|