@m4l/components 0.1.13 → 0.1.15
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/assets/Logo/index.js +91 -0
- package/commonjs.js +9 -0
- package/components/CommonActions/components/ActionCancel/index.js +15 -0
- package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
- package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
- package/components/CommonActions/components/ActionIntro/index.js +16 -0
- package/components/CommonActions/components/Actions/index.js +859 -0
- package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
- package/components/DataGrid/index.js +1067 -0
- package/components/DynamicFilter/index.js +1573 -0
- package/components/ErrorLabel/index.js +18 -0
- package/components/Icon/index.js +80 -0
- package/components/Image/index.js +128 -0
- package/components/LanguagePopover/index.js +93 -0
- package/components/Loadable/index.js +13 -0
- package/components/ModalDialog/index.js +180 -0
- package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
- package/components/ObjectLogs/index.js +284 -0
- package/components/Page/index.js +36 -0
- package/components/PaperForm/index.js +110 -0
- package/components/Period/index.js +230 -0
- package/components/PropertyValue/index.js +142 -0
- package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
- package/components/ScrollBar/index.js +52 -0
- package/components/ScrollToTop/index.js +10 -0
- package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
- package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
- package/components/animate/MotionContainer/index.js +31 -0
- package/components/animate/MotionLazyContainer/index.js +13 -0
- package/components/animate/features.js +2 -0
- package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
- package/components/animate/variants/container.js +20 -0
- package/components/animate/variants/fade.js +61 -0
- package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
- package/components/animate/variants/transition.js +16 -0
- package/components/formatters/BooleanFormatter/index.js +52 -0
- package/components/formatters/DateFormatter/index.js +66 -0
- package/components/formatters/index.js +112 -0
- package/components/hook-form/FormProvider/index.js +61 -0
- package/components/hook-form/RHFAutocomplete/index.js +144 -0
- package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
- package/components/hook-form/RHFCheckbox/index.js +65 -0
- package/components/hook-form/RHFDateTime/index.js +79 -0
- package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
- package/components/hook-form/RHFPeriod/index.js +47 -0
- package/components/hook-form/RHFRadioGroup/index.js +41 -0
- package/components/hook-form/RHFSelect/index.js +34 -0
- package/components/hook-form/RHFTextField/index.js +87 -0
- package/components/hook-form/RHFUpload/index.js +255 -0
- package/components/mui_extended/Accordion/index.js +105 -0
- package/components/mui_extended/Avatar/index.js +33 -0
- package/components/mui_extended/BoxIcon/index.js +20 -0
- package/components/mui_extended/Breadcrumbs/index.js +92 -0
- package/components/mui_extended/Button/index.js +131 -0
- package/components/mui_extended/IconButton/index.js +108 -0
- package/components/mui_extended/LinkWithRoute/index.js +30 -0
- package/components/mui_extended/MenuPopover/index.js +135 -0
- package/components/mui_extended/Pager/index.js +137 -0
- package/components/mui_extended/Tab/index.js +30 -0
- package/components/mui_extended/Typography/index.js +21 -0
- package/contexts/ModalContext/index.js +165 -0
- package/hooks/useFormAddEdit/index.js +42 -0
- package/hooks/useModal/index.js +4 -0
- package/index.js +70 -162
- package/lodash.js +62 -0
- package/node_modules.js +54 -0
- package/package.json +2 -1
- package/react-data-grid.js +2652 -0
- package/react-draggable.js +960 -0
- package/react-json-view.js +2764 -0
- package/react-lazy-load-image-component.js +792 -0
- package/react-resizable.js +541 -0
- package/react-splitter-layout.js +165 -0
- package/utils/index.js +572 -0
- package/assets/Logo/index.228dcb5a.js +0 -86
- package/commonjs.565e6834.js +0 -12
- package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
- package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
- package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
- package/components/DataGrid/index.b688877d.js +0 -894
- package/components/DynamicFilter/index.82ce857e.js +0 -1158
- package/components/ErrorLabel/index.c8615f16.js +0 -19
- package/components/Icon/index.cbca79b0.js +0 -70
- package/components/Image/index.e790b50b.js +0 -122
- package/components/LanguagePopover/index.3d9611cb.js +0 -87
- package/components/Loadable/index.f5518558.js +0 -15
- package/components/ModalDialog/index.3850c053.js +0 -168
- package/components/ObjectLogs/index.27ef875d.js +0 -266
- package/components/Page/index.6d69977e.js +0 -35
- package/components/PaperForm/index.d7c74064.js +0 -105
- package/components/Period/index.5e68286a.js +0 -160
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/ScrollBar/index.39eeb2de.js +0 -49
- package/components/ScrollToTop/index.e06f98f6.js +0 -11
- package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
- package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
- package/components/animate/features.0fbf41e1.js +0 -5
- package/components/animate/variants/container.11f82b76.js +0 -20
- package/components/animate/variants/fade.b561c0fc.js +0 -59
- package/components/animate/variants/transition.bd46b9ce.js +0 -15
- package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
- package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
- package/components/formatters/index.55856d65.js +0 -106
- package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
- package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
- package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
- package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
- package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
- package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
- package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
- package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
- package/components/mui_extended/Accordion/index.2116e423.js +0 -103
- package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
- package/components/mui_extended/Button/index.84d8898c.js +0 -110
- package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
- package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
- package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
- package/components/mui_extended/Pager/index.0576814f.js +0 -126
- package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
- package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
- package/contexts/ModalContext/index.2188b69e.js +0 -150
- package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
- package/hooks/useModal/index.6571d2d9.js +0 -6
- package/lodash.e09401f0.js +0 -32
- package/node_modules.168cb897.js +0 -55
- package/react-data-grid.d46d625e.js +0 -2115
- package/react-draggable.20e95c61.js +0 -714
- package/react-json-view.f56a7f8e.js +0 -2762
- package/react-lazy-load-image-component.45b56650.js +0 -784
- package/react-resizable.5277deaf.js +0 -371
- package/react-splitter-layout.7810ac1b.js +0 -165
- package/utils/index.214d9542.js +0 -435
package/lodash.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { c as commonjsGlobal } from "./commonjs.js";
|
|
2
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
3
|
+
var _freeGlobal = freeGlobal$1;
|
|
4
|
+
var freeGlobal = _freeGlobal;
|
|
5
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
6
|
+
var root$1 = freeGlobal || freeSelf || Function("return this")();
|
|
7
|
+
var _root = root$1;
|
|
8
|
+
var root = _root;
|
|
9
|
+
var Symbol$3 = root.Symbol;
|
|
10
|
+
var _Symbol = Symbol$3;
|
|
11
|
+
var Symbol$2 = _Symbol;
|
|
12
|
+
var objectProto$1 = Object.prototype;
|
|
13
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
14
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
15
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
16
|
+
function getRawTag$1(value) {
|
|
17
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
18
|
+
try {
|
|
19
|
+
value[symToStringTag$1] = void 0;
|
|
20
|
+
var unmasked = true;
|
|
21
|
+
} catch (e) {
|
|
22
|
+
}
|
|
23
|
+
var result = nativeObjectToString$1.call(value);
|
|
24
|
+
if (unmasked) {
|
|
25
|
+
if (isOwn) {
|
|
26
|
+
value[symToStringTag$1] = tag;
|
|
27
|
+
} else {
|
|
28
|
+
delete value[symToStringTag$1];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
var _getRawTag = getRawTag$1;
|
|
34
|
+
var objectProto = Object.prototype;
|
|
35
|
+
var nativeObjectToString = objectProto.toString;
|
|
36
|
+
function objectToString$1(value) {
|
|
37
|
+
return nativeObjectToString.call(value);
|
|
38
|
+
}
|
|
39
|
+
var _objectToString = objectToString$1;
|
|
40
|
+
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
41
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
42
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
43
|
+
function baseGetTag$1(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
46
|
+
}
|
|
47
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
48
|
+
}
|
|
49
|
+
var _baseGetTag = baseGetTag$1;
|
|
50
|
+
var isArray$1 = Array.isArray;
|
|
51
|
+
var isArray_1 = isArray$1;
|
|
52
|
+
function isObjectLike$1(value) {
|
|
53
|
+
return value != null && typeof value == "object";
|
|
54
|
+
}
|
|
55
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
56
|
+
var baseGetTag = _baseGetTag, isArray = isArray_1, isObjectLike = isObjectLike_1;
|
|
57
|
+
var stringTag = "[object String]";
|
|
58
|
+
function isString(value) {
|
|
59
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
60
|
+
}
|
|
61
|
+
var isString_1 = isString;
|
|
62
|
+
export { isString_1 as i };
|
package/node_modules.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { get, set, appendErrors } from "react-hook-form";
|
|
2
|
+
var e = function(i, e2, t2) {
|
|
3
|
+
if (i && "reportValidity" in i) {
|
|
4
|
+
var f2 = get(t2, e2);
|
|
5
|
+
i.setCustomValidity(f2 && f2.message || ""), i.reportValidity();
|
|
6
|
+
}
|
|
7
|
+
}, t = function(r, i) {
|
|
8
|
+
var t2 = function(t3) {
|
|
9
|
+
var f3 = i.fields[t3];
|
|
10
|
+
f3 && f3.ref && "reportValidity" in f3.ref ? e(f3.ref, t3, r) : f3.refs && f3.refs.forEach(function(i2) {
|
|
11
|
+
return e(i2, t3, r);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
for (var f2 in i.fields)
|
|
15
|
+
t2(f2);
|
|
16
|
+
}, f = function(e2, f2) {
|
|
17
|
+
f2.shouldUseNativeValidation && t(e2, f2);
|
|
18
|
+
var o2 = {};
|
|
19
|
+
for (var a in e2) {
|
|
20
|
+
var n = get(f2.fields, a);
|
|
21
|
+
set(o2, a, Object.assign(e2[a], { ref: n && n.ref }));
|
|
22
|
+
}
|
|
23
|
+
return o2;
|
|
24
|
+
};
|
|
25
|
+
var o = function(o2, n, a) {
|
|
26
|
+
return void 0 === n && (n = {}), void 0 === a && (a = {}), function(s, i, c) {
|
|
27
|
+
try {
|
|
28
|
+
return Promise.resolve(function(t$1, r) {
|
|
29
|
+
try {
|
|
30
|
+
var u = (n.context && false, Promise.resolve(o2["sync" === a.mode ? "validateSync" : "validate"](s, Object.assign({ abortEarly: false }, n, { context: i }))).then(function(t$12) {
|
|
31
|
+
return c.shouldUseNativeValidation && t({}, c), { values: a.rawValues ? s : t$12, errors: {} };
|
|
32
|
+
}));
|
|
33
|
+
} catch (e2) {
|
|
34
|
+
return r(e2);
|
|
35
|
+
}
|
|
36
|
+
return u && u.then ? u.then(void 0, r) : u;
|
|
37
|
+
}(0, function(e2) {
|
|
38
|
+
if (!e2.inner)
|
|
39
|
+
throw e2;
|
|
40
|
+
return { values: {}, errors: f((o3 = e2, n2 = !c.shouldUseNativeValidation && "all" === c.criteriaMode, (o3.inner || []).reduce(function(e3, t2) {
|
|
41
|
+
if (e3[t2.path] || (e3[t2.path] = { message: t2.message, type: t2.type }), n2) {
|
|
42
|
+
var o4 = e3[t2.path].types, a2 = o4 && o4[t2.type];
|
|
43
|
+
e3[t2.path] = appendErrors(t2.path, n2, e3, t2.type, a2 ? [].concat(a2, t2.message) : t2.message);
|
|
44
|
+
}
|
|
45
|
+
return e3;
|
|
46
|
+
}, {})), c) };
|
|
47
|
+
var o3, n2;
|
|
48
|
+
}));
|
|
49
|
+
} catch (e2) {
|
|
50
|
+
return Promise.reject(e2);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export { o };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@m4l/core": "*",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
18
18
|
"@types/react-dom": "^17.0.0 || ^18.0.0",
|
|
19
19
|
"framer-motion": "^6.5.0",
|
|
20
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
20
21
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
21
22
|
"react-dropzone": "^14.2.2",
|
|
22
23
|
"react-helmet-async": "^1.3.0",
|