@m4l/components 0.0.26 → 0.0.31
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/CompanyLogo/index.js +0 -1
- package/dist/components/DataGrid/index.js +14 -11
- package/dist/components/DynamicFilter/components/ApplyedFilters/components/ApplyedFilter/index.d.ts +3 -0
- package/dist/components/DynamicFilter/components/ApplyedFilters/components/ApplyedFilter/styles.d.ts +6 -0
- package/dist/components/DynamicFilter/components/ApplyedFilters/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/ApplyedFilters/styles.d.ts +2 -0
- package/dist/components/DynamicFilter/components/ClearFilters/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/ClearFilters/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/FilterButton/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/FilterButton/styles.d.ts +4 -0
- package/dist/components/DynamicFilter/components/InputFilter/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/InputFilter/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/BooleanFilter/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/BooleanFilter/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/DateTimeFilter/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/DateTimeFilter/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/StringFilter/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/StringFilter/styles.d.ts +3 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/factory.d.ts +6 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/components/validations.d.ts +5 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/index.d.ts +2 -0
- package/dist/components/DynamicFilter/components/PopupEditFilter/styles.d.ts +5 -0
- package/dist/components/DynamicFilter/contexts/BaseContext/index.d.ts +5 -0
- package/dist/components/DynamicFilter/contexts/BaseContext/types.d.ts +42 -0
- package/dist/components/DynamicFilter/hooks/useFilter.d.ts +1 -0
- package/dist/components/DynamicFilter/index.d.ts +3 -0
- package/dist/components/DynamicFilter/index.js +1392 -0
- package/dist/components/DynamicFilter/styles.d.ts +8 -0
- package/dist/components/DynamicFilter/types.d.ts +65 -0
- package/dist/components/FormActions/index.js +2 -1
- package/dist/components/FormActions/types.d.ts +2 -2
- package/dist/components/Icon/index.js +4 -2
- package/dist/components/Icon/styles.d.ts +1 -2
- package/dist/components/Icon/types.d.ts +4 -2
- package/dist/components/Image/index.js +1 -2
- package/dist/components/ModalDialog/dictionary.d.ts +1 -1
- package/dist/components/ModalDialog/index.js +3 -2
- package/dist/components/ModalDialog/types.d.ts +2 -1
- package/dist/components/ObjectLogs/index.js +51 -98
- package/dist/components/ObjectLogs/types.d.ts +0 -2
- package/dist/components/ScrollBar/index.d.ts +6 -3
- package/dist/components/ScrollBar/index.js +7 -15
- package/dist/components/hook-form/FormProvider/index.js +0 -1
- package/dist/components/hook-form/RHFAutocomplete/index.d.ts +4 -0
- package/dist/components/hook-form/RHFAutocomplete/styles.d.ts +5 -0
- package/dist/components/hook-form/RHFAutocomplete/types.d.ts +13 -0
- package/dist/components/hook-form/RHFAutocompleteAsync/index.js +0 -2
- package/dist/components/hook-form/RHFDateTime/index.d.ts +4 -0
- package/dist/components/hook-form/RHFDateTime/styles.d.ts +2 -0
- package/dist/components/hook-form/RHFDateTime/types.d.ts +9 -0
- package/dist/components/hook-form/RHFDateTime.js +72 -0
- package/dist/components/hook-form/RHFTextField/index.d.ts +1 -2
- package/dist/components/hook-form/RHFTextField/index.js +6 -3
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/index.d.ts +3 -0
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/styles.d.ts +4 -0
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/types.d.ts +11 -0
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/index.d.ts +3 -0
- package/dist/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +14 -0
- package/dist/components/hook-form/RHFUpload/index.d.ts +1 -0
- package/dist/components/hook-form/RHFUpload/types.d.ts +4 -0
- package/dist/components/hook-form/RHFUpload.js +182 -0
- package/dist/components/hook-form/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/mui_extended/MenuActions/index.js +1 -1
- package/dist/components/mui_extended/MenuActions/styles.d.ts +1 -1
- package/dist/contexts/ModalContext/types.d.ts +2 -1
- package/dist/index.js +51 -46
- package/dist/lodash.js +61 -1
- package/dist/node_modules.js +1307 -1
- package/dist/simplebar.js +1 -0
- package/dist/style.css +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/vendor.js +226 -0
- package/package.json +9 -8
- package/dist/components/ScrollBar/styles.d.ts +0 -6
- package/dist/components/ScrollBar/types.d.ts +0 -7
package/dist/simplebar.js
CHANGED
|
@@ -5,6 +5,7 @@ import { l as lodash_throttle, a as lodash_debounce, b as lodash_memoize } from
|
|
|
5
5
|
import { R as ResizeObserver } from "./juggle.js";
|
|
6
6
|
import { c as canUseDom } from "./can-use-dom.js";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
+
const simplebar_min = /* @__PURE__ */ (() => '[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}\n')();
|
|
8
9
|
function getElementWindow(element) {
|
|
9
10
|
if (!element || !element.ownerDocument || !element.ownerDocument.defaultView) {
|
|
10
11
|
return window;
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { VariantModal } from '../contexts/ModalContext/types';
|
|
3
|
+
export declare const getVariantColor: (variant: VariantModal | undefined) => "warning" | "info" | "primary" | "error";
|
|
4
|
+
export declare const getThemeVariantColor: (theme: Theme, variant: VariantModal | undefined) => string;
|
package/dist/vendor.js
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import "./components/mui_extended/IconButton/index.js";
|
|
2
|
+
import "framer-motion";
|
|
3
|
+
import { Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
7
|
+
import "./components/hook-form/FormProvider/index.js";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
10
|
+
import "@mui/lab";
|
|
11
|
+
import "./contexts/ModalContext/index.js";
|
|
12
|
+
import "./components/hook-form/RHFAutocompleteAsync/index.js";
|
|
13
|
+
import "./components/hook-form/RHFCheckbox/index.js";
|
|
14
|
+
import "./components/hook-form/RHFDateTime.js";
|
|
15
|
+
import "@mui/x-date-pickers";
|
|
16
|
+
import "./components/hook-form/RHFTextField/index.js";
|
|
17
|
+
import "./lodash.js";
|
|
18
|
+
import "./react-lazy-load-image-component.js";
|
|
19
|
+
import { styled } from "@mui/material/styles";
|
|
20
|
+
import "./components/Image/index.js";
|
|
21
|
+
import "./components/hook-form/RHFUpload.js";
|
|
22
|
+
import "./components/mui_extended/LoadingButton/index.js";
|
|
23
|
+
import "./components/mui_extended/MenuPopover/index.js";
|
|
24
|
+
import "./components/mui_extended/MenuActions/index.js";
|
|
25
|
+
import "./components/mui_extended/Pager/index.js";
|
|
26
|
+
import "./components/mui_extended/Tab/index.js";
|
|
27
|
+
import "@m4l/graphics";
|
|
28
|
+
import "./components/CompanyLogo/index.js";
|
|
29
|
+
import "./components/DataGrid/index.js";
|
|
30
|
+
import "react-dnd";
|
|
31
|
+
import "react-dnd-html5-backend";
|
|
32
|
+
import "date-fns";
|
|
33
|
+
import "./components/DynamicFilter/index.js";
|
|
34
|
+
import "./components/Icon/index.js";
|
|
35
|
+
import "./simplebar.js";
|
|
36
|
+
import "./components/ScrollBar/index.js";
|
|
37
|
+
import "yup";
|
|
38
|
+
import "./components/FormActions/index.js";
|
|
39
|
+
import "./react-draggable.js";
|
|
40
|
+
import "./components/ModalDialog/index.js";
|
|
41
|
+
import "./components/Resizeable/index.js";
|
|
42
|
+
import "./components/NoItemSelected/index.js";
|
|
43
|
+
import "./components/ObjectLogs/index.js";
|
|
44
|
+
import "./react-json-view.js";
|
|
45
|
+
import "./components/PaperForm/index.js";
|
|
46
|
+
import "./components/PropertyValue/index.js";
|
|
47
|
+
import "./react-splitter-layout.js";
|
|
48
|
+
import "./components/SplitLayout/index.js";
|
|
49
|
+
import "./components/animate/variants/fade.js";
|
|
50
|
+
import "./components/animate/variants/bounce.js";
|
|
51
|
+
import "./components/animate/variants/container.js";
|
|
52
|
+
import "./components/animate/variants/transition.js";
|
|
53
|
+
import "./components/animate/MotionContainer/index.js";
|
|
54
|
+
import "./components/animate/MotionLazyContainer/index.js";
|
|
55
|
+
import "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
56
|
+
import "./components/hook-form/RHFSelect.js";
|
|
57
|
+
import "./components/hook-form/RHFRadioGroup.js";
|
|
58
|
+
import "./components/mui_extended/Accordion/index.js";
|
|
59
|
+
import "./components/mui_extended/BoxIcon/index.js";
|
|
60
|
+
import "./components/mui_extended/Breadcrumbs/index.js";
|
|
61
|
+
import "./components/mui_extended/LinkWithRoute/index.js";
|
|
62
|
+
import "./components/mui_extended/Typography/index.js";
|
|
63
|
+
import "./components/DataGrid/formatters/BooleanFormatter/index.js";
|
|
64
|
+
import "./components/DataGrid/formatters/DateFormatter/index.js";
|
|
65
|
+
import "./components/LanguagePopover/index.js";
|
|
66
|
+
import "./components/Loadable/index.js";
|
|
67
|
+
import "./hooks/useModal/index.js";
|
|
68
|
+
const getVariantColor = (variant) => {
|
|
69
|
+
switch (variant) {
|
|
70
|
+
case "warning":
|
|
71
|
+
return "warning";
|
|
72
|
+
case "delete":
|
|
73
|
+
return "error";
|
|
74
|
+
case "info":
|
|
75
|
+
return "info";
|
|
76
|
+
}
|
|
77
|
+
return "primary";
|
|
78
|
+
};
|
|
79
|
+
const getThemeVariantColor = (theme, variant) => {
|
|
80
|
+
switch (variant) {
|
|
81
|
+
case "warning":
|
|
82
|
+
theme.palette.warning.main;
|
|
83
|
+
break;
|
|
84
|
+
case "delete":
|
|
85
|
+
theme.palette.error.main;
|
|
86
|
+
break;
|
|
87
|
+
case "info":
|
|
88
|
+
theme.palette.info.main;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
return theme.palette.text.primary;
|
|
92
|
+
};
|
|
93
|
+
const SKTRHFAutocompleteWrapper = styled("div")(() => ({
|
|
94
|
+
display: "flex",
|
|
95
|
+
width: "100%",
|
|
96
|
+
flexDirection: "column"
|
|
97
|
+
}));
|
|
98
|
+
styled("div")(({
|
|
99
|
+
theme
|
|
100
|
+
}) => ({
|
|
101
|
+
display: "flex",
|
|
102
|
+
justifyContent: "flex-end",
|
|
103
|
+
paddingRight: `${theme.spacing(2)}`,
|
|
104
|
+
[theme.breakpoints.down("md")]: {
|
|
105
|
+
justifyContent: "flex-start"
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
const SKTInputText = styled("div")(({
|
|
109
|
+
theme
|
|
110
|
+
}) => ({
|
|
111
|
+
width: "100%",
|
|
112
|
+
display: "grid",
|
|
113
|
+
gridTemplateColumns: "1fr auto",
|
|
114
|
+
gridGap: theme.spacing(2),
|
|
115
|
+
alignItems: "center",
|
|
116
|
+
height: `${theme.spacing(4.5)}`,
|
|
117
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
118
|
+
borderRadius: `${theme.spacing(1)}`,
|
|
119
|
+
padding: `0 ${theme.spacing(2)}`,
|
|
120
|
+
[theme.breakpoints.down("md")]: {
|
|
121
|
+
width: "100%"
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
styled("div")(() => ({
|
|
125
|
+
display: "flex",
|
|
126
|
+
width: "100%",
|
|
127
|
+
"& .MuiAutocomplete-root": {
|
|
128
|
+
width: "100%"
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
function RHFAutocomplete(props) {
|
|
132
|
+
const {
|
|
133
|
+
name,
|
|
134
|
+
getOptionLabel,
|
|
135
|
+
isOptionEqualToValue,
|
|
136
|
+
label,
|
|
137
|
+
skeletonProps = {},
|
|
138
|
+
options,
|
|
139
|
+
...other
|
|
140
|
+
} = props;
|
|
141
|
+
const {
|
|
142
|
+
isSkeleton = false,
|
|
143
|
+
width = 100,
|
|
144
|
+
height = "18px"
|
|
145
|
+
} = skeletonProps;
|
|
146
|
+
const {
|
|
147
|
+
getLabel
|
|
148
|
+
} = useModuleDictionary();
|
|
149
|
+
const {
|
|
150
|
+
control,
|
|
151
|
+
getValues
|
|
152
|
+
} = useFormContext();
|
|
153
|
+
const initialValue = getValues(name);
|
|
154
|
+
const getOptionLabelLocal = (option) => {
|
|
155
|
+
if (option === void 0 || option === null) {
|
|
156
|
+
return "";
|
|
157
|
+
}
|
|
158
|
+
return getOptionLabel(option);
|
|
159
|
+
};
|
|
160
|
+
const isOptionEqualToValueLocal = (option, value) => {
|
|
161
|
+
if (value === void 0 || value === null || option === null) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
return isOptionEqualToValue(option, value);
|
|
165
|
+
};
|
|
166
|
+
if (isSkeleton) {
|
|
167
|
+
return /* @__PURE__ */ jsx(SKTRHFAutocompleteWrapper, {
|
|
168
|
+
children: /* @__PURE__ */ jsxs(SKTInputText, {
|
|
169
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
170
|
+
variant: "text",
|
|
171
|
+
width,
|
|
172
|
+
height
|
|
173
|
+
}, "sk1"), /* @__PURE__ */ jsx(Skeleton, {
|
|
174
|
+
variant: "circular",
|
|
175
|
+
width: 16,
|
|
176
|
+
height: 16
|
|
177
|
+
}, "sk2")]
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
182
|
+
name,
|
|
183
|
+
control,
|
|
184
|
+
render: ({
|
|
185
|
+
field: {
|
|
186
|
+
onChange,
|
|
187
|
+
value
|
|
188
|
+
},
|
|
189
|
+
fieldState: {
|
|
190
|
+
error
|
|
191
|
+
}
|
|
192
|
+
}) => {
|
|
193
|
+
return /* @__PURE__ */ jsx(Autocomplete, {
|
|
194
|
+
options,
|
|
195
|
+
getOptionLabel: getOptionLabelLocal,
|
|
196
|
+
defaultValue: initialValue,
|
|
197
|
+
isOptionEqualToValue: isOptionEqualToValueLocal,
|
|
198
|
+
disableClearable: true,
|
|
199
|
+
value: value || null,
|
|
200
|
+
onChange: (_e, val) => {
|
|
201
|
+
onChange(val);
|
|
202
|
+
},
|
|
203
|
+
loadingText: "",
|
|
204
|
+
noOptionsText: getLabel("component_no_options"),
|
|
205
|
+
renderInput: (params) => {
|
|
206
|
+
return /* @__PURE__ */ jsx(TextField, {
|
|
207
|
+
...params,
|
|
208
|
+
label,
|
|
209
|
+
fullWidth: true,
|
|
210
|
+
SelectProps: {
|
|
211
|
+
native: true
|
|
212
|
+
},
|
|
213
|
+
InputProps: {
|
|
214
|
+
...params.InputProps
|
|
215
|
+
},
|
|
216
|
+
autoComplete: "off",
|
|
217
|
+
error: !!error,
|
|
218
|
+
helperText: error?.message,
|
|
219
|
+
...other
|
|
220
|
+
}, `tx_async_${params.id}`);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
export { RHFAutocomplete as R, getThemeVariantColor as a, getVariantColor as g };
|
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.31",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@hookform/resolvers": "^2.9.5",
|
|
23
|
-
"@m4l/core": "^0.0.
|
|
24
|
-
"@m4l/graphics": "^0.0.
|
|
23
|
+
"@m4l/core": "^0.0.32",
|
|
24
|
+
"@m4l/graphics": "^0.0.22",
|
|
25
25
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
26
26
|
"@mui/material": "^5.8.7",
|
|
27
27
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"react-dom": "^18.0.0",
|
|
37
37
|
"react-draggable": "^4.4.5",
|
|
38
38
|
"react-hook-form": "^7.33.1",
|
|
39
|
-
"react-router-dom": "^6.3.0"
|
|
39
|
+
"react-router-dom": "^6.3.0",
|
|
40
|
+
"yup": "^0.32.11"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@emotion/styled": "^11.9.3",
|
|
43
44
|
"@hookform/resolvers": "^2.9.5",
|
|
44
|
-
"@m4l/core": "^0.0.
|
|
45
|
-
"@m4l/graphics": "^0.0.
|
|
46
|
-
"@m4l/layouts": "^0.0.9",
|
|
45
|
+
"@m4l/core": "^0.0.32",
|
|
46
|
+
"@m4l/graphics": "^0.0.22",
|
|
47
47
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
48
48
|
"@mui/material": "^5.8.7",
|
|
49
49
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"vite": "^2.9.9",
|
|
90
90
|
"vite-plugin-dts": "^1.2.1",
|
|
91
91
|
"vite-plugin-mkcert": "^1.7.2",
|
|
92
|
-
"vitest": "^0.17.1"
|
|
92
|
+
"vitest": "^0.17.1",
|
|
93
|
+
"yup": "^0.32.11"
|
|
93
94
|
},
|
|
94
95
|
"files": [
|
|
95
96
|
"dist"
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import SimpleBarReact from 'simplebar-react';
|
|
3
|
-
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>, {}>;
|
|
4
|
-
export declare const SimpleBarStyle: import("@emotion/styled").StyledComponent<SimpleBarReact.Props & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {
|
|
5
|
-
ref?: import("react").Ref<SimpleBarReact> | undefined;
|
|
6
|
-
}>;
|